Skip to content

Instantly share code, notes, and snippets.

View iqiancheng's full-sized avatar
🌴
On vacation

千橙 iqiancheng

🌴
On vacation
View GitHub Profile
/*
urn:isbn: なリンクを Amazon.co.jp へのリンクに変換するスクリプト
*/
document.addEventListener('DOMContentLoaded',isbn2amazon,false);
function isbn2amazon()
{
var links = document.getElementsByTagName('a');
# Released into the Public Domain by tav <tav@espians.com>
"""
MoviePilot API
"""
try:
import json
except ImportError:
@d3zd3z
d3zd3z / convert.py
Created October 17, 2010 19:22
Bulk convert m4a files to mp3
#! /bin/env python
import re
import subprocess
import sys
import os
import uuid
# Convert m4a to mp3.
@esperlu
esperlu / mysql2sqlite.sh
Created April 27, 2011 05:46
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
@weakish
weakish / flvcd.py
Created May 19, 2011 02:27
Download videos via flvcd.com
#!/usr/bin/env python3.2
# by Jakukyo Friel <weakish@gmail.com> under GPL v2
# Download videos via flvcd.com
# Usage: flvcd url
# TODO:
# - Some sites divide video into clips, we need to support it.
# - flvcd.com may use '...' in the link address displayed. This script fails under this condition.
@GlowScripts
GlowScripts / All of the eBooks
Created August 28, 2011 22:41
Almost 1,000 "For Dummies" eBooks that I have. :)
78 Tax Tips for Canadians for Dummies (ISBN - 0470676582)
A Family's Guide to the Military for Dummies (ISBN - 0470386975)
Access 2007 VBA Programming for Dummies (ISBN - 0470046538)
Access 2010 All-in-One for Dummies (ISBN - 0470532181)
Access Forms & Reports for Dummies (ISBN - 0764599658)
Access VBA Programming for Dummies (ISBN - 0764574116)
Accounting for Dummies (ISBN - 0470246006)
Accounting Workbook for Dummies (ISBN - 0471791458)
Acne for Dummies (ISBN - 0471746983)
Acrylic Painting for Dummies (ISBN - 047044455X)
@adrianshort
adrianshort / 500isbn13s.csv
Created September 30, 2011 13:18
500 ISBN-13s - sample data
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
9780006281436
9780006281443
9780006499152
9780006499480
9780006532286
9780006547747
9780006547754
9780007117536
9780007134724
9780007139842
@nana4gonta
nana4gonta / fav.rb
Created October 23, 2011 16:53
export favorite tweets
# -*- coding: utf-8 -*-
=begin
マジックコメントによる外部エンコーディングは適宜環境に合わせて直してください。
TwitterのFavoritesを取得するコード。
Ruby1.9であれば動くはずです。
OAuthによる認証を行なっていないために1時間に150クエリでAPI制限されます。
今後直すつもりですが現在は 20Fav * 150クエリ = 3000Fav までとりあえず取得できます。
@quietlynn
quietlynn / 12306.user.js
Created January 3, 2012 12:01
12306 Auto Query => A javascript snippet to help you book ticket
/*
12306 Auto Query => A javascript snippet to help you book tickets online.
Copyright (C) 2011-2012 Jingqin Lynn
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes Sizzle.js
@entaroadun
entaroadun / gist:1653794
Created January 21, 2012 20:10
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation: