Follow instructions on these pages to get setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate rsa key-pair without password (-N) with comment (-C) and name (-f) | |
ssh-keygen -t rsa -b 4096 -N "" -C "userName localName remoteName" -f keyName | |
# windows bash | |
# activate ssh-agent in windows bash | |
eval $(ssh-agent -s) | |
# list registered ssh keys - these keys are cached by the agent so you only need to enter pw once | |
ssh-add -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Benchmark = require('benchmark') | |
const suite = new Benchmark.Suite | |
const arr = new Array(800) | |
// Prep code | |
for (var i = 0; i < arr.length; ++i) { | |
arr[i] = (Math.random() * 10001) | 0 | |
} |
Sum [dev] branch revisions into a single merge commit on [target] branch (Like Pull Request)
git checkout [target]
git pull
git merge [dev] --no-ff -m "message"
git push
Cherry Pick
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = function() { | |
console.log("I'm foo"); | |
}; | |
var bar = function(cb) { | |
console.log("bar before"); | |
cb(); | |
console.log("bar after"); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fetchData = function () { | |
return new Promise(function (resolve, reject) { | |
//Fake an async action with a timeout. | |
setTimeout(function () { | |
var data = { | |
users: [ | |
{ name: 'Jack', age: 22 }, | |
{ name: 'Tom', age: 21 }, | |
{ name: 'Isaac', age: 21 }, | |
{ name: 'Iain', age: 20 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Event Demo</title> | |
<style type="text/css"> | |
.grid { | |
display: grid; | |
grid-template-columns: 100px 100px 100px 100px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MyLightningComponentHelper.js */ | |
({ | |
requestAccounts: function(cmp) { | |
var auraAction = cmp.get("c.getLimitedAccounts"); | |
auraAction.setParams({ | |
limitter: 10 | |
}); | |
acumen.promisify(auraAction) | |
.then(function(auraRes) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.acumen = (function AppContext(acumen, window) { | |
var hasLightning = function() { | |
return window.$A | |
}; | |
var isMobile = function() { | |
var userAgent = window.navigator.userAgent.toLowerCase(); | |
return (-1 != userAgent.indexOf('mobile')); | |
}; |
OlderNewer