⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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'); | |
class Create extends Personal_Controller { | |
/* | |
* | |
* Let people create new projects | |
* | |
*/ | |
public function index() |
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
//add support for the display id | |
$display_id = sprintf('(SELECT COALESCE(display_id, 0) + 1 FROM (SELECT MAX(display_id) AS display_id FROM '.DBPRE.'records WHERE project_id = %d) AS x)', $data['project_id']); | |
$this->db->set('display_id', $display_id, FALSE); | |
$this->db->insert(DBPRE . 'records', $data); |
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
$old_dir = getcwd() . '/projects/' . $old_url_name; | |
$new_dir = getcwd() . '/projects/' . $new_url_name; | |
// Instantiate the class | |
$s3 = new AmazonS3(); | |
$s3->disable_ssl(); | |
$cp_resp = $s3->copy_object( | |
array( // Source | |
'bucket' => S3BUCKET, | |
'filename' => $old_dir |
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
// html purifier | |
require_once $this->fcpath.$this->apppath.'libraries/htmlpurifier/library/HTMLPurifier.auto.php'; | |
$this->ci->htmlpurifier = new HTMLPurifier(); | |
$config = HTMLPurifier_Config::createDefault(); | |
$this->html = $this->ci->htmlpurifier->purify($this->html, $config); |
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 | |
# | |
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box | |
# http://wildfish.com | |
# add the ubuntu gis ppa | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get update |
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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Dayle Rees Color Schemes/CarbonightBlue.tmTheme", | |
"create_window_at_startup": false, | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"font_face": "Cousine", | |
"font_size": 15, | |
"highlight_line": true, |
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 bash | |
echo ">>> Starting Install Script" | |
# Update | |
sudo apt-get update | |
# Install MySQL without prompt | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
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
.ARI { | |
background-color: #870619; | |
border: 1px solid #000000; | |
color: #ffffff; | |
} | |
.ATL { | |
background-color: #BD0D18; | |
border: 1px solid #000000; | |
color: #ffffff; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- | |
====================================================================== | |
Halflife Contrast | |
====================================================================== | |
A Sublime Text 2 / Textmate theme. | |
Copyright (c) 2014 Dayle Rees. | |
Released under the MIT License <http://opensource.org/licenses/MIT> | |
====================================================================== |
OlderNewer