Skip to content

Instantly share code, notes, and snippets.

@from1to9
from1to9 / TLH_ZHS_DICT.txt
Created July 4, 2012 01:10
Klingon Chinese Dictionary
-----------------------------------------------------------
ORIGINAL AUTHOR INFORMATION:
URL: http://klingonska.org/dict/dict.zdb
LICENSE: Creative Commons Attribution-ShareAlike 3.0
<http://creativecommons.org/licenses/by-sa/3.0/>
AUTHOR: Zrajm C Akfohg <zrajm@klingonska.org>
TRANSLATOR:
from1to9 <from1to9[at]gmail.com>
http://lyy.me
@from1to9
from1to9 / fanfou_oauth.py
Last active August 31, 2016 12:59
Fanfou API for python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# code by from1to9
# from1to9@gmail.com
# update 31/08/2016
# pass a local image addr to upload photo, like '/home/user/test.jpg'
import oauth2 as oauth
import re, time
@from1to9
from1to9 / fanfou_5th_photo_spider.py
Created May 11, 2012 11:14
auto download photos from fanfou 5th birthday page
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#code by from1to9
#05/11/2012
#from1to9[at]gmail.com
#
#you have to make a folder by yourself named "photo" where photos will be stored in the same folder of this script
#a file named "last.txt" will be made in this folder, it keeps the start photo id, delete it and the script will download all photos again
@from1to9
from1to9 / nodeFanfou.js
Created April 9, 2012 13:51
Fanfou API for node.js
/*
code by from1to9
http://lyy.me
this code requires node-oauth at: https://github.com/ciaranj/node-oauth
useage:
callback could be a object which includes two functions, like
callback = { success : function() { //your code },
failed : function() { //your code }