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/sh | |
E_NOARGS=85 | |
if [[ -z "$1" || -z "$2" ]]; then | |
[[ "$1" == "list" ]] || ( echo "Usage: `basename $0` [list|start|pause|stop] vm-name"; exit $E_NOARGS; ) | |
fi | |
case $1 in | |
"list" | "ls" ) |
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
git checkout development | |
git branch -D json_server | |
git fetch | |
git checkout -b json_server origin/json_server |
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
$this->_render['paths']['template'] = array( | |
LITHIUM_APP_PATH . '/views/{:controller}/{:template}.{:type}.php', | |
'{:library}/views/{:controller}/{:template}.{:type}.php' | |
); |
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
➜ ~ brew install -v tmux | |
==> Downloading http://sourceforge.net/projects/tmux/files/tmux/tmux-1.5/tmux-1.5.tar.gz | |
File already downloaded in /Users/cgarvis/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/cgarvis/Library/Caches/Homebrew/tmux-1.5.tar.gz | |
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/tmux/1.5 --sysconfdir=/usr/local/etc | |
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/tmux/1.5 --sysconfdir=/usr/local/etc | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... etc/install-sh -c -d | |
checking for gawk... no |
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
[vagrant@localhost drupal]$ drush test-run Arwen -v | |
Initialized Drupal 7.9 root directory at /opt/ivillage/drupal/www [notice] | |
Initialized Drupal site local.ivillage.com at sites/default [notice] | |
/usr/bin/php /usr/share/pear/drush/drush.php --php=/usr/bin/php --verbose --root=/opt/ivillage/drupal/www --uri=http://local.ivillage.com/ test-run ArwenTestCase --backend=2 2>&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
<?php | |
namespace app\extensions\helper; | |
class Form extends \lithium\template\helper\Form { | |
public function field($name, array $options = array()) { | |
$defaults = array( | |
'wrap' => 'control-group' | |
); | |
return parent::field($name, $options + $defaults); |
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
diff --git a/tests/cases/net/socket/CurlTest.php b/tests/cases/net/socket/CurlTest.php | |
index 21a9dce..f874974 100644 | |
--- a/tests/cases/net/socket/CurlTest.php | |
+++ b/tests/cases/net/socket/CurlTest.php | |
@@ -138,6 +138,20 @@ class CurlTest extends \lithium\test\Unit { | |
$stream->set('DummyFlag', 'Changed Dummy Value'); | |
$this->assertEqual('Changed Dummy Value', $stream->options['DummyFlag']); | |
} | |
+ | |
+ public function testSendPostThenGet() { |
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
3c3 | |
< 5 fails and 5 exceptions | |
--- | |
> 5 fails and 7 exceptions | |
6c6 | |
< 32lithium\test\{closure} @ ?, line 710 | |
--- | |
> 32lithium\test\Unit::lithium\test\{closure}() @ ?, line 710 | |
18c18 | |
< 44lithium\console\command\{closure} @ ?, line 71 |
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
# ------------------------------------------------------------------------ | |
# Christopher Garvis | |
# oh-my-zsh theme | |
# Totally ripped-off Tyler Cipriani | |
# ------------------------------------------------------------------------ | |
# Grab the current date (%W) and time (%t): | |
#bold MOVELINE_TIME_="%{$fg_bold[red]%}#%{$fg_bold[white]%}( %{$fg_bold[yellow]%}%W%{$reset_color%}@%{$fg_bold[white]%}%t )( %{$reset_color%}" | |
MOVELINE_TIME_="%{$fg[red]%}#%{$fg_bold[white]%}( %{$fg[yellow]%}%W%{$reset_color%}@%{$fg_bold[white]%}%t )( %{$reset_color%}" |
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
module HexagonalGem | |
class CreateCustomer | |
attr_reader :listener, :validator | |
def self.create customer, listener = {} | |
c = CreateCustomer.new(listener) | |
c.create(customer) | |
end | |
def initialize(listener) |
OlderNewer