This file contains 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
// Kestrel | |
export const K = a => () => a | |
// Starling | |
export const S = a => b => c => a(c)(b(c)) | |
// Idiot : a => a | |
export const I = S(K)(K) | |
// Bluebird : a => b => c => a(b(c)) | |
export const B = S(K(S))(K) | |
// Cardinal : a => b => c => a(c)(b) | |
export const C = S(B(B)(S))(K(K)) |
This file contains 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
AWS DeepLens factory reset steps followed: | |
Get Ubuntu and microSD card set up using AWS forum supplied instructions | |
https://s3.amazonaws.com/deeplens-public/factory-restore/DeepLens_System_Restore_Instruction.pdf | |
Pre-requisites: borked DeepLens in need of restore | |
keyboard | |
micro HDMI cable | |
monitor | |
bootable Ubuntu live USB |
This file contains 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
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y \ | |
vim \ | |
curl \ | |
wget \ | |
tmux \ | |
zsh \ | |
build-essential \ | |
apt-transport-https \ | |
ca-certificates \ | |
gnupg-agent \ |
This file contains 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 crearCartera = saldo => ({ | |
retirar: cantidad => | |
new Promise( | |
(resolve, reject) => | |
saldo > cantidad | |
? resolve((saldo -= cantidad)) | |
: reject(`tienes ${saldo} y no te alcanza :(`), | |
), | |
depositar: cantidad => Promise.resolve((saldo += cantidad)), | |
consultar: () => Promise.resolve(saldo), |
This file contains 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
BOT_KEYWORD='strider' | |
DISCORD_API_TOKEN='NDIzOTM5$0meR4nd0m$hi7N...' | |
DIALOGFLOW_CLIENT_ACCESS_KEY= |
This file contains 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
045eb6e256d14914da2ebad6997c0c6b89e1901628245180e3550fac0d4af788391f0edf40ee1eede81c003fe2bae1d27e5e6aa09f201b0178fa8e95f7ae8d2823 |
This file contains 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
// Try this on chrome | |
const css = "text-shadow: -1px -1px hsl(0,100%,50%), 1px 1px hsl(5.4, 100%, 50%), 3px 2px hsl(10.8, 100%, 50%), 5px 3px hsl(16.2, 100%, 50%), 7px 4px hsl(21.6, 100%, 50%), 9px 5px hsl(27, 100%, 50%), 11px 6px hsl(32.4, 100%, 50%), 13px 7px hsl(37.8, 100%, 50%), 14px 8px hsl(43.2, 100%, 50%), 16px 9px hsl(48.6, 100%, 50%), 18px 10px hsl(54, 100%, 50%), 20px 11px hsl(59.4, 100%, 50%), 22px 12px hsl(64.8, 100%, 50%), 23px 13px hsl(70.2, 100%, 50%), 25px 14px hsl(75.6, 100%, 50%), 27px 15px hsl(81, 100%, 50%), 28px 16px hsl(86.4, 100%, 50%), 30px 17px hsl(91.8, 100%, 50%), 32px 18px hsl(97.2, 100%, 50%), 33px 19px hsl(102.6, 100%, 50%), 35px 20px hsl(108, 100%, 50%), 36px 21px hsl(113.4, 100%, 50%), 38px 22px hsl(118.8, 100%, 50%), 39px 23px hsl(124.2, 100%, 50%), 41px 24px hsl(129.6, 100%, 50%), 42px 25px hsl(135, 100%, 50%), 43px 26px hsl(140.4, 100%, 50%), 45px 27px hsl(145.8, 100%, 50%), 46px 28px hsl(151.2, 100%, 50%), 47px 29px hsl(156.6, 100%, 50%), 48px 30px hsl(162, 100%, 50%), 49px |
This file contains 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 otherObject = { | |
a: 'juan', | |
b: 'tu', | |
c: 'tri' | |
} | |
function* objectIterator(obj) { | |
for (let prop of Object.keys(obj)) { | |
yield obj[prop]; | |
} |
This file contains 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
someObject[Symbol.iterator] = function* someObjectIterator() { | |
for (let prop of Object.keys(this)) { | |
yield this[prop]; | |
} | |
}; | |
console.log([...someObject]) // [1, "Yolodog", "a"] |
This file contains 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
console.log(Array.from(someObject)) // [1, "Yolodog", "a"] | |
// con spread operator: | |
console.log([...someObject]) // [1, "Yolodog", "a"] | |
console.log(...someObject) // 1 "Yolodog" "a" |
NewerOlder