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 countries = [ | |
{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, | |
{ | |
"name": "Aland Islands", | |
"code": "AX" | |
}, | |
{ |
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
[ | |
{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, | |
{ | |
"name": "Åland Islands", | |
"code": "AX" | |
}, | |
{ |
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 : Dennis T Kaplan | |
* | |
* @version : 1.0 | |
* Date : June 17, 2007 | |
* Function : reverse strstr() | |
* Purpose : Returns part of haystack string from start to the first occurrence of needle | |
* $haystack = 'this/that/whatever'; | |
* $result = rstrstr($haystack, '/') |
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 | |
/** | |
* Description Add a directory to the php include path | |
* | |
* @package TaMeR | |
* @category File | |
* @type Function | |
* @author Dennis T Kaplan | |
* @copyright (C) 2009-2011 Dennis T Kaplan | |
* @license GPL {@link http://www.gnu.org/licenses/gpl.html} |
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 | |
/** | |
* An open source application development framework for PHP | |
* | |
* @category RoboTaMeR | |
* @author Dennis T Kaplan | |
* @copyright Copyright (c) 2008 - 2011, Dennis T Kaplan | |
* @license http://RoboTamer.com/license.html | |
* @link http://RoboTamer.com | |
*/ |
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
#! /bin/bash | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
. /lib/lsb/init-functions | |
export FILE=/etc/network/interfaces | |
case "$1" in | |
start) | |
SLEEPFOR=1200 |
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
# | |
# dtuple.py: Database Tuple handling | |
# | |
# Written by Greg Stein. Public Domain. | |
# No Copyright, no Rights Reserved, and no Warranties. | |
# | |
# This module is maintained by Greg and is available at: | |
# http://www.lyra.org/greg/python/dtuple.py | |
# | |
# Some discussion/usage of this module can be found at: |
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 Msg { | |
public static $msgss = array(); | |
/** | |
* Add a message to the message array (adds to the user's session) | |
* @param string $type You can have several types of messages, these are class names for Bootstrap's messaging classes, usually, info, error, success, warning | |
* @param string $message The message you want to add to the list |
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 | |
# Adds your library to the beginning of the php include path | |
addInclude('~/code/libs', FALSE); | |
$loader = new SplClassLoader(); | |
# adds the php include path to the class | |
$loader->setIncludePathLookup(true); | |
$loader->add('Zend'); |
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 | |
/** | |
* | |
* @param string $dir | |
* @return array | |
*/ | |
function get_php_files_in_dir($dir) | |
{ | |
$bin = array (); |
OlderNewer