Skip to content

Instantly share code, notes, and snippets.

View cloudmanic's full-sized avatar
💭
Living the dream!

Spicer Matthews cloudmanic

💭
Living the dream!
View GitHub Profile
Titanium.UI.setBackgroundColor('#000');
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
url:'categories.js',
title:'Categories',
barColor:'#670000',
catid: 0
});
@cloudmanic
cloudmanic / config.php
Created December 21, 2011 22:37
autoloader in CI
/*
| -------------------------------------------------------------------
| Native Auto-load
| -------------------------------------------------------------------
|
| Nothing to do with cnfig/autoload.php, this allows PHP autoload to work
| for base controllers and some third-party libraries.
|
*/
function __autoload($class)
@cloudmanic
cloudmanic / amy.html
Created March 20, 2012 17:12
Amy Html Help
* Intro
<blah> <------ That is called a tag.
All html elements have an opening and closing tag. Notice the forward slash on the closing tag.
<opening>Blah blah blah</closing>
* Paragraph
var ui = require('/libraries/ui');
// Default screen.
exports.screen_init = function (body, callbacks)
{
// Clear from other screens.
win.rightNavButton = null;
// Container for holding this page.
var wrapper = ui.view({
#!/bin/sh
IPT=/sbin/iptables
LOCAL_IFACE=eth0
INET_IFACE=wlan0
# Flush the tables
$IPT -F INPUT
$IPT -F OUTPUT
$IPT -F FORWARD
@cloudmanic
cloudmanic / database.php
Created March 17, 2014 21:44
Sample database file for php backup.
<?php
return array(
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
@cloudmanic
cloudmanic / site.php
Created March 17, 2014 22:35
app/config/site.php
<?php
return [
// Site Config.
'site_name' => '',
// Amazon Glacier
'aws_glacier_key' => '',
'aws_glacier_secret' => '',
'aws_glacier_region' => 'us-east-1',
@cloudmanic
cloudmanic / mail.php
Created March 18, 2014 04:46
app/configs/mail.php
<?php
return array(
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
@cloudmanic
cloudmanic / failed.sh
Created September 28, 2014 20:07
Entire Failed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