Skip to content

Instantly share code, notes, and snippets.

View mhui's full-sized avatar
💭
Why does this feature exist

Matthew Hui mhui

💭
Why does this feature exist
View GitHub Profile
@fzero
fzero / dataoauth.md
Last active December 17, 2015 05:08
Example OAuth callbacks as received by the omniauth gem for Twitter, Tumblr and Instagram.
@pontusarmini
pontusarmini / Soft body CCSprite
Last active April 16, 2020 18:22
Soft body CCSprite originally created by Sébastien Dabet (Gist: https://gist.github.com/sdabet/08a6f41415c5e3b8be0f and tutorial: http://2sa-studio.blogspot.se/2014/05/soft-bodies-with-cocos2d-v3.html) updated for the new rendering engine (Cocos2d-SpriteBuilder >3.1).
//
// SoftBubble.h
//
//
// Created by Pontus Armini on 2015-04-12.
//
//
#import "CCSprite.h"
@indiesquidge
indiesquidge / subdomain-localhost-rails-5.md
Created January 19, 2016 07:42
how to access subdomains locally with Rails 5

Subdomaining Localhost with Rails 5

I've been following this blog post on how to set up an api-only Rails 5 application. One of the sections talks about creating a subdomain for your api

Rails.application.routes.draw do
  constraints subdomain: "api" do
    scope module: "api" do