start new:
tmux
start new with session name:
tmux new -s myname
Search keywords in a text file
Hadoop(hdfs), Apache Spark, gcc
C,Shell Script, Python
| body { | |
| font-family: 'Source Serif Pro','Lucida Grande', 'Lucida Sans Unicode', 'Geneva', | |
| 'Verdana', sans-serif; | |
| font-size: 18px; | |
| background-color: #fdf6e3; | |
| line-height: 140%; | |
| } | |
| #page-wrapper { | |
| background-color: #fdf6e3; |
| body { | |
| background-color: #fdf6e3; | |
| color: black; | |
| font-family: 'Source Serif Pro',Arial, sans-serif; | |
| font-size: 18px; | |
| line-height: 140%; | |
| text-shadow: 0px 1px 1px #fff; | |
| } | |
| h3 { font-size: 180%; |
| from random import randint | |
| from operator import add | |
| times = 10 | |
| # Step 1: Rooling dice and record result into array | |
| genseq = map (lambda _: randint(1,6) , [i for i in range(times)] ) | |
| #Steap 2: Count occurances | |
| # bmap : map a number into bitmap array, eg: 2 -> [0,1,0,0,0,0](one hot encoding) |
| /** | |
| * Convert iframes to divs via ajax iframe_to_div jQuery Plugin | |
| * | |
| * Uses javascript to replace iframes with divs containing their source content | |
| * by loading via ajax. If you use this to load vanilla html snippets, this has the | |
| * effect of applying the page's css to your vanilla html snippet. | |
| * | |
| * This will not work if the iframe src is not a relative link due to ajax restrictions across domains. | |
| * | |
| * As an example: |