git branch -f <branch> [<destination>]
git hoist <branch> [<destination>]
git ff [<destination>]
git catchup [<branch>] [<remote>]
git subup
#!/bin/bash | |
# Include this file in the top of your script to have options | |
# parsed into an OPTIONS variable. | |
# | |
# If you set an OPTSTRING variable, getopts will be used with that string | |
# | |
# If you set an OPTION_DEBUG variable, then the parsed options will be output | |
declare -A OPTIONS |
$arr = [...]; | |
uasort( | |
$arr, | |
function($a, $b) { | |
return strnatcmp($a['foo'], $b['foo']); | |
} | |
); |
<?php | |
class AbstractTestCase extends PHPUnit_Extensions_Selenium2TestCase | |
{ | |
/** | |
* Check for internal server errors and reload the page upto 3 times | |
*/ | |
protected function checkInternalServerError() | |
{ | |
$url = $this->url(); |
<?php | |
class AbstractTestCase extends PHPUnit_Extensions_Selenium2TestCase | |
{ | |
/** | |
* Array of browsers and platforms to run tests in | |
* | |
* @var array | |
*/ | |
public static $browsers = array( |
#!/bin/bash | |
KEEP=$@ | |
branches=$(git branch | grep -v "*" | grep -v "detached" | grep -v "no branch") | |
if [ "$KEEP" != "" ]; then | |
for notthis in $KEEP; do | |
branches=$(echo "$branches" | grep -vE "$notthis") | |
done |
cdup() { | |
p=${1} | |
if [[ $p = -* ]]; then | |
c="cd " | |
while [[ $p -lt 0 ]]; do | |
c=$c"../" | |
let p=p+1 | |
done | |
$c | |
else |
<?xml version="1.0" encoding="UTF-8"?> | |
<templateSet group="JavaScript"> | |
<template name="ready" value="$(function() { 	$END$ })" description="HOJS says do this" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="false" /> | |
<option name="XML" value="false" /> | |
<option name="CSS_PROPERTY_VALUE" value="false" /> | |
<option name="CSS_DECLARATION_BLOCK" value="false" /> |
<?php | |
#if (${NAMESPACE}) | |
namespace ${NAMESPACE}; | |
#end | |
class Controller_${NAME} extends \Controller_Template { | |
public function action_index() { |
* { | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
-ms-filter: grayscale(100%); | |
-o-filter: grayscale(100%); | |
filter: grayscale(100%); | |
filter: url(grayscale.svg); /* Firefox 4+ */ | |
filter: gray; /* IE 6-9 */ | |
} |