Skip to content

Instantly share code, notes, and snippets.

View graysonchen's full-sized avatar

Grayson Chen graysonchen

View GitHub Profile
#!/bin/bash
rm -rf api.rubyonrails.org/
wget -r -k -p http://api.rubyonrails.org/
rm rails_api.rar
rar a -r rails_api.rar api.rubyonrails.org/
@graysonchen
graysonchen / dabblet.css
Created February 25, 2014 15:56
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@graysonchen
graysonchen / 360buy.rb
Created November 9, 2012 01:54 — forked from mimosz/.gitignore
京东商品价格解析
# -*- encoding: utf-8 -*-
require 'mini_magick'
require 'rtesseract'
require 'nokogiri'
require 'nestful'
require 'csv'
require 'pp'
class Buy360
def initialize(url='')
@graysonchen
graysonchen / 大蟹api
Created June 16, 2012 04:29
大蟹api
首页
http://www.growcn.com/dhhx/api/homepage.json?page=1
公告
http://www.growcn.com/dhhx/api/adtopic.json
详细
http://www.growcn.com/dhhx/api/detail.json?id=102126
总细页
http://www.growcn.com/dhhx/api/funtop.json?page=1