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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Loader extends CI_Loader { | |
public function __construct() { | |
parent::__construct(); | |
} | |
/** | |
* CI_Loader::_ci_load is private method. | |
* | |
* (non-PHPdoc) |
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 -ru CodeIgniter_2.0.2/application/config/autoload.php CodeIgniter_2.0.3/application/config/autoload.php | |
--- CodeIgniter_2.0.2/application/config/autoload.php 2011-04-08 02:20:00.000000000 +0900 | |
+++ CodeIgniter_2.0.3/application/config/autoload.php 2011-08-20 20:59:14.000000000 +0900 | |
@@ -37,7 +37,7 @@ | |
| | |
*/ | |
-$autoload['packages'] = array(APPPATH.'third_party'); | |
+$autoload['packages'] = array(); | |
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/bash | |
DIR=${1?'pictures directory require.'} | |
DIR=${DIR%/} | |
PIC_DIR='YOUR SAVE PICTURE ROOT PATH' | |
total=$(ls $DIR |wc -l) | |
count=1 | |
for line in $(ls -lt $DIR |awk '{print $6","$8}') | |
do |
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
--- CodeIgniter_2.0.3/application/config/database.php 2011-08-20 20:59:14.000000000 +0900 | |
+++ application/config/database.php 2011-09-05 14:04:52.375136218 +0900 | |
@@ -45,6 +45,9 @@ | |
*/ | |
$active_group = 'default'; | |
+if (defined('CIUnit_Version')) { | |
+ $active_group .= '_test'; | |
+} | |
$active_record = TRUE; |
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
function base_url() { | |
var url = window.location.href; | |
var idx = url.lastIndexOf('/'); | |
if (idx > 0) { | |
url = url.substr(0, idx); | |
} else { | |
url = ""; | |
} | |
return url; | |
} |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Encode; | |
use HTTP::Request::Common; | |
use LWP::UserAgent; | |
my $ua = LWP::UserAgent->new; |
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
remove Control = Control_R | |
keysym Control_R = Super_R | |
add Control = Control_R |
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
/** | |
* Return calendar for weight. | |
* @return Calendar | |
*/ | |
function getWeightCal() { | |
var id = 'YOUR GOOGLE CALENDAR ID'; | |
var cal = CalendarApp.getOwnedCalendarById(id); | |
return cal; | |
} |
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 -ru CodeIgniter_2.0.3//application/config/database.php CodeIgniter_2.1.0//application/config/database.php | |
--- CodeIgniter_2.0.3//application/config/database.php 2011-08-20 20:59:14.000000000 +0900 | |
+++ CodeIgniter_2.1.0//application/config/database.php 2011-11-01 01:15:36.000000000 +0900 | |
@@ -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 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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use autodie; | |
sub validate_show_lines { | |
my ( $show ) = @_; | |
return @$show[0] =~ /^tag .*$/; | |
} |