Skip to content

Instantly share code, notes, and snippets.

View apcomplete's full-sized avatar

Alex Padgett apcomplete

View GitHub Profile
@apcomplete
apcomplete / gist:3866655
Created October 10, 2012 16:17
Cake watch file
fs = require 'fs'
{exec} = require 'child_process'
util = require 'util'
appFiles = [
{
destination: "path/to/public/scripts/",
join: true
output: "application.js"
files: [
@apcomplete
apcomplete / notes
Created April 4, 2012 18:40
todo.txt notes action
#!/bin/bash
TODOTXT_VERBOSE=0
DEFAULT_NOTES_ACTION="listnotes"
listnotes() {
TODO_LIST_NOTES="ls $TODO_NOTES_DIR | xargs -0 basename | sed -e 's/\.[a-z]\{3\}$//'"
if [ ! -z $TODO_NOTES_PROJECT ]
then
TODO_LIST_NOTES+=" | grep -i $TODO_NOTES_PROJECT"
@apcomplete
apcomplete / Session.php
Created November 28, 2011 20:12
Native session library for CodeIgniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter Native Session Library
*
* @package Session
* @subpackage Libraries
* @category Session
* @author Topic Deisgn
*/