Skip to content

Instantly share code, notes, and snippets.

You-wei Teng youweit

Block or report user

Report or block youweit

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
davidyen1124 /
Last active Dec 25, 2015
Get the likes of any facebook pages.
# Get the likes of any facebook pages.
# You have to install first.
# Then go to Facebook Graph API Explorer, and copy the Access Token.
import facebook
import sys
davidyen1124 /
Last active Dec 20, 2015
Get WiFly API, and use "pygmaps" to show all the hotspot in Google Maps.
# -*- encoding: utf-8 -*-
import urllib2
import json
import pygmaps
url = ''
davidyen1124 /
Created Jul 13, 2013
Resize the images with SIPS in Mac OS X. Usage: python <height> <width> <path to the directory>
import os
import sys
import commands
def getHeightWidth(file):
widthstr = commands.getstatusoutput('sips -g pixelWidth {0}'.format(file))[1]
heightstr = commands.getstatusoutput('sips -g pixelHeight {0}'.format(file))[1]
evadne / gist:4544569
Last active Oct 2, 2019
Todd Laney’s enhancements to Sticky Headers + UICollectionViewFlowLayout
View gist:4544569
// StickyHeaderLayout.h
// Wombat
// Created by Todd Laney on 1/9/13.
// Copyright (c) 2013 ToddLa. All rights reserved.
// Modified from THANKS!
lotem / default.custom.yaml
Last active Sep 28, 2019
View default.custom.yaml
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
- schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式
View AndroidManifext.xml
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
You can’t perform that action at this time.