This file contains hidden or 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
snippet cc | |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class `Cucfirst(expand("%"))` extends MY_Controller { | |
public function __construct() | |
{ | |
parent::__construct(); | |
} | |
This file contains hidden or 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
snippet cc | |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class `Cucfirst(expand("%"))` extends MY_Controller { | |
public function __construct() | |
{ | |
parent::__construct(); | |
} | |
This file contains hidden or 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! Cucfirst(str) | |
return substitute(strpart(a:str,0,strlen(a:str)-4), '\w\+', '\u\0', "") | |
endfunction | |
function! CiFilePos(str) | |
if a:str =~ ".\.system.\." | |
return '.' . matchstr(a:str, "\/system/.*$") | |
elseif a:str =~ ".\.application.\." | |
return '.' . matchstr(a:str, "\/application/.*$") | |
else |
This file contains hidden or 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/sed -f | |
##Inspired http://d.hatena.ne.jp/y-kawaz/20110713/1310532417 | |
## MEMO | |
# [0m reset | |
# [1m bold | |
# [3m italic | |
# [4m underline | |
# [5m blink | |
# [30m black | |
# [31m red |
This file contains hidden or 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/application/config/database.php b/application/config/database.php | |
--- a/application/config/database.php | |
+++ b/application/config/database.php | |
@@ -27,7 +27,8 @@ | |
| ['char_set'] The character set used in communicating with the database | |
| ['dbcollat'] The character collation used in communicating with the database | |
| NOTE: For MySQL and MySQLi databases, this setting is only used | |
-| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7. | |
+| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7 | |
+| (and in table creation queries made with DB Forge). |
This file contains hidden or 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 Utility_helper_tests extends TEST_Controller | |
{ | |
function __construct() | |
{ | |
parent::__construct(); | |
} | |
// h() test |
This file contains hidden or 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 if( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Unit_test extends CI_Unit_test | |
{ | |
public function __construct() | |
{ | |
parent::__construct(); | |
} | |
public function report($result = array()) |
This file contains hidden or 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 | |
/* Test Controller | |
------------------------------------------------------------------------*/ | |
/** | |
* TEST_Controller | |
* | |
* @author yterajima <[email protected]> | |
* @copyright Copyright(C)e2esound.com/yterajima | |
* @version 1.0 | |
*/ |
This file contains hidden or 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Profiler extends CI_Profiler | |
{ | |
protected $_available_sections = array( | |
'benchmarks', | |
'memory_usage', | |
'get', | |
'post', | |
'queries', | |
'session_data', |