Skip to content

Instantly share code, notes, and snippets.

hezhao

Block or report user

Report or block hezhao

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 top100AppProjects.csv
Project # of Top 100 Free Apps (US)
facebook-ios-sdk 67
Bolts-iOS 48
AFNetworking 39
Google-Mobile-Ads-SDK 38
Reachability (Apple) 38
Crashlytics 37
Flurry-iOS-SDK 31
CocoaPods 30
GoogleConversionTracking 29
@stephenlb
stephenlb / animated-gif.md
Last active Feb 6, 2019
DIY How to make your own HD Animated GIF Generator
View animated-gif.md

HD Animated GIF Generator

You can make your own HD animated GIF generator.
Follow along with these commands to get started.

HD Animated GIF Generator

git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
@snower
snower / gist:27d8fc414f073141376e
Last active Jan 22, 2016
greenlet性能测试
View gist:27d8fc414f073141376e
# -*- coding: utf-8 -*-
# 15/1/16
# create by: snower
import time
import greenlet
import threading
m = greenlet.getcurrent()
@learncodeacademy
learncodeacademy / gist:ebba574fc3f438c851ae
Created Jul 24, 2014
Nginx Node Frontend / Load Balancer / Static Assets Caching
View gist:ebba574fc3f438c851ae
upstream project {
server 22.22.22.2:3000;
server 22.22.22.3:3000;
server 22.22.22.5:3000;
}
server {
listen 80;
location / {
@Bouke
Bouke / gist:11261620
Last active Nov 12, 2019
Multiple Python installations on OS X
View gist:11261620

Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv instead. If you are looking for the previous version of this document, see the revision history.

$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10
$ pyenv install 2.6.9
@sloria
sloria / bobp-python.md
Created Oct 16, 2013
A "Best of the Best Practices" (BOBP) guide to developing in Python.
View bobp-python.md

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@num3ric
num3ric / interleave.cpp
Last active Aug 11, 2019
In-place array interleaving
View interleave.cpp
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <assert.h>
typedef std::chrono::high_resolution_clock Clock;
template<typename T>
@jobliz
jobliz / RedisPythonPubSub1.py
Created May 4, 2012
A short script exploring Redis pubsub functions in Python
View RedisPythonPubSub1.py
import redis
import threading
class Listener(threading.Thread):
def __init__(self, r, channels):
threading.Thread.__init__(self)
self.redis = r
self.pubsub = self.redis.pubsub()
self.pubsub.subscribe(channels)
You can’t perform that action at this time.