Skip to content

Instantly share code, notes, and snippets.

View tjjh89017's full-sized avatar

Date Huang tjjh89017

View GitHub Profile
def det(row1, row2):
return row1[0] * row2[1] - row1[1] * row2[0]
l4d2 = [ [1, 2], [3, 4] ]
print det(*l4d2)
print 'Hello World!'
print 'aaaa'
print 'aaaa'
word = 'python'
print word[0:3]
@tjjh89017
tjjh89017 / index.js
Created August 22, 2014 05:48 — forked from edokeh/index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
set shell=bash
set nocompatible
filetype on
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
#!/usr/bin/env python
# -*- coding: utf8 -*-
import os
import sys
import string
import random
def passwd_generator(size = 6, chars = string.ascii_uppercase + string.ascii_lowercase + string.digits):
return "".join(random.choice(chars) for x in xrange(size))