Skip to content

Instantly share code, notes, and snippets.

View tpmo's full-sized avatar
🏠
Working from home

Tim Pra-Mio tpmo

🏠
Working from home
  • nextindex GmbH & Co. KG
  • Bochum, Germany
View GitHub Profile
@tpmo
tpmo / gist:3423110
Created August 22, 2012 06:54
Request and save an Google oAuth2 request_token (node.js, express)
var express = require( 'express' )
, OAuth2 = require( 'oauth' ).OAuth2
, querystring = require( 'querystring' )
, request = require( 'request' )
, fs = require('fs');
var oa2;
var app = express.createServer();
app.use(express.logger());
app.use(express.bodyParser());
@tpmo
tpmo / WordPressBedrockValetDriver.php
Last active May 12, 2016 07:27
Custom Laravel Valet Driver For Bedrock
<?php
class WordPressBedrockValetDriver extends BasicValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri