Skip to content

Instantly share code, notes, and snippets.

View geocine's full-sized avatar
🤖
지식은 행동으로 번성하고, 게으르면 시들어간다.

Aivan Monceller geocine

🤖
지식은 행동으로 번성하고, 게으르면 시들어간다.
View GitHub Profile
@geocine
geocine / node-sass.md
Last active June 28, 2018 08:08
node-sass manual binary download

Manually download node-sass binary and installing

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

@geocine
geocine / commands.ts
Created June 26, 2018 04:13
cypress commands
// 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>;
}
}
@geocine
geocine / fork-sync.md
Created June 22, 2018 02:26
Fork Syncing

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@geocine
geocine / docker-swarm.md
Created May 17, 2018 12:35
docker swarm commands

Docker Swarm

@geocine
geocine / bash-colors.md
Created May 12, 2018 16:58 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@geocine
geocine / README.md
Created May 11, 2018 16:15 — forked from ToughCrab24/README.md
Docker Swarm Setup with Docker Machine

Swarm Setup

Local

#1 Create virtual machines

docker-machine create manager1
docker-machine create worker1
docker-machine create worker2
@geocine
geocine / multiple_ssh_setting.md
Created May 10, 2018 03:08 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

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;
@geocine
geocine / scramble_333.js
Created September 19, 2017 04:07 — forked from cs0x7f/scramble_333.js
new javascript 3x3 random state scrambler used in cstimer
/*
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: