http://formatmysourcecode.blogspot.tw/

JerryCheng 發表在 痞客邦 留言(0) 人氣()

Reference

  • Introduction to datetime object

http://www.seehuhn.de/pages/pdate

JerryCheng 發表在 痞客邦 留言(0) 人氣()

Return Value of threads

# -*- coding: UTF-8 -*-
def foo(bar, result, index):
print 'hello {0}'.format(bar)
result[index] = "foo"

JerryCheng 發表在 痞客邦 留言(0) 人氣()

Reference

  • [1]static method in javascript
  • http://stackoverflow.com/questions/1535631/static-variables-in-javascript

JerryCheng 發表在 痞客邦 留言(0) 人氣()

#!/bin/bash
count=0
while [ true ]
do
count=$(( $count+1 ))

JerryCheng 發表在 痞客邦 留言(0) 人氣()

#!/opt/csw/bin/expect
set timeout 20
spawn sftp root@host
expect "*password*"
send "ej03xu35k3au4a83\r"

JerryCheng 發表在 痞客邦 留言(0) 人氣()

< >

JerryCheng 發表在 痞客邦 留言(0) 人氣()

ref :http://blog.longwin.com.tw/2006/07/color_ls_in_bash_2006/

  Display : ls --color

  Setting : declare -x (for linux)

JerryCheng 發表在 痞客邦 留言(0) 人氣()

class base:
def __init__(self, name):
self.name = name
def show(self):
print "Base Class is here!!"

JerryCheng 發表在 痞客邦 留言(0) 人氣()

d = {1: 2, 3: 4, 4:3, 2:1, 0:0}
sorted(d.items(), key=lambda x: x[1])

JerryCheng 發表在 痞客邦 留言(0) 人氣()

            idList = [];
$('.jobs').each(function(){
if($(this).attr("checked"))
{
idList.push($(this).attr('jobid'));

JerryCheng 發表在 痞客邦 留言(0) 人氣()

# -*- coding: UTF-8 -*-
import time
import threading
def myfunc(i):
time.sleep(5)

JerryCheng 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。