Skip to content

Instantly share code, notes, and snippets.

@cafreamoroso
cafreamoroso / gist:2342509
Created April 9, 2012 09:32
ShimLink Link Protector
ShimLink = {
_hosts: {
your: 'your.host.com',
another: 'another.host.com',
www: 'www.host.com',
tld: 'host.com',
<?
/*
* Majestic SDK skeleton;
* provides a central point for accessing majestic environments and other configurations.
*/
class Majestic {
const STAGING_HOST = 'fbsocialapp.co';
ahitrol<?
class PushWebservice extends WebService {
const publish_key = 'pub-97f307a9-9106-4f70-9669-1f39baebaf4b';
const subscribe_key = 'sub-e7711140-84c5-11e1-9cee-cb71e91be0d6';
public $user;
public $user_id;
@cafreamoroso
cafreamoroso / gist:2225560
Created March 28, 2012 11:37
Universe Code -- Code i used for creating this Universe, should refactor it one day.
Changelog
1.0:: Quick created after spawning on the totally uncertainty.
1.1:: Added punishment, 1.0 didn't have anything like that so it went to shit pretty soon.
TODO:
1.0:: Refactor whole thing to not spawn so many universes, they are basically the same.