Skip to content

Instantly share code, notes, and snippets.

Working from Mars

James Chen ashchan

Working from Mars
Block or report user

Report or block ashchan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:fbb5dcc70c48a6434b41154d61217da6
View gist:a628dfc9adca733b69aab88d6304557d
View gist:de8c9ac89678c2db24c4658519d05544
View gist:ee95e178fbdf13ca77ac88d77031baa0
ashchan / HairlineView.swift
Last active Aug 29, 2015
Draw a half pixel horizontal line
View HairlineView.swift
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 / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
ashchan / link_nongiest.rake
Last active Dec 15, 2015
Symbolink to digested assets (w/ fingerprint)
View link_nongiest.rake
ashchan / still have problem
Created Jul 20, 2011
macruby_deploy app with space in name
View still have problem
$ macruby_deploy --compile --embed --bs Gmail\
*** Deployment started
*** Embedding MacRuby.framework
*** Embed BridgeSupport system files
*** Fix install path of binaries
*** Fix identification name of libmacruby
/usr/bin/otool: can't open file: Gmail (No such file or directory)
/usr/bin/otool: can't open file: (No such file or directory)
Error when executing `/usr/bin/otool -L Gmail'
You can’t perform that action at this time.