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
// ... | |
function loggableClass(target) { | |
console.log("Class: %s", target.name); | |
return target; | |
} | |
function loggableMethod(target, name, descriptor) { | |
console.log("Method: %s", name); |
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
function loggableMethod(target, name, descriptor) { | |
console.log("Method: %s", name); | |
return descriptor; | |
} |
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
function loggableClass(target) { | |
console.log("Class: %s", target.name); | |
return target; | |
} |
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
"use strict"; | |
function loggableClass(target) { | |
console.log("Class: %s", target.name); | |
return target; | |
} | |
function loggableMethod(target, name, descriptor) { | |
console.log("Method: %s", name); |
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
// http://burakkanber.com/blog/machine-learning-genetic-algorithms-part-1-javascript/ | |
class Gene { | |
constructor(code) { | |
this.code = ""; | |
if (code) { | |
this.code = code; | |
} |
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
function iconify { | |
filepath=$1 | |
directory_name=`dirname ${filepath}` | |
filename=`basename ${filepath}` | |
filename_without_extension=${filename%.*} | |
extname=${filename##*.} | |
newfilename=${directory_name}/${filename_without_extension}-128x128.${extname} | |
convert -resize 128x128 $1 ${newfilename} | |
} |
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
javascript:(function(){document.write("["+document.title+"]("+location.href+")");})() |
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 ua = require("universal-analytics"); | |
var j5 = require("johnny-five"); | |
var visitor = ua("UA-XXXX-XX"); | |
var arduino = new j5.Board({ | |
repl: false | |
}); | |
arduino.on("ready", function () { | |
var btn = new j5.Button(2); |
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 yum install -y java-1.7.0-openjdk-devel |
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
wget http://ftp.riken.jp/net/apache/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz | |
tar zxvf apache-maven-3.2.3-bin.tar.gz | |
mkdir -p /usr/local/apache-maven | |
mv apache-maven-3.2.3 /usr/local/apache-maven |