Skip to content

Instantly share code, notes, and snippets.

View rockyjia's full-sized avatar
:octocat:
I may be slow to respond.

Rocky Jia rockyjia

:octocat:
I may be slow to respond.
View GitHub Profile
{"sig":"a562f930042d5269c285a31d0bb5985ab0e1f2d12e811fb42ac196028fc16147b5317bbdc8de5c5593c2a6343bfae570dbb7801ac7b41f1810d4b071877b391f0","msghash":"febfb08d27f22226c7cf952255852e33f374bb59f8bf15cd08ee979b0839a5c6"}
@rockyjia
rockyjia / gist:0dea90505ada299df3f8274488b392cf
Last active January 2, 2017 11:01
posts_controller.rb
class PostsController < ApplicationController
before_filter :authenticate_user!, :only => [:new, :create, :update, :destroy]
def new
@group = Group.find(params[:group_id])
@post = Post.new
end
def show
@rockyjia
rockyjia / 12306.user.js
Created January 5, 2012 08:51 — forked from quietlynn/12306.user.js
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 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