Skip to content

Instantly share code, notes, and snippets.

@zetasq
zetasq / PA2.flex
Last active September 5, 2016 15:52
/*
* The scanner definition for COOL.
*/
/*
* Stuff enclosed in %{ %} in the first section is copied verbatim to the
* output, so headers and global definitions are placed here to be visible
* to the code in the file. Don't remove anything that was here initially
*/
%{
//
// LoadingButton.swift
// Teambition
//
// Created by Zhu Shengqi on 8/11/16.
// Copyright © 2016 Teambition. All rights reserved.
//
import UIKit
import SnapKit
@zetasq
zetasq / 0_reuse_code.js
Created April 12, 2016 11:35
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
//
// ZSDoubleCascadeTableView.m
//
// Created by ZhuShengqi on 25/9/15.
// Copyright © 2015 9tong. All rights reserved.
//
#import "ZSDoubleCascadeTableView.h"
@interface ZSDoubleCascadeTableView () <UITableViewDelegate, UITableViewDataSource>
//
// ZSDoubleCascadeTableView.h
//
// Created by ZhuShengqi on 25/9/15.
// Copyright © 2015 9tong. All rights reserved.
//
#import <UIKit/UIKit.h>
@class ZSDoubleCascadeTableView;
@zetasq
zetasq / ZSButton
Created August 26, 2015 14:43
Set a button with minimum trigger time for click events
#import <UIKit/UIKit.h>
#import "objc/runtime.h"
@interface UIButton (ZS)
@property (nonatomic, strong) NSDate *associatedTriggerTimeStamp;
@property (nonatomic, strong) NSNumber *associatedMinimumTriggerInterval;
+ (void) configTriggerMechanism;