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
/* | |
Author: Pete Saia | |
*/ | |
/* Configuration | |
The name of the property should match the view (<section>) | |
ID. The route is the desired hash URI. The controller will be |
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 Bitly { | |
private $login; | |
private $appkey; | |
function __construct($login, $appkey) | |
{ | |
$this->login = $login; | |
$this->appkey = $appkey; | |
} | |
function shorten($url) |
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 | |
/** | |
* -- Rye Configuration -- | |
* | |
* Here you can declare your javascript files, custom menus, | |
* widgetized areas, custom post types and taxonomies. | |
* | |
* | |
* Project Name: <Name> | |
* PHP Developer: <Your Name> |
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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
------------------------------- | |
Author: Pete Saia | |
Certifikid.com | |
*/ | |
class User_location | |
{ |
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 | |
/** | |
* -- Configuration -- | |
* | |
* Here you can add your javascript files, declare custom menus, | |
* add widgetized areas, and add custom post types. These variables | |
* are then processed inside the init() hook. | |
* | |
*/ |
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
# Path. | |
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/share/python:/usr/local/Cellar/php54/5.4.3/bin/:$PATH | |
# Black 0;30 Dark Gray 1;30 | |
# Blue 0;34 Light Blue 1;34 | |
# Green 0;32 Light Green 1;32 | |
# Cyan 0;36 Light Cyan 1;36 | |
# Red 0;31 Light Red 1;31 | |
# Purple 0;35 Light Purple 1;35 | |
# Brown 0;33 Yellow 1;33 |
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
/* | |
Site Name | |
Author | |
----------------- | |
Font Size Chart | |
----------------- | |
(Px) (%) | |
10 77 | |
11 85 |
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 | |
// $Id$ | |
/** | |
* Bill Tracker | |
* A drupal module for tracking bills using class.hfdrumbone.php | |
* @Author Pete Saia | |
* @version 1.0 | |
*/ | |
require_once drupal_get_path('module', 'bill_tracker').'/hfdrumbone.class.php'; |
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 | |
$production_server = strpos($_SERVER["SERVER_NAME"], 'theProductionServer.com') !== false; | |
$staging_server = strpos($_SERVER["SERVER_NAME"], 'theStagingServer.com') !== false; | |
if ($staging_server) | |
{ | |
} | |
elseif ($production_server) | |
{ |