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
| foldr (+) 4 [1, 2, 3] -- 1 + (2 + (3 + 4)) == 10 | |
| foldl (+) 1 [2, 3, 4] -- ((1 + 2) + 3) + 4 == 10 | |
| 1 + (2 + (3 + 4)) | |
| (+) 1 (2 + (3 + 4)) | |
| (+) 1 ((+) 2 ((+) 3 4)) | |
| ((1 + 2) + 3) + 4 | |
| (+) ((1 + 2) + 3) 4 |
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 | |
| FILES=`find $1 -name \*.php` | |
| for file in $FILES | |
| do | |
| php -l $file | |
| done |
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
| find dir -name '*.php' -print0 | xargs -0 -n1 -P8 php -l |
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
| var totalCount = 0; | |
| var interval = 30000; | |
| var delay = 3500; | |
| var eachInterval = 1500; | |
| function ajaxPolling(){ | |
| $.ajax({ | |
| url: "target url" | |
| success:function(data){ | |
| var eachCount = 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
| #!/bin/sh | |
| sum=0 | |
| while read line | |
| do | |
| sum=`expr $sum + $line` | |
| done < num.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
| @ECHO OFF | |
| set baseDir="C:\baseDir" | |
| echo %baseDir% | |
| TortoiseProc /command:update /path:%baseDir% | |
| set RESULT=%ERRORLEVEL% |
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
| Ant Plugin | |
| Build Trigger Badge Plugin | |
| Credentials Plugin | |
| CVS Plugin | |
| External Monitor Job Type Plugin | |
| Javadoc Plugin | |
| Jenkins GIT client plugin | |
| Jenkins GIT plugin | |
| Jenkins Multiple SCMs plugin | |
| Jenkins Phing plugin |
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
| touch link | |
| svn add link | |
| svn commit -m "add link" | |
| mv link link.org | |
| ln -s /path/to/dist link | |
| svn commit link | |
| # svn: コミットに失敗しました (詳しい理由は以下のとおりです): | |
| # svn: エントリ '/path/to/symbolic/link' が特殊なステータスを突然変更しました |
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
| Gist (v4.1.1) lets you upload to https://gist.github.com/ | |
| The content to be uploaded can be passed as a list of files, if none are | |
| specified STDIN will be read. The default filename for STDIN is "a.rb", and all | |
| filenames can be overridden by repeating the "-f" flag. The most useful reason | |
| to do this is to change the syntax highlighting. | |
| If you'd like your gists to be associated with your GitHub account, so that you | |
| can edit them and find them in future, first use `gist --login` to obtain an | |
| Oauth2 access token. This is stored and used by gist in the future. |
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
| REPO_DIR=git-pack-gc | |
| LINE_NUM=100000 #000 | |
| FILE_NAME=numbers.txt | |
| GIT_OBJECTS_DIR='.git/objects' | |
| echo "mkdir and git init" | |
| mkdir ${REPO_DIR} | |
| cd ${REPO_DIR} | |
| git init |