See http://github.com/josegonzalez/codebasehq-plugin for more details
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
#!/usr/bin/env python | |
# | |
# Returns once a container no longer has open connections | |
# Only works for containers using internal dns | |
# Sleeps 2 seconds between checks | |
# | |
# Usage: | |
# | |
# # wait until all traffic drains from a container before killing it | |
# docker_sleep $CONTAINER_ID $MAX_WAIT |
See http://github.com/josegonzalez/stylish_errors for more details
See http://github.com/josegonzalez/inflection for more details
See http://github.com/josegonzalez/sanction for more details
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 | |
class SearchableHelper extends AppHelper { | |
var $helpers = array('Html', 'Text'); | |
function snippets($data) { | |
$data = json_decode($data, true); | |
$term = (isset($this->data['SearchIndex']['term'])) ? trim($this->data['SearchIndex']['term']) : ''; | |
$snippets = ''; | |
while (strlen($snippets) < 255 && $value = next($data)) { | |
$snippets .= $this->Text->highlight($this->Text->excerpt($value, $term, 20), $term); |
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
b30d30e56991fe459c2292783185769bbe57f7da8f5b84d6934640263ec9b170258c8ff39556368ae50e5a629d657d4d0d7cf2976b0214c6abc9370711257d82 |
See http://github.com/josegonzalez/webservice_plugin for more details
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 | |
/** | |
* Short description for file. | |
* | |
* This file is application-wide helper file. You can put all | |
* application-wide helper-related methods here. | |
* | |
* PHP versions 4 and 5 | |
* | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
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 | |
class PostCakeAdmin extends CakeAdmin { | |
/** | |
* Name of the model. Must be overridden in order to create a | |
* valid admin section, unless you want everything to reference | |
* a Cake Model | |
* | |
* @var string | |
*/ |
OlderNewer