Run 5 times, with one second delay between calls
t1 = new Timer(500, function(){
console.log(this.count);
if (this.count >= 5) {
this.stop();
}
});
/** | |
* Created by elydelacruz on 11/8/16. | |
* Simple function to extract delimited content from a string. | |
*/ | |
'use strict'; | |
/** | |
* Returns whether our content has opening and closing delimiters. | |
* @param content {String} |
build/ | |
node_modules/ |
/* | |
Common vector operations | |
Author: Tudor Nita | cgrats.com | |
Version: 0.51 | |
*/ | |
function Vec2(x_,y_) | |
{ | |
this.x = x_; | |
this.y = y_; |
# To be pasted in ~/.profile | |
vagrant() { | |
if [[ $@ == "halt all" ]]; then | |
command vagrant global-status | grep running | colrm 8 | xargs -L 1 -t vagrant halt | |
else | |
command vagrant "$@" | |
fi | |
} |
"use strict"; | |
function Bar(props) { return null; } | |
React.createElement(Bar, { sdf: true, id: 'hello' }); | |
React.createElement("div", { id: 'hi' }, "abc"); | |
React.createElement("div", null, "abc"); |
/* | |
The original files are 960x319. | |
Image sizes to save: | |
* 800x266 - Retina for 480x320 resolution (400 logical pixel wide panel areas) | |
* 740x246 - Desktop and iPad | |
* 616x205 - Retina for 320x480 resolution (308 logical pixel wide panel areas) | |
* 400x133 - 480x320 resolution | |
* 308x102 - 320x480 resolution |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func init() { | |
log.SetFlags(log.Lshortfile) |
#!/usr/bin/env node | |
# run this before using: yarn add --dev node-pty semver | |
const os = require("os") | |
const pty = require("node-pty") | |
const semver = require("semver") | |
function semverComparator(a, b) { | |
if (semver.lt(a, b)) { |
exports.config = { | |
capabilities: [ | |
{ | |
browserName: 'chrome', | |
chromeOptions: { | |
args: ['headless', 'disable-gpu'], | |
}, | |
}, | |
], | |
services: ['selenium-standalone'], |