- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
)
Discover gists
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
// my problem: (with a bit of handwaving here — imagine that each step is | |
// _actually_ async) | |
function doAThing() { | |
return new Promise(resolve => { // A | |
setTimeout(resolve, 100, Math.random()) | |
}).then(randomNum => { // B (derived from A's result) | |
return randomNum * Math.random() | |
}).then(superRandomNumber => { // C | |
return superRandomNumber * originalRandomNumber | |
// where "originalRandomNumber" === "randomNum" from 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
{ | |
"uri": "https://slick.app", | |
"schemas": { | |
"invite": "https://slick.app/schemas/invite", | |
"community": "https://slick.app/schemas/community", | |
"details": "https://slick.app/schemas/details", | |
"channel": "https://slick.app/schemas/channel", | |
"message": "https://slick.app/schemas/message", | |
"reaction": "https://slick.app/schemas/reaction", | |
"admin": "https://slick.app/schemas/admin", |
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
// exemple based on https://github.com/diafygi/webcrypto-examples#rsa-oaep | |
function importKey() { | |
return window.crypto.subtle.importKey( | |
"jwk", //can be "jwk" or "raw" | |
{ //this is an example jwk key, "raw" would be an ArrayBuffer | |
kty: "oct", | |
k: "Y0zt37HgOx-BY7SQjYVmrqhPkO44Ii2Jcb9yydUDPfE", | |
alg: "A256GCM", | |
ext: true, |
- Library Genesis - http://gen.lib.rus.ec/
- Traversy Media - https://www.youtube.com/channel/UC29ju8bIPH5as8OGnQzwJyA
- Udemy -
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
// Here is a proposal for minimalist JavaScript classes, humbly offered. | |
// There are (at least) two different directions in which classes can be steered. | |
// If we go for a wholly new semantics and implementation, then fancier classical | |
// inheritance can be supported with parallel prototype chains for true inheritance | |
// of properties at both the class and instance level. | |
// If however, we keep current JavaScript prototype semantics, and add a form that | |
// can desugar to ES3, things must necessarily stay simpler. This is the direction | |
// I'm assuming here. |
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
// A response to jashkenas's fine proposal for minimalist JavaScript classes. | |
// Harmony always stipulated classes as sugar, so indeed we are keeping current | |
// JavaScript prototype semantics, and classes would only add a syntactic form | |
// that can desugar to ES5. This is mostly the same assumption that Jeremy | |
// chose, but I've stipulated ES5 and used a few accepted ES.next extensions. | |
// Where I part company is on reusing the object literal. It is not the syntax | |
// most classy programmers expect, coming from other languages. It has annoying | |
// and alien overhead, namely colons and commas. For JS community members who |
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
//You shouldn't find your self asking for ids from a Falcor JSON Graph object. | |
//it seems like you want to build an array of game ids: | |
{ | |
games: [ | |
{ $type: "ref", value: ["gamesById", 352] }, | |
{ $type: "ref", value: ["gamesById", 428] } | |
// ... | |
], |
NewerOlder