python -m SimpleHTTPServer
php -S
- Node.js connect
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 | |
namespace Test\; | |
use PHPUnit_Framework_TestCase; | |
class Test extends PHPUnit_Framework_TestCase | |
{ | |
public function setUp() | |
{ |
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 mkpull | |
set owner (git remote -v | grep [email protected] | head -n1 | awk '{print $2}' | sed 's/.*://' | sed 's/\/.*//') | |
set repo (git remote -v | grep [email protected] | head -n1 | awk '{print $2}' | sed 's/.*\///' | sed 's/\.git//') | |
set head (git rev-parse --abbrev-ref HEAD) | |
if set -q argv[1] | |
set base $argv[1] | |
else | |
set base "develop" | |
end |
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 pushbranch | |
set branch (git rev-parse --abbrev-ref HEAD) | |
git push -u origin $branch | |
end |
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
/** @jsx React.DOM */ | |
'use strict'; | |
var React = require('react'); | |
module.exports = React.createClass({ | |
displayName : 'Name', | |
render : function() | |
{ |
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
# Prefix commit message with "Refs #[PULL_NUMBER] - " | |
# PULL_NUMBER is derived from the branch name, which is assumed to be in one of the following formats: | |
# something/[PULL_NUMBER]-short-descriptive-name | |
# something/[GROUP_NUMBER]/[PULL_NUMBER]-short-descriptive-name | |
function commit | |
set issue (git rev-parse --abbrev-ref HEAD | cut -d / -f 3 | cut -d - -f 1 | grep "^\d*\$") | |
set message $argv[1] | |
set prefix "Refs #" |
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 gco | |
set branch (git for-each-ref | sed -E 's/[a-zA-Z0-9]*[[:space:]]commit[[:space:]]refs\/(heads|remotes\/origin)\///g' | grep $argv[1] | head -n1) | |
if [ "$branch" = "" ] | |
echo 'Branch not found'; | |
else | |
git checkout $branch; | |
git pull origin $branch; | |
end | |
end |
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 unit | |
# Remove logging portion of phpunit configuration | |
sed -i .sedbackup 's/\<\/logging\>//g' ./phpunit.xml | |
sed -i .sedbackup 's/\<logging\>//g' ./phpunit.xml | |
rm *.sedbackup | |
if set -q argv[1] | |
vendor/bin/phpunit --filter $argv[1] | |
else | |
vendor/bin/phpunit |
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
From 0b1b114f5824be2fd4feb26eddfbb349813971cb Mon Sep 17 00:00:00 2001 | |
From: Paul Statezny <[email protected]> | |
Date: Sat, 31 Jan 2015 20:49:49 -0700 | |
Subject: [PATCH] Create new dispatcher upon dispatch. | |
--- | |
lib/dispatcher.js | 6 ++++++ | |
1 file changed, 6 insertions(+) | |
diff --git a/lib/dispatcher.js b/lib/dispatcher.js |
OlderNewer