Skip to content

Instantly share code, notes, and snippets.

@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@wgx731
wgx731 / PagingControl.js
Created May 19, 2012 06:05 — forked from raulriera/PagingControl.js
Nice Paging control for scrollableViews for Titanium Appcelerator
// Forked from https://gist.github.com/2417902 to fix a small bug
// -----
function PagingControl(scrollableView){
var pages = [];
var page;
var numberOfPages = 0;
// Configuration
var pageColor = "#c99ed5";
var container = Titanium.UI.createView({
@ericsk
ericsk / gist:3061197
Created July 6, 2012 16:32
使用 WebAuthenticationBroker 做 Facebook 身份驗證 (C#)
using Windows.Foundation;
using Windows.Security.Authentication.Web;
// 組合授權的 URL
var authUrl = new Uri(string.Format(
"https://www.facebook.com/dialog/oauth?client_id={0}&redirect_uri={1}&response_type=token&display=popup&scope={2}",
"<你應用程式的 ID>",
Uri.EscapeDataString("https://www.facebook.com/connect/login_success.html"),
"<權限列表,以 , 隔開>"));