Skip to content

Instantly share code, notes, and snippets.

View andyfangdz's full-sized avatar

Andy Fang andyfangdz

View GitHub Profile
@andyfangdz
andyfangdz / list.md
Last active August 29, 2015 13:56
iOS Apps List

Tech.

  • Prompt (*)
  • Asana
  • iFile (*)
  • TouchOSC (*)
  • CodeHub

Tools

- Between %s and %s. % ((Object), (Object))

Keybase proof

I hereby claim:

  • I am yzmtf2008 on github.
  • I am AndyFang (https://keybase.io/AndyFang) on keybase.
  • I have a public key whose fingerprint is 283D F005 AB50 1120 7B20 D731 945B BBCB 0A97 9221

To claim this, I am signing this object:

  • "Your rights matter because you never know when you're going to need them." - Edward Snowden #TED2014
  • "The public interest is not always the same as national interest." - Edward Snowden #TED2014
  • "The Internet is not the enemy. Our economy is not the enemy. American businesses, Chinese businesses, and any other company out there is a part of our society. It's a part of our interconnected world. There are ties of fraternity that bond us together, and if we destroy these bonds by undermining the standards, the security, the manner of behavior, that nations and citizens all around the world expect us to abide by." - Edward Snowden #TED2014
  • "It's up to us to preserve that liberation for the next generation to enjoy." - Edward Snowden #TED2014
  • "When we debate about where we can go, it's really a question about what we are willing to put into." - Edward Snowden #TED2014
  • "The last year has been a reminder that democracy may die behind closed doors, but we as individuals are born behind those same closed d
#!/usr/bin/python
# coding=utf-8
# Python version of Zach Holman's "spark"
# https://github.com/holman/spark
# by Stefan van der Walt <stefan@sun.ac.za>
"""
USAGE:
/* Gmail style scrollbar */
::-webkit-scrollbar {
width: 12px
}
::-webkit-scrollbar-thumb {
border-width: 1px 1px 1px 2px
}
::-webkit-scrollbar-track {
border-width: 0
}
@andyfangdz
andyfangdz / gist:f9db5349c540ba872490
Created June 29, 2015 13:34
Useful python timezone snipits
from datetime import datetime
import pytz
datetime.now(pytz.utc)
@andyfangdz
andyfangdz / delegate.js
Created July 8, 2015 13:49
jQuery Delegate
function __delegate(callTable) {
for (var selector in callTable) {
if (callTable.hasOwnProperty(selector)) {
for (var event in callTable[selector]) {
if (callTable[selector].hasOwnProperty(event)) {
$(selector).on(event, callTable[selector][event]);
}
}
}
}
@andyfangdz
andyfangdz / gulpfile.js
Last active October 28, 2015 18:21
buildmatrix - gulp
var gulp = require('gulp');
var webpackStream = require('webpack-stream');
var named = require('vinyl-named');
var argv = require('yargs').argv;
var glob = require("glob");
var path = require("path");
var plumber = require('gulp-plumber');
var format = require('string-format');
var webpack = require("webpack");
var gutil = require('gulp-util');
@andyfangdz
andyfangdz / text.md
Created December 2, 2015 23:26
Git as C++ Package Manager

Have you considered Git as a package manager? I've been using git submodules for dependencies and sub-dependencies and combined with free git hosting services, the idea is quite powerful.

Just go into your git project,

git submodule add git://somehosting.com/you/package.git
git submodule init package
git submodule update package
cd package && ./configure --stuff && make && cd ..

To select particular dependency versions,