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
#!/usr/bin/env php | |
<?php | |
// default value | |
$n = 10; | |
// set custom n value | |
if (isset($argv[1]) && is_int($argv[1])) { | |
$n = $argv[1]; | |
} |
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
-- | |
-- PostgreSQL database dump | |
-- | |
-- Dumped from database version 12.17 (Ubuntu 12.17-0ubuntu0.20.04.1) | |
-- Dumped by pg_dump version 12.17 (Ubuntu 12.17-0ubuntu0.20.04.1) | |
SET statement_timeout = 0; | |
SET lock_timeout = 0; | |
SET idle_in_transaction_session_timeout = 0; |
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 | |
#------------------------------------------------------------------------------ | |
# | |
# Kohana | |
# | |
# | |
# Run Kohana controllers from the command line | |
# | |
# Installation: | |
# |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>The Game of 15!</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<style type="text/css"> | |
div { | |
text-align:center; | |
} |
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 | |
# | |
# Google Closure Tools installer | |
# | |
# Documentation: https://developers.google.com/closure/ | |
# | |
INSTALL_PATH=/usr/local/share | |
#just in case |
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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* MY_Hooks Class | |
* | |
* Extends Hooks by allowing you to pass parameters on the fly | |
* with custom hook calls. Much of the logic is borrowed from the | |
* core CI_Hooks class. | |
* | |
* Ex: | |
* |
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 Growl { | |
private $_command; | |
private $_valid_args = array('title', 'name', 'appicon', 'message', 'icon', 'iconpath', 'image', 'priority', 'identifier', 'wait', 'host', 'password', 'upd', 'port', 'auth', 'progress'); | |
public function __construct($options = array()) | |
{ | |
if( ! empty($options)) |
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 | |
/** | |
* Build Manifest | |
* | |
* Requires: PHP 5.3+ | |
* | |
* Takes an array of file names and builds a multi-dimensional array | |
* representing a simple file-system. | |
* | |
* NOTE: Files are only currently supported as leaf elements in the 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
// namespace | |
var WTF = {}; | |
// -------------------------------------------------------------------- | |
// database configuration | |
WTF.dbConfig = { | |
'username': 'root', | |
'password': 'root', | |
'database': 'poopy', |
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 | |
/** | |
* Sample Usage: | |
* | |
* $php index.php migrate version 5 | |
* $php index.php migrate latest | |
* $php index.php migrate current | |
* | |
*/ |
NewerOlder