Skip to content

Instantly share code, notes, and snippets.

View chluehr's full-sized avatar

Christoph Lühr chluehr

View GitHub Profile
@chluehr
chluehr / 0_reuse_code.js
Created May 2, 2016 13:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@chluehr
chluehr / read-fb-event-feed.php
Created February 17, 2012 09:55 — forked from msenkpiel/read-fb-event-feed.php
Read Facebook Public Event Feed via App Login Token
<?php
require('facebook-sdk/facebook.php');
define('APP_ID', 'XXXXXXXXX');
define('APP_SECRET', 'XXXXXXXXXXXXXXXXXX');
$facebook = new Facebook(array(
'appId' => APP_ID,
'secret' => APP_SECRET,
@chluehr
chluehr / oauth.php
Created June 23, 2011 13:52 — forked from tjlytle/oauth.php
Command Line Script to get Access Token using Zend_Twitter
#!/usr/bin/php
<?php
require_once 'Zend/Oauth/Consumer.php';
require_once 'Zend/Console/Getopt.php';
//set valid config file types/extensions
$configTypes = array('ini', 'xml', 'json', 'yaml');
//setup command line opts
$opts = new Zend_Console_Getopt(array(