One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| <?php | |
| if ( ! function_exists('config_path')) | |
| { | |
| /** | |
| * Get the configuration path. | |
| * | |
| * @param string $path | |
| * @return string | |
| */ |
| #!/bin/bash | |
| ### VARIABLES ### | |
| PRE_PACK="openssl-devel pcre-devel make gcc" | |
| VER="1.5.1" | |
| # Setup Colours | |
| black='\E[30;40m' | |
| red='\E[31;40m' |
| server { | |
| listen 80; | |
| root /var/www/craft.dev/public; | |
| index index.php index.html index.htm; | |
| server_name craft.dev; | |
| location / { | |
| try_files $uri $uri/ @rewrites; |
| CREATE FUNCTION `lat_lng_distance` (lat1 FLOAT, lng1 FLOAT, lat2 FLOAT, lng2 FLOAT) | |
| RETURNS FLOAT | |
| DETERMINISTIC | |
| BEGIN | |
| RETURN 6371 * 2 * ASIN(SQRT( | |
| POWER(SIN((lat1 - abs(lat2)) * pi()/180 / 2), | |
| 2) + COS(lat1 * pi()/180 ) * COS(abs(lat2) * | |
| pi()/180) * POWER(SIN((lng1 - lng2) * | |
| pi()/180 / 2), 2) )); | |
| END |
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| class MY_Session extends CI_Session{ | |
| private $sess_use_redis = TRUE; | |
| private $redis = ''; | |
| public function __construct($params = array()) { | |
| //parent::__construct(); | |
| $this->CI =& get_instance(); |
| This playbook has been removed as it is now very outdated. |
| var MultiGetSet = function(opt){ | |
| var getType = function(o) { | |
| return ({}).toString.call(o).match(/\s([a-zA-Z]+)/)[1].toLowerCase() | |
| }; | |
| if(!opt.public || !opt.private) | |
| return opt.public; | |
| if(opt.handler && opt.handler.init) |
| ### | |
| A meta-compilation of: | |
| https://raw.github.com/gist/1453705/d253733a56632a8d2c29321a75c18b627fa4dda8/reserved_usernames.rb | |
| http://blog.postbit.com/reserved-username-list.html | |
| http://www.quora.com/How-do-sites-prevent-vanity-URLs-from-colliding-with-future-features | |
| (Took out some company-specific terms at the top of the first one (e.g. imulus, stacks), added one term so far - 'edits'.) | |
| NOTE: Does not include profanities. You may or may not want to add a list of those. | |
| (See https://www.google.com/search?q=profanity+list, but don't try to apply regexp's here because Scunthorpe - http://en.wikipedia.org/wiki/Scunthorpe_problem) |