Skip to content

Instantly share code, notes, and snippets.

View TonyRenHK's full-sized avatar
:octocat:
Salesforce

CK Ren TonyRenHK

:octocat:
Salesforce
View GitHub Profile
@TonyRenHK
TonyRenHK / Report.html
Created August 24, 2017 07:04 — forked from anonymous/Report.html
This is for Jeremy Thompson from Success Community!
<html>
<head>
<script type="text/javascript">
function hideReportCaption(){
var htmlElements = document.getElementsByTagName('h2');
for(var index=0; index<htmlElements.length; index++){
if(htmlElements[index].innerHTML=='Report'){
htmlElements[index].style.display='none';
}
}
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
@rxaviers
rxaviers / gist:7360908
Last active May 18, 2024 09:55
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
anonymous
anonymous / Report.html
Created July 17, 2013 06:54
This is for Jeremy Thompson from Success Community!
<html>
<head>
<script type="text/javascript">
function hideReportCaption(){
var htmlElements = document.getElementsByTagName('h2');
for(var index=0; index<htmlElements.length; index++){
if(htmlElements[index].innerHTML=='Report'){
htmlElements[index].style.display='none';
}
}
@mhawksey
mhawksey / gist:1442370
Last active February 25, 2024 12:01
Google Apps Script to read JSON and write to sheet
function getJSON(aUrl,sheetname) {
//var sheetname = "test";
//var aUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=286bbb1d8d30f65b54173b3b752fa4d9&_render=json";
var response = UrlFetchApp.fetch(aUrl); // get feed
var dataAll = JSON.parse(response.getContentText()); //
var data = dataAll.value.items;
for (i in data){
data[i].pubDate = new Date(data[i].pubDate);
data[i].start = data[i].pubDate;
}
@mhawksey
mhawksey / gist:1276293
Last active October 23, 2023 09:00
Google App Script to insert data to a google spreadsheet via POST or GET - updated version as per https://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software