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
master o-o-o-o-o-A | |
A - original master |
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 Example; | |
class Controller_Foo extends \Admin\Controller_Template | |
{ | |
public function action_index() | |
{ | |
$foo = Model_Foo::find('all'); |
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
* bb5a0c1 adding Feature D | |
| | |
* e43c9f0 (origin/minor, minor) bug-a merged into master; resolves #4 | |
|\ | |
| * 8f782bd fixing bug A | |
|/ | |
* c2f9fe1 feature-c merged into master; resolves #3 | |
|\ | |
| * ca00ff6 doing some more stuff for feature C | |
| * 7fb4763 adding feature C |
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
public static function convertNumToString($number, $limit = 999999999999) { | |
if (($number < 0) || ($number > $limit)) { | |
return $number; | |
} | |
if ($number == 0) { | |
return "zero"; | |
} | |
$Tn = floor($number / 1000000000); /* Trillions (tera) */ |
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
SET @id = 3; | |
SET @to = 9; | |
SET @lower = IF(@from < @to, @from, @to); | |
SET @upper = IF(@from < @to, @to, @from); | |
UPDATE `ordering` | |
SET `order` = | |
IF(`id` = @id, |
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
# Initial screens | |
screen -t eg 0 ssh user@host -t 'cd /file/path;bash' | |
screen -t ssh 9 | |
# Hardstatus... duh | |
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}%{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%{g}' | |
# Autodetach session on hangup instead of terminating screen completely |
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 Autoloader extends \Fuel\Core\Autoloader {} | |
class Agent extends \Fuel\Core\Agent {} | |
class Arr extends \Fuel\Core\Arr {} | |
class Asset extends \Fuel\Core\Asset {} | |
class Asset_Instance extends \Fuel\Core\Asset_Instance {} |
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 DataGrid; | |
class DataGrid | |
{ | |
/** | |
* Forge a new DataGrid | |
* | |
* @param string|\Fuel\Core\Database_Query_Builder_Select $table_or_query |
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
$existing_item = $this->get_item_by_id($new_item->get_product_id()); | |
if ($existing_item && $existing_item->bundle_variants && $new_item->bundle_variants) { | |
$fuck_you_1 = array_keys($existing_item->bundle_variants); | |
$fuck_you_2 = array_keys($new_item->bundle_variants); | |
sort($fuck_you_1); sort($fuck_you_2); | |
if ($fuck_you_1 != $fuck_you_2) { | |
$existing_item = null; | |
} |
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 | |
return array( | |
'always_load' => array( | |
'packages' => array( | |
'log', | |
), |
OlderNewer