Skip to content

Instantly share code, notes, and snippets.

View jbrooksuk's full-sized avatar
🧑‍🚀

James Brooks jbrooksuk

🧑‍🚀
View GitHub Profile
{
"folders":
[
{
"file_exclude_patterns": ["._*", "node_modules/*/*.*"],
"folder_exclude_patterns": ["node_modules/*/*"]
}
],
"settings":
{
@jbrooksuk
jbrooksuk / named_args.php
Created February 28, 2013 10:28
PHP named arguments hack
<?php
namedArgsTest(array(
'one' => 'test',
'two' => 1,
'three' => 2
));
namedArgsTest();

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

@jbrooksuk
jbrooksuk / gist:5194990
Created March 19, 2013 10:11
Sublime Text 3 Crash
Process: Sublime Text [30380]
Path: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
Identifier: com.sublimetext.3
Version: Build 3022 (3022)
Code Type: X86-64 (Native)
Parent Process: launchd [135]
User ID: 501
Date/Time: 2013-03-19 10:10:38.446 +0000
OS Version: Mac OS X 10.8.2 (12C60)
<?php
ini_set('memory_limit', '-1');
set_time_limit(0);
class ArrayToXML {
public static $XML = NULL;
public static $ENCODING = 'UTF-8';
const XML_VERSION = '1.0';
var express = require('express'),
app = express();
app.get('*', function(res, req) {
res.send('api.example.com');
});
exports.app = app;
app.configure(function() {
app.set('views', __dirname + '/public/views');
app.set('view engine', 'jade');
app.set('view options', {
layout: true
});
app.use(function(req, res, next) {
res.locals.stripePublishable = config.stripe.publishable;
res.locals.copyrightYear = new Date().getFullYear();
var express = require('express'),
http = require('http'),
https = require('https'),
crypto = require('crypto'),
fs = require('fs'),
url = require('url'),
winston = require('winston');
var app = express();
{
"color_scheme": "Packages/Base16 Color Schemes/base16-tomorrow.dark.tmTheme",
"drag_text": true,
"draw_minimap_border": true,
"enable_telemetry": true,
"font_face": "Envy Code R",
"font_size": 13,
"highlight_modified_tabs": true,
"highlight_line": true,
"ignored_packages":
@jbrooksuk
jbrooksuk / Preferences.sublime-settings
Created May 14, 2013 13:51
Sublime Text 3 Config
{
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow.tmTheme",
"drag_text": true,
"draw_minimap_border": true,
"enable_telemetry": true,
"font_face": "Envy Code R",
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":