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 zsh | |
FO=$(cat) | |
X=$(head -n 1 <<<$FO) | |
YL=$(echo $FO|wc -l|bc) | |
FF=$((echo $X|tr 1 0;echo $FO;echo $X|tr 1 0)|addl 0\ |addr \ 0) | |
for L in {1..$YL};do | |
for C in {1..$(echo $X|awk '{print NF}')}; do | |
echo $FF | sed -n $L,$((L+2))p | cut -d \ -f $C,$((C+1)),$((C+2)) | xargs | { | |
read B | |
if echo $B | grep -q '. . . . 1 . . . .';then |
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
echo abcdefghijklmn | emacs -Q --batch --insert /dev/stdin --eval '(progn (while (re-search-forward "\\(.\\)\\(.\\)" nil t) (replace-match (concat "\\1" (capitalize (match-string 2))) nil nil))(princ (buffer-string)))' |
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
echo 1 | emacs -Q --batch --insert /dev/stdin --eval '(let ((bs (substring (buffer-string) 0 1))) (defun x (i s) (if (< i 10) (progn (princ (concat s "\n"))(x (+ i 1) (concat s bs))))) (x 0 bs) )' |
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 | |
require_once 'vendor/autoload.php'; | |
use \PhpOffice\PhpPresentation\IOFactory; | |
\PhpOffice\PhpPresentation\Autoloader::register(); | |
$oWriter = IOFactory::createReader('PowerPoint2007'); | |
$prst = $oWriter->load(__DIR__ . '/20141019OSC_LT.pptx'); |
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 | |
for ($j = 0; $j < 100; $j++) { | |
$time = microtime(true); | |
for ($i = 0; $i < 1000; $i++) { | |
$fn = sprintf("%04d", $i); | |
file_put_contents($fn . ".spf", "asdfasdfasdfasdf"); | |
} | |
echo (microtime(true) - $time); | |
echo ","; |
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 tm//lib/issuetrackerintegration/redminerestInterface.class.php /var/www/tm/lib/issue[0/494]integration/redminerestInterface.class.php | |
--- tm//lib/issuetrackerintegration/redminerestInterface.class.php 2013-03-10 02:20:54.000000000 +0900 | |
+++ /var/www/tm/lib/issuetrackerintegration/redminerestInterface.class.php 2013-04-24 19:13:06.622029202 +0900 | |
@@ -55,7 +55,7 @@ | |
$base = trim($this->cfg->uribase,"/") . '/'; // be sure no double // at end | |
if( !property_exists($this->cfg,'uriview') ) | |
{ | |
- $this->cfg->uriview = $base . 'issues/show/'; | |
+ $this->cfg->uriview = $base . 'issues/'; | |
} |
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
161c161,164 | |
< return "SELECT version() AS ver"; | |
--- | |
> $version = @pg_fetch_array(@pg_query($this->conn_id, "SELECT version() AS ver")); | |
> $version_array = explode(" ", $version['ver']); | |
> $version_array['server'] = $version_array[1]; | |
> return $version_array; | |
700a704,706 | |
> function pg_error() { | |
> pg_last_error(); |
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 -ur ../../temp/kenjis-my-ciunit-27a0665997a8/application/third_party/CIUnit/config/config.php src/application/third_party/CIUnit/config/config.php | |
--- ../../temp/kenjis-my-ciunit-27a0665997a8/application/third_party/CIUnit/config/config.php 2012-01-18 01:27:00.000000000 +0900 | |
+++ src/application/third_party/CIUnit/config/config.php 2013-04-03 17:56:13.738279800 +0900 | |
@@ -8,6 +8,8 @@ | |
*/ | |
$config['ciu_subclass_prefix'] = 'CIU_'; | |
+$config['log_threshold'] = 4; | |
+$config['log_path'] = 'logs/'; | |
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
#!/Gauche/bin/gosh | |
(use text.html-lite) | |
(use rfc.http) | |
(use rfc.uri) | |
(use www.cgi) | |
(use sxml.ssax) | |
(use sxml.sxpath) | |
(load "htmlprag.scm") | |
(use srfi-27) ; random-integer |
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
#!"C:\xampp\perl\bin\perl.exe" | |
print "Content-type: text/html\n\n"; | |
use strict; | |
use warnings; | |
use threads; | |
use threads::shared; | |
use Thread::Semaphore; |