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/sh | |
| perl -pe 's/(\S)(\S)?(\S)?(\S)?(\S)?(\S)?(\S)?(\S)?(\S)?(\S)?(\S)?(\S)?(\S)?/\x1b[48;5;231m\x1b[38;5;35m$1\x1b[38;5;76m$2\x1b[38;5;208m$3\x1b[38;5;202m$4\x1b[38;5;30m$5\x1b[38;5;162m$6\x1b[38;5;25m$7\x1b[38;5;39m$8\x1b[38;5;245m$9\x1b[38;5;208m$10\x1b[38;5;160m$11\x1b[38;5;160m$12\x1b[38;5;54m$13/g' |
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
| 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 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
| 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 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
| {grep -o . | (echo '{ ptr=1;memory=() ';awk '/\[/{print "while [[ memory[$ptr] -ne 0 ]];do"} /\]/{print "done;"}/\+/{print "let $((memory[$ptr]++));"} /-/{print "let $((memory[$ptr]--));"} />/{print "let $((ptr++));"} /</{print "let $((ptr--));"} /\./{print "printf \"\\x$(printf %x $((memory[$ptr])))\";"} /,/{print "memory[$ptr]=$(head -c 1);"}';echo '}') | sh} |
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 | |
| 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 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 | |
| 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 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
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document url("https://www.tumblr.com/dashboard") { | |
| /* | |
| I want two-pane dashboard! | |
| span.quote { font-size: smaller; } | |
| .l-container {width: 1200px; padding-left: 0px;} | |
| div#left_column {width: 1200px;} | |
| li.post_container { float:left;} | |
| */ |
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
| [General] | |
| Name=my | |
| HintingMode=2 | |
| AntiAliasMode=4 | |
| NormalWeight=-8 | |
| BoldWeight=9 | |
| ItalicSlant=-17 | |
| EnableKerning=0 | |
| GammaMode=0 | |
| LcdFilter=2 |
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 -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 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
| 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(); |