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
<?xml version="1.0" encoding="utf-8" ?> | |
<project name="sorted-filelist" basedir="." default="all"> | |
<target name="all" depends="use-fileset, use-find" /> | |
<!-- fileset version --> | |
<!-- no sort --> | |
<target name="use-fileset"> | |
<foreach param="filename" target="echo-filename"> | |
<fileset dir="./testdir"> |
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
$ mkdir testdir | |
$ cd testdir | |
$ touch touch 22test.txt | |
$ touch touch 10test.txt | |
$ touch touch 40test.txt | |
$ touch touch 30test.txt |
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
$ phing | |
Buildfile: /home/suzuki/build.xml | |
sorted-filelist > use-fileset: | |
[foreach] Calling Buildfile '/home/suzuki/build.xml' with target 'echo-filename' | |
sorted-filelist > echo-filename: | |
[echo] Filename is 22test.txt |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Pod::Usage; | |
use Text::Markdown 'markdown'; | |
use HTML::TreeBuilder; | |
use List::Util 'max'; |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Pod::Usage; | |
use Text::Markdown 'markdown'; | |
use HTML::TreeBuilder; | |
use List::Util 'max'; |
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
/** | |
* Detect charset from MIME string | |
* | |
* @params string | |
* @return mixed found a charset string (upper case) or couldn't found false | |
*/ | |
public function getCharsetFromMimeString($mimeString) { | |
$mimeString = trim($mimeString); | |
if (preg_match('/^=\?([^?]+)\?(:?B|Q)\?[^?]+\?=$/', $mimeString, $matched)){ | |
return strtoupper($matched[1]); |
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
(defun split-window-vertically-one-third() | |
"Split the selected window into two windows, one above the other, size is one third of window-heihgt" | |
(interactive) | |
(split-window-vertically (/ (window-height) 3))) | |
(global-set-key "\C-x2" 'split-window-vertically-one-third) |
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
$ git diff app/Model/Project.php | |
diff --git a/app/Model/Project.php b/app/Model/Project.php | |
index af47298..fa9c98e 100755 | |
--- a/app/Model/Project.php | |
+++ b/app/Model/Project.php | |
@@ -329,7 +329,7 @@ class Project extends AppModel { | |
$enabledModuleTable = $this->EnabledModule->tablePrefix . $this->EnabledModule->table; | |
$emName = $perm['project_module']; | |
- $base_statement[] = array("EXISTS (SELECT em.id FROM $enabledModuleTable em WHERE em.name='$emName' AND em.project_id=$projectTable.id)" => true); |
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
protected function _getContentTypeCharset() { | |
switch($this->charset) { | |
case 'iso-2022-jp-ms': | |
$charset = 'iso-2022-jp'; | |
break; | |
default: | |
$charset = $this->charset; | |
} | |
return $charset; | |
} |
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
500 Internal Server Error | |
cannot load such file -- pygments (LoadError) | |
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
/home/tdiary/tdiary/core/tdiary/style/gfm_style.rb:24:in `block_code' | |
/home/tdiary/tdiary/core/tdiary/style/gfm_style.rb:120:in `render' | |
/home/tdiary/tdiary/core/tdiary/style/gfm_style.rb:120:in `to_html' | |
/home/tdiary/tdiary/core/tdiary/style/gfm_style.rb:50:in `initialize' |
OlderNewer