This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 | |
require('facebook-sdk/facebook.php'); | |
define('APP_ID', 'XXXXXXXXX'); | |
define('APP_SECRET', 'XXXXXXXXXXXXXXXXXX'); | |
$facebook = new Facebook(array( | |
'appId' => APP_ID, | |
'secret' => APP_SECRET, |
This file contains hidden or 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/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( |