Skip to content

Instantly share code, notes, and snippets.

View ghuntley's full-sized avatar
minimalist

Geoffrey Huntley ghuntley

minimalist
View GitHub Profile
###
@class Ext.TaskMgr
@extends Ext.util.TaskRunner
A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See
{@link Ext.util.TaskRunner} for supported methods and task config properties.
<pre><code>
// Start a simple clock task that updates a div once per second
var task = {
run: function(){
Ext.fly('clock').update(new Date().format('g:i:s A'));
(function() {
/*
@class Ext.TaskMgr
@extends Ext.util.TaskRunner
A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See
{@link Ext.util.TaskRunner} for supported methods and task config properties.
<pre><code>
// Start a simple clock task that updates a div once per second
var task = {
run: function(){
# Ext.Msg is by default a global ***shared*** singleton instance of the
# Ext.MessageBox class. The following helper will recycle the singleton
# back to default settings each time Ext.Msg is hidden.
#
# http://www.sencha.com/forum/showthread.php?116076-Messagebox-height
resetMsgBox = ->
Ext.Msg = new Ext.MessageBox()
Ext.Msg.on
hide: (x) -> x.destroy()
###
Ext JS Library 3.4.0
Copyright(c) 2006-2011 Sencha Inc.
licensing@sencha.com
http://www.sencha.com/license
###
###
@class Ext.util.Cookies
Utility class for managing and interacting with cookies.
@singleton
/*!
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
/**
* @class Ext.util.Cookies
* Utility class for managing and interacting with cookies.
* @singleton
@ghuntley
ghuntley / Pandora on command line with Pianobar, homebrew install instructions, Snow Leopard
Created August 6, 2011 11:47
Pianobar command line Pandora client homebrew install instructions
# OS X install instructions http://www.reddit.com/r/linux/comments/a3snu/pianobar_is_a_command_line_client_for_pandora_no/c0fupws
brew install libao
# brew install libfaad2 # not available with brew, skipped and is working ok...
brew install libmad
brew install cmake # (this takes a while)
# install
git clone git://github.com/PromyLOPh/pianobar.git
cd pianobar
@ghuntley
ghuntley / confluence.sh
Created August 16, 2011 07:06
freebsd rc.d confluence startup/shutdown script
#!/bin/sh
#
# Atlassian Confluence Startup / Shutdown Control
# ------------------------------------------------- -
#
# Licensed under the BSD License - Free Use For All
#
# PROVIDE: confluence
# REQUIRE: DAEMON postgresql
@ghuntley
ghuntley / xmonad.hs
Created August 25, 2011 06:08
virtualbox fdialog fix.
<vav> ghuntley: role isn't predefined, you can define `role = stringProperty "WM_WINDOW_ROLE"' if you have several places to use it
@ghuntley
ghuntley / gist:1196525
Created September 6, 2011 03:43
FreeNAS (core) + Community Addon

Package Management:

<ghuntley> so; if some core effort was put into plugin architecture then we could let the community run free and do their thing and allow iX to focus on corenas.
<molander> yes, that's definitely the plan
<molander> we are going to do it exactly as you surmise; using a jail to hold 3rd party add-ons
<molander> with the PC-BSD PBI infrastructure for "official" FreeNAS add-ons that modify the menu
<ghuntley> " PC-BSD uses files with the .pbi filename extension which, when double-clicked, bring up an installation wizard program. An autobuild system tracks the FreeBSD ports collection and generates new PBI's     daily. The generated PBI's are maintained at the PC-BSD software repository."
<ghuntley> is that what you were talking about re: PBI plugin architecture?
<molander> yah, so a slightly mod'd PBI can easily install the app with dependencies and modify the menu     system for the app
<molander> yes

so some questions to answer would be shoul

@ghuntley
ghuntley / server.js
Created October 1, 2011 01:36 — forked from kusor/server.js
Sample node-restify server
var assert = require('assert');
var fs = require('fs');
var path = require('path');
var nopt = require('nopt');
var restify = require('restify');
// Custom libraries
// var foo = require('./lib/foo');
///--- Globals