Skip to content

Instantly share code, notes, and snippets.

View ashchan's full-sized avatar
🏠
Working from Mars

Jianming Chen ashchan

🏠
Working from Mars
View GitHub Profile
{
"all_nodes": {
"0b2d8d19-b7a0-489a-8cd3-496397a61c29": {
"id": "0b2d8d19-b7a0-489a-8cd3-496397a61c29",
"name": "Root",
"position": {
"dx": 157,
"dy": 367
},
"slots": [
0x60588ab1979CA415Af34D10D7EBBf07Fa1Eb9560
0x00723B37C14116276b5d82b665C0E60665dE811a
0x00c9fFBAAe8db8343360601E36ab8A306c35182b
0x009518444A4510aC6f48A2A641D1DB02d287F500
0x0046914464b71c9767bFa67A82CB58e2fC19242D
@ashchan
ashchan / gist:ee95e178fbdf13ca77ac88d77031baa0
Created August 9, 2017 01:01
Kovan test account #001
0x00B910Ea17B9ec4594b9fbA0fE7be3ce4db0A90d
@ashchan
ashchan / HairlineView.swift
Last active August 29, 2015 14:22
Draw a half pixel horizontal line
import UIKit
// How to use
// Drag an UIView to storyboard, set constraints.
// Set the height constraint priority to less than 1000.
// The view will override that to half pixel.
class HairlineView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
}
@ashchan
ashchan / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ashchan
ashchan / link_nongiest.rake
Last active December 15, 2015 06:48
Symbolink to digested assets (w/ fingerprint)