[ Launch: Funnel ] 6704208 by rowoot[ Launch: Funnel ] 6704206 by rowoot[ Launch: Funnel ] 6704203 by rowoot[ Launch: Funnel ] 6588330 by jfsiii
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
d3.sankey = function() { | |
var sankey = {}, | |
nodeWidth = 24, | |
nodePadding = 8, | |
size = [1, 1], | |
nodes = [], | |
links = []; | |
sankey.nodeWidth = function(_) { | |
if (!arguments.length) return nodeWidth; |
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
{ | |
"name": "Book of modern frontend tooling", | |
"path": "chapters/", | |
"toc": [ | |
{ | |
"name": "Introduction", | |
"path": "introduction.md" | |
}, | |
{ | |
"name": "Build Systems", |
[ Launch: Funnel ] 6704206 by rowoot[ Launch: Funnel ] 6704203 by rowoot[ Launch: Funnel ] 6588330 by jfsiii
[ Launch: Funnel ] 6704203 by rowoot[ Launch: Funnel ] 6588330 by jfsiii
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
#!bash | |
# | |
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# |
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
/** | |
* `C` constructor | |
* | |
* Proposed Simpler API for callback functions within a function | |
* | |
* // Old style | |
* someFunction(1, function success () { | |
* console.log('success callback') | |
* }, function fail () { | |
* console.log('fail callback') |
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
static long foo = 0; | |
public static Lock lock = newLock(); | |
private static void increment() { | |
for(long l=0;l<1000000000L;l++) { | |
lock.lock(); | |
try { | |
foo++; | |
} finally { | |
lock.unlock(); |
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
var LogisticRegression = function() { | |
this.N = 0; // Number of Samples | |
this.D = 0; // Number of Dimensions|Features | |
this.K = 0; // Number of Classes | |
this.classes = []; // Classes to classify | |
this.weights = []; // Weights | |
this.input = []; // [{0 1 0 1 0 ... 512} , {}] | |
this.output = []; // [{zero:0,one:1.0...}, ...] | |
} |
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
# Limit of files | |
ulimit -S -n 1024 | |
alias l="ls -alt" | |
alias locate='if [ $((`date +%s`-`eval $(stat -s /var/db/locate.database); echo $st_mtime`)) -gt 3600 ]; then echo "locate: db is too old!">/dev/stderr; sudo /usr/libexec/locate.updatedb; fi; locate -i' | |
#PS1="[\u:\w]:\\$ " | |
alias gc="git commit -m $1" | |
alias gca="git add -A; git commit -m $1" |
NewerOlder