Skip to content

Instantly share code, notes, and snippets.

:octocat:
Salesforce

CK Ren TonyRenHK

:octocat:
Salesforce
Block or report user

Report or block TonyRenHK

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TonyRenHK
TonyRenHK / gist:bb6966f67bb1d6783670ff5f1d129d36
Created Jan 16, 2019 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:bb6966f67bb1d6783670ff5f1d129d36

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:
View 0 Java Study Note.java
List<String> list = Arrays.asList("one", "two", "three");
//diamond operator
List<String> list = new ArrayList<>();
list.add("one");
list.add("two");
list.add("three");
View 0 Initialization.java
//HashMap:
HashMap<Integer, Integer> IntegerMap = new HashMap<Integer, Integer>();
IntegerMap.put(1,9);
//For primitive types:
int[] myIntArray = new int[3];
int[] myIntArray = {1,2,3};
int[] myIntArray = new int[]{1,2,3};
View Update heroku
curl https://cli-assets.heroku.com/install.sh | sh
sudo ln -s /usr/local/heroku/bin/heroku /usr/bin/heroku
View K music
import pyautogui, sys
import time
for num in range(1,20):
pyautogui.moveTo( 4294966792, 901, 2)
pyautogui.click()
pyautogui.typewrite('Good!')
pyautogui.press('enter')
time.sleep(3)
@TonyRenHK
TonyRenHK / code.gs
Created Oct 5, 2017
Daily Note Google App Script Application
View code.gs
/**
Link : https://script.google.com/macros/s/AKfycbxYJhxct6evZHWRUkgXk_ijuj0mgRbnMUf9xOn3IXi8iAFoPB70/exec
*/
function doGet() {
return HtmlService.createHtmlOutputFromFile('index')
.setSandboxMode(HtmlService.SandboxMode.IFRAME).addMetaTag('viewport', 'width=device-width, initial-scale=1');
}
@TonyRenHK
TonyRenHK / Report.html
Created Aug 24, 2017 — forked from anonymous/Report.html
This is for Jeremy Thompson from Success Community!
View Report.html
<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';
}
}
@TonyRenHK
TonyRenHK / Report.html
Created Aug 24, 2017 — forked from anonymous/Report.html
This is for Jeremy Thompson from Success Community!
View Report.html
<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';
}
}
@TonyRenHK
TonyRenHK / Gitshell.sh
Last active Nov 10, 2017
Push your code to bitbucket direcly
View Gitshell.sh
#!/bin/bash
<<'COMMENT'
run : bash Gitshell.sh
COMMENT
echo "~~~~~~~~~~~~~~~~~Fisrt, Clone your repository~~~~~~~~~~~~~~~~~~"
git clone https://username:Password@bitbucket.org/tonyrenhk/YourCodeRepository.git
@TonyRenHK
TonyRenHK / retrieve_salesforce_Class_Page_code.js
Last active Jun 24, 2017
retrieve salesforce Class/Page code.js
View retrieve_salesforce_Class_Page_code.js
var jsforce = require('jsforce');
var mkdirp = require('mkdirp');
var conn = new jsforce.Connection({
loginUrl: 'https://test.salesforce.com', // if the org is sandbox 'https://test.salesforce.com', if it is Production,please input https://login.salesforce.com'
version: '36.0'
});
var currentdate = new Date();
var datetime = 'YourProjectName_' + String(currentdate.getFullYear()) + String(currentdate.getMonth() + 1) + String(currentdate.getDate()) + '-' + String(currentdate.getHours()) + String(currentdate.getMinutes()) + String(currentdate.getSeconds());
You can’t perform that action at this time.