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
#!/bin/bash | |
# Start the service selenium-server | |
start() { | |
echo "Starting selenium-server server." | |
export DISPLAY=:0 | |
java -jar /Users/tw/Projects/test/selenium-server-standalone-2.35.0.jar -role hub &>/dev/null & | |
PID=$! | |
### Create the lock file ### | |
echo $PID > /var/run/selenium-server.pid |
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
#include "cocotouch.h" | |
#include <Adafruit_NeoPixel.h> | |
#include <avr/power.h> | |
#define PIN 8 | |
#define NUMPIXELS 60 | |
char index; | |
uint8_t idx; |
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
#include "cocotouch.h" | |
#include <Adafruit_NeoPixel.h> | |
#include <avr/power.h> | |
#define PIN 5 | |
#define NUMPIXELS 60 | |
CocoTouch touch; | |
uint8_t touchstates[12]; |
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
import { createStore } from 'reflux' | |
// if you don't mind | |
import { pipe, of } from 'ramda' | |
import GalleryActions from '../actions/GalleryActions' | |
export default createStore({ | |
init(){ | |
this.galleryMap = {} |
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 counter(initValue, seed) {} | |
// testcase | |
var incrementByOneFromOne = counter(1, 1); | |
incrementByOneFromOne.should.include.keys('value'); | |
incrementByOneFromOne.should.include.keys('increment'); | |
incrementByOneFromOne.should.include.keys('decrement'); | |
// testcase | |
var incrementByOneFromOne = counter(1, 1); |
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
// Step 1 | |
function Car () {} | |
function Ticket () {} | |
function ParkingLot(capacity) { | |
this.capacity = capacity; | |
this.cars = []; | |
} |
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
<?php | |
function ago($time) | |
{ | |
$periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade"); | |
$lengths = array("60","60","24","7","4.35","12","10"); | |
$now = time(); | |
$difference = $now - $time; | |
$tense = "ago"; |
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
#!/bin/bash | |
# /etc/init.d/jenkins | |
# debian-compatible jenkins startup script. | |
# Amelia A Lewis <alewis@ibco.com> | |
# | |
### BEGIN INIT INFO | |
# Provides: jenkins | |
# Required-Start: $remote_fs $syslog $network | |
# Required-Stop: $remote_fs $syslog $network | |
# Default-Start: 2 3 4 5 |
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": "webdriver-helper", | |
"description": "JavaScript WebDriver Helper", | |
"version": "0.1.0", | |
"homepage": "https://github.com/tw/js-webdriver-helper", | |
"author": { | |
"name": "Wang Qiu", | |
"email": "winsonwq@gmail.com", | |
"url": "http://ishouldbeageek.me" | |
}, |
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'; | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
mochacli: { | |
options: { | |
reporter: 'spec' | |
}, |
NewerOlder