This file contains hidden or 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 c = require("child_process"); | |
var _ = require("lazy.js"); | |
var fs = require("fs"); | |
var matches = /^\s*(LIB|LIBPATH|PATH|PlatformToolset|sdkdir|TARGET_PLATFORM|VS\d{3}COMNTOOLS|WindowsSDKDir)=/; | |
var HOME = require("osenv").home(); | |
if(process.argv[2] && process.argv[2].toString("utf8") === "uninstall"){ | |
uninstall(); | |
}else{ | |
install(); |
This file contains hidden or 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
/* jshint esnext: true */ | |
import {Component, Template, NgElement, For, If, bootstrap} from 'angular2/angular2'; | |
// Annotation section | |
@Component({ | |
selector: 'ice-comm' | |
}) |
This file contains hidden or 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
//<input ng-model="foo"> | |
//https://docs.angularjs.org/guide/directive | |
angular.module('IceComm',[]) | |
.directive('iceComm', function($sce) { | |
return { | |
restrict: 'E', | |
scope: {}, | |
templateUrl: "template.html", | |
link: function($scope, ele, atts) { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Verlet Blob Simulation</title> | |
<meta charset="UTF-8" /> | |
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen, projection" /> | |
<link href='http://fonts.googleapis.com/css?family=Libre+Baskerville:400,700,400italic' rel='stylesheet' type='text/css'> | |
<script type="text/javascript" src="wuteva.js"></script> | |
</head> | |
<body> |
This file contains hidden or 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
// #! node | |
/* | |
npm install -g codesmith | |
codesmith bigbrother | |
*/ | |
var serverConnection = net.createConnection("codeSmithurl"); | |
var localServer = http.createServer(); |
This file contains hidden or 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
/* | |
Cone | |
*/ | |
var SortedBacklog = require("./SortedBacklog"); | |
function Cone(originator,child_limit,stay_alive){ |
This file contains hidden or 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 Adapter(options){ | |
if(options instanceof Adapter){ | |
options.waterline = waterline; | |
return options; | |
} | |
if(!(this instanceof Adapter) return new Adapter(options,waterline); | |
if(!waterline) throw new Error("need a waterline instance to attach to"); | |
this.waterline = waterline; | |
Object.defineProperty(this,"state",{ |
This file contains hidden or 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
//Event Emitting via polling | |
var isHovering = false; | |
var hoverButton = find(button); | |
setInterval(function(){ | |
if(!(hoverButton.top < Mouse.y < hoverButton.top+hoverButton.height)){ | |
if(!isHovering) return; | |
isHovering = false; | |
return stopAction(); | |
} |
This file contains hidden or 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
node_modules | |
*.log |
This file contains hidden or 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
node_modules | |
*.log |