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
| import it.unimi.dsi.webgraph.*; | |
| import java.io.File; | |
| import java.io.FileWriter; | |
| /** | |
| * Created by yluo on 6/13/2014. | |
| * webgraph: http://webgraph.di.unimi.it/ | |
| * | |
| * output format: node [children] |
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
| <html> | |
| <!-- http://stackoverflow.com/questions/3338123/how-do-i-recursively-delete-a-directory-and-its-entire-contents-filessub-dirs --> | |
| <head> | |
| <title>PHP Test</title> | |
| </head> | |
| <body> | |
| <?php echo '<p>Hello World</p>'; ?> | |
| <?php | |
| function rrmdir($dir) { |
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
| \begin{pgfpicture} | |
| \pgftext{\pgfimage[width=4cm,height=3.5cm]{scratch.png}} | |
| \end{pgfpicture} |
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
| rsync -avz --remove-source-files /sourcedir user@host:/targetdir |
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
| \SetKwFor{ForEach}{for each}{do}{endfch} |
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
| \begin{algorithm2e} | |
| \SetKwFor{ForEach}{for each}{do}{endfch}%separate foreach with a space | |
| \SetArgSty{textrm} %do not automatically use italic in arguments | |
| \DontPrintSemicolon % Some LaTeX compilers require you to use \dontprintsemicolon instead | |
| %\NoCaptionOfAlgo %using this to not print the bold Algorithm in caption, usful in inline algo explainations | |
| \KwIn{input} | |
| \KwOut{output} | |
| \Return{return value} | |
| \caption{caption} | |
| \label{algo:label} |
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
| ssh ngrid01 "find /scratch/yluo/ -name 'power*log'" |
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
| \def\arraystretch{1.5} | |
| \begin{tabular}{lll} | |
| \toprule | |
| \midrule | |
| \bottomrule | |
| \end{tabular} |
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
| //convert file name | |
| convmv -f gbk -t utf8 -r . | |
| //convert file content | |
| iconv -f gbk -t utf8 file.txt -o output.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
| \begin{algorithm2e}[htbp] | |
| \SetKwFor{ForEach}{for each}{do}{endfch}%separate foreach with a space | |
| \SetArgSty{textrm} %do not automatically use italic in arguments | |
| \SetKwFunction{Map}{Map} | |
| \SetKwFunction{Reduce}{Reduce} | |
| \SetKwProg{myproc}{Procedure}{}{} | |
| \DontPrintSemicolon % Some LaTeX compilers require you to use \dontprintsemicolon instead | |
| \KwIn{} | |
| \KwOut{} | |
| \myproc{\Map{[(key, value)]}}{ |
OlderNewer