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
root@CosHiM-MAC:/usr/local/bin|⇒ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install cake 2>&1 | |
Warning: Building source; cellar of cmake's bottle is /usr/local/Cellar | |
==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.11.1.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/cmake-2.8.11.1.tar.gz | |
tar xf /Library/Caches/Homebrew/cmake-2.8.11.1.tar.gz | |
==> ./bootstrap --prefix=/usr/local/homebrew/Cellar/cmake/2.8.11.1 --system-libs --no-system-libarchive --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man | |
./bootstrap --prefix=/usr/local/homebrew/Cellar/cmake/2.8.11.1 --system-libs --no-system-libarchive --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man | |
--------------------------------------------- | |
CMake 2.8.11.1, Copyright 2000-2012 Kitware, Inc. | |
C compiler on this system is: cc |
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
class lawn_sign(){ | |
public sign(people x){ | |
if my_sheet == empty: | |
my_sheet = new sheet(); | |
sheet.add(x.name); | |
} | |
public sign_count(){ | |
return my_sheet.size() |
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
tyw@CosHiM-MAC:~/EBook|⇒ find . | grep -v .DS_Store | |
. | |
./.ignore | |
./Algorithm | |
./Algorithm/[Algorithm][EN]Introduction to Algorithms, Third Edition.pdf | |
./Algorithm/[Algorithm][ZH][v2]算法导论(目录).pdf | |
./Algorithm/[Algorithm][ZH][v2]算法导论_(美)Cormen[www.TopSage.com].pdf | |
./Algorithm/[Algorithm][ZH]Introduction to Algorithms.pdf | |
./Algorithm/[Algorithm]算法导论answer.pdf | |
./Algorithm/[Discrete][离散数学].杜忠复.文字版.pdf |
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 python | |
# -*- coding: UTF-8 -*- | |
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: | |
# work with python 2.7 | |
import curses | |
import time | |
import sys | |
color = 2 | |
space = '\x1b[48;5;%dm \x1b[0m' % color |
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
\documentclass{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage{hyperref} | |
\author{Tianyi Wu} | |
\date{June 2014} | |
\usepackage{natbib} | |
\usepackage{graphicx} |
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 python | |
# -*- coding: UTF-8 -*- | |
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: | |
# work with python 2.7 | |
# Author: Landon@CosHiM <tywtyw2002@gmail.com> | |
# Version: 0.1 Beta | |
import urllib2 | |
import re | |
import sys |
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
curl -x 127.0.0.1:5203 http://hot.vrs.sohu.com/ipad1406916_4619571893905_4617237.m3u8 | |
#EXTM3U | |
#EXT-X-TARGETDURATION:30 | |
#EXT-X-VERSION:3 | |
#EXTINF:7.759, | |
http://220.181.61.229/ipad?file=/60/81/YrQ60nrYyBtPFrCCSAcyj6.mp4&start=0&end=7.679&ch=tv&cateCode=101104;101106;101121&uid=null&plat=null&pt=-1&pg=null&vid=1406916&eye=0&sig=UL6geJYn4etegwZ1NduiB-6QfUuGpfNm | |
#EXTINF:25.161, | |
http://220.181.61.229/ipad?file=/60/81/YrQ60nrYyBtPFrCCSAcyj6.mp4&start=7.679&end=32.84&ch=tv&cateCode=101104;101106;101121&uid=null&plat=null&pt=-1&pg=null&vid=1406916&eye=0&sig=UL6geJYn4etegwZ1NduiB-6QfUuGpfNm | |
#EXTINF:26.159, | |
http://220.181.61.229/ipad?file=/60/81/YrQ60nrYyBtPFrCCSAcyj6.mp4&start=32.84&end=58.999&ch=tv&cateCode=101104;101106;101121&uid=null&plat=null&pt=-1&pg=null&vid=1406916&eye=0&sig=UL6geJYn4etegwZ1NduiB-6QfUuGpfNm |
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 python | |
# -*- coding: UTF-8 -*- | |
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: | |
# work with python 2.7 | |
import subprocess | |
import select | |
import Queue | |
Task_Queue = Queue.Queue() |
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
#!/bin/sh | |
seq 2 32 | xargs printf %02d\\n | while read line | |
do | |
echo ug$line | |
ssh -n ug$line "ps aux | grep gem5.opt | grep -v grep" | |
done |
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
from functools import reduce | |
from math import log, ceil | |
def x(ip): | |
ip_set = ip.split(".") | |
int_ip = sum([int(ip_set[-i]) << (i - 1) * 8 for i in xrange(1, 5)]) | |
return int_ip | |
def r_x(int_ip): | |
return "%d.%d.%d.%d" % ((int_ip & 0xFF000000) >> 24, |
OlderNewer