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 | |
/** | |
* @author Jonathon Byrd | |
* @package Address Parsing | |
* | |
* | |
*/ | |
class AddressHelper extends ObjectBase | |
{ | |
/** |
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
<script type="text/javascript"> | |
// Configure these settings in your config/application.php file: | |
// $config['fb_page_url'] = 'https://www.facebook.com/yourfacebookpage'; | |
// $config['fb_app_id'] = '12345667890825978'; | |
var top_frame_url = '<?php echo config_item('fb_page_url'); ?>/app_<?php echo config_item('fb_app_id'); ?>'; | |
<?php if (isset($_COOKIE['PHPSESSID'])): ?> | |
// @HACK: pop-up a window if the page is clicked (anywhere) which will access the | |
// host domain so we can set cookies in Safari |
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
# This file is a reference script for the blog post | |
# http://jonathonhill.net/2012-11-29/roll-your-own-mamp-development-environment/, | |
# and is not intended to be run as a stand-alone install script. | |
# Some manual steps will be required, please read the blog post before attempting | |
# to use this script. | |
# Tutorial: | |
# http://mac.tutsplus.com/tutorials/server/upgrading-the-native-php-installation-on-os-x-mountain-lion/ | |
# Download and install XQuartz from http://xquartz.macosforge.org/ |
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 | |
class Process_Manager implements Countable | |
{ | |
protected $processes = array(); | |
protected $is_child = FALSE; | |
public function count() | |
{ | |
return count($this->processes); |
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 | |
function getFriends( | |
$user_id = null, | |
$screen_name = null, | |
$cursor = -1, | |
$skip_status = false, | |
$include_user_entities = false | |
) { | |
// Support optionally named parameters via an array |
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
[05/Oct/2015 16:26:08] INFO [ssh_server.py:837] RECV: limited-claim-status | |
[05/Oct/2015 16:26:08] INFO [ssh_server.py:848] Dispatching to: _cmd_limited_claim_status | |
[05/Oct/2015 16:26:08] INFO [ssh_server.py:616] SEND: 267 eyJzdGF0dXMiOiAiY2xhaW1pbmctY29uZmlndXJlIn0= | |
[05/Oct/2015 16:26:13] INFO [ssh_server.py:837] RECV: limited-claim-status | |
[05/Oct/2015 16:26:13] INFO [ssh_server.py:848] Dispatching to: _cmd_limited_claim_status | |
[05/Oct/2015 16:26:13] INFO [ssh_server.py:616] SEND: 267 eyJzdGF0dXMiOiAiY2xhaW1pbmctY29uZmlndXJlIn0= | |
[05/Oct/2015 16:26:15] INFO [limited-claim.py:73] configuring... | |
Stopping postgresql-server service: [ OK ] | |
Linking postgres time zone data | |
Mon Oct 5 16:25:58 UTC 2015 |
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
Macbooks-MacBook-Pro:toyoursuccess jhill$ ./updatedb.sh | |
Updating Database to Latest Revision | |
--------------- | |
Exporting Database | |
--------------- | |
** Message: Connected to a MySQL server | |
** Message: TokuDB detected, creating dummy table for CS | |
** Message: Started dump at: 2016-04-15 11:24:37 |
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
'use strict'; | |
Array.prototype.flatten = function() { | |
var flattened = []; | |
this.map(function(element) { | |
if (Array.isArray(element)) { | |
// If the array element is an array, | |
// flatten it, then push each element | |
// onto the master flattened array. |
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 _ctq = _ctq || []; | |
// Create 'compare to' strip object | |
_ctq.push(['newCompareToStrip', 'a']); | |
_ctq.push(['a.setPublisherID', 4]); | |
_ctq.push(['a.setAnchorID', 'ctAnchor']); | |
// Attach the correct API methods to our search form, this is a 'Hotel Citywide' search. | |
_ctq.push(['a.setFormID', 'ctSearchForm']); | |
_ctq.push(['a.setCityNameID', 'ctCity']); |
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 | |
class ChromePluginCompiler extends PluginCompiler | |
{ | |
// constants - set these in your subclass | |
public $major_version = '5.0'; | |
public $browser = 'chrome'; | |
protected $output_mime_type = 'application/x-chrome-extension'; | |
protected $output_filename = 'ChromeExtension.crx'; | |
protected $build_dir = 'chrome'; |
OlderNewer