http://formatmysourcecode.blogspot.tw/
- Mar 29 Sat 2014 18:08
-
format my source code to html
- Oct 06 Mon 2014 17:25
-
python - time
- Sep 16 Tue 2014 17:39
-
python - thread
Return Value of threads
# -*- coding: UTF-8 -*-
def foo(bar, result, index):
print 'hello {0}'.format(bar)
result[index] = "foo"
- Sep 16 Tue 2014 17:32
-
Javascript - class
Reference
- [1]static method in javascript
- http://stackoverflow.com/questions/1535631/static-variables-in-javascript
- Apr 22 Tue 2014 10:11
-
shell - while loop
#!/bin/bash
count=0
while [ true ]
do
count=$(( $count+1 ))
- Apr 22 Tue 2014 10:09
-
expect - sftp example
#!/opt/csw/bin/expect
set timeout 20
spawn sftp root@host
expect "*password*"
send "ej03xu35k3au4a83\r"
- Apr 17 Thu 2014 17:46
-
javascript injection
< >
- Apr 16 Wed 2014 11:02
-
[轉錄] ls color setting
ref :http://blog.longwin.com.tw/2006/07/color_ls_in_bash_2006/
Display : ls --color
Setting : declare -x (for linux)
- Apr 14 Mon 2014 16:31
-
python - inheritance & template pattern
class base:
def __init__(self, name):
self.name = name
def show(self):
print "Base Class is here!!"
- Apr 08 Tue 2014 18:03
-
sorting by value of dictionary
d = {1: 2, 3: 4, 4:3, 2:1, 0:0}
sorted(d.items(), key=lambda x: x[1])
- Apr 08 Tue 2014 17:45
-
Browse all elements of array
idList = [];
$('.jobs').each(function(){
if($(this).attr("checked"))
{
idList.push($(this).attr('jobid'));
- Apr 07 Mon 2014 14:27
-
python - thread example
# -*- coding: UTF-8 -*-
import time
import threading
def myfunc(i):
time.sleep(5)