npm install --sass-binary-path=C:\Users\<user>\downloads\win32-x64-51_binding.node
copy *.node
and rename to binding.node
to folder node_modules\node_sass\vendor\win32-x64-51\binding.node
// sample command | |
Cypress.Commands.add('load', (kind, story, options = {}) => { | |
cy.visit(`/?selectedKind=${kind}&selectedStory=${story}&full=1`); | |
}); | |
declare namespace Cypress { | |
interface Chainable { | |
load: (kind: string, story: string, options?: any) => Cypress.Chainable<JQuery>; | |
} | |
} |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
// Chart design based on the recommendations of Stephen Few. Implementation | |
// based on the work of Clint Ivy, Jamie Love, and Jason Davies. | |
// http://projects.instantcognition.com/protovis/bulletchart/ | |
import {Linear} from 'd3/scale'; | |
class Bullet { | |
public orient : string = "left"; // TODO top and bottom | |
public reverse : boolean = false; | |
public duration : number = 0; |
var buffer = new Uint8Array([0,97,115,109,1,0,0,0,1,133,128,128,128,0,1,96,0,1,127,3,130,128,128,128,0,1,0,4,132,128,128,128,0,1,112,0,0,5,131,128,128,128,0,1,0,1,6,129,128,128,128,0,0,7,146,128,128,128,0,2,6,109,101,109,111,114,121,2,0,5,104,101,108,108,111,0,0,10,138,128,128,128,0,1,132,128,128,128,0,0,65,16,11,11,150,128,128,128,0,1,0,65,16,11,16,65,105,118,97,110,32,77,111,110,99,101,108,108,101,114,0]); | |
var m = new WebAssembly.Instance(new WebAssembly.Module(buffer)); | |
var h = new Uint8Array(m.exports.memory.buffer); | |
var p = m.exports.hello(); | |
function utf8ToString(h, p) { | |
let s = ""; | |
for (i = p; h[i]; i++) { | |
s += String.fromCharCode(h[i]); | |
} | |
return s; |
/* | |
scramble_333.js | |
3x3x3 Solver / Scramble Generator in Javascript. | |
The core 3x3x3 code is from a min2phase solver by Shuang Chen. | |
Compiled to Javascript using GWT and j2js project. | |
new feature: |