Skip to content

Instantly share code, notes, and snippets.

@chixiang
chixiang / TableViewController.swift
Last active January 20, 2017 07:54
TableViewController using Realm
import UIKit
import RealmSwift
class DemoObject: Object {
dynamic var title = ""
dynamic var date = NSDate()
}
class Cell: UITableViewCell {
override init(style: UITableViewCellStyle, reuseIdentifier: String!) {
@chixiang
chixiang / 0_reuse_code.js
Created January 20, 2017 07:57
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
@chixiang
chixiang / Stylish
Created July 4, 2017 06:21
Stylish
/* i really want this to be global */
* {
font-family: "XHei Ubuntu","Microsoft Yahei" !important;
text-shadow: 0.05em 0.05em 0.2em #999999 !important;
}
pre, code, kbd, samp, var {
font-family: "XHei Ubuntu Mono", "Microsoft Yahei", monospace !important;
text-shadow: 0.05em 0.05em 0.2em #999999 !important;