This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/php | |
<?php | |
define('DIR', 'tree'); | |
define('FILE', 'blob'); | |
function main() { | |
$root_object = 'f3c8ec92f83e2a87c1d00a5681598126e23ab356'; | |
restore_object($root_object, 'restored'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset name="CustomCfg"> | |
<description> | |
PSR2 style guide + tab indent instead of space. | |
</description> | |
<arg name="tab-width" value="4"/> | |
<rule ref="PSR2"> | |
<exclude name="Generic.WhiteSpace.DisallowTabIndent" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STRIPE_SECRET_KEY=XXXXXXX | |
STRIPE_PUBLIC_KEY=YYYYYYY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Controllers\Party; | |
use App\Http\Controllers\Controller as BaseController; | |
use App\Party; | |
use Session; | |
use Redirect; | |
use Request; | |
use URL; | |
class Rsvp extends BaseController { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__d("adsAsyncUtils", [], function(a, b, c, d, e, f) { | |
var g = 30; | |
function h(arr, iter, progress) { | |
"use strict"; | |
this.$ParallelForEach0 = arr; //array | |
this.$ParallelForEach1 = 1; //concurrency | |
this.$ParallelForEach2 = iter; //iterator | |
this.$ParallelForEach3 = progress; //progress complete | |
this.$ParallelForEach4 = 0; //working "threads" | |
this.$ParallelForEach5 = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting up dnsmasq for Local Web Development Testing on any Device | |
Please note, these instructions are for OS X Lion. | |
First, you need to get the IP address of your machine on your local network. In OS X, the easiest place to find this is in System Preferences > Network. If you're using DHCP on your local network, you will want to make sure your computer requests the same IP address when it renews it's IP address lease. I recommend configuring the DCHP Reservation settings on your router to accomplish this. Otherwise, you can specify a manual address in your network settings: | |
1. Go to *System Preferences > Network* | |
1. Click *Advanced...* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Views = { | |
render: function(template, data) | |
{ | |
if (undefined == JST) | |
{ | |
throw new Error("JST Templates unavailable"); | |
} | |
if (undefined == JST[ template ]) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Trustees of Reservations: Berkshires | |
"e" inc. | |
11:11 Theatre Company | |
17 Cox | |
185 Photos | |
33 Restaurant & Lounge | |
3rd Wheel Comedy | |
3Scoops Cafe and Gallery | |
4th Floor Artists | |
54th Mass Volunteer Infantry, Company 'A' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'), | |
_ = require('underscore'); | |
var MANDRILL_API_ROOT = 'https://mandrillapp.com/api/1.0/'; | |
function makeMandrill(key) | |
{ | |
function mandrill(path, opts, callback) | |
{ | |
console.log(this.key, 'key'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
class MyException extends Exception | |
{ | |
public function getType() { return 'NotException'; } | |
} | |
function doTest() | |
{ | |
$e = new MyException('stupid php', 1); |
NewerOlder