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
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update | |
sudo apt-get install mongodb-org | |
# Running Mongo | |
service mongod start | |
sudo /etc/init.d/mongod start | |
# Stopping Mongo |
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
/* ============================================================================= | |
Name: AirshipPush | |
Description: Library wrapper to handle push notifications from UrbanAirship. | |
Author: Jason Kadrmas | |
Company: KadrmasConcepts LLC | |
========================================================================== */ | |
var AirshipPush = (function() { |
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
/** | |
* @author: itooamaneatguy | |
* | |
* Question: | |
* What is the best way to construct reusable modules using Backbone.js?? | |
* | |
*/ | |
/** | |
* Example 1: One module for app views. One module for models. |
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
<!-- Require.js target, run separately --> | |
<target name="-r.js" description="Concatenates JS files using require.js dependencies"> | |
<java classname="org.mozilla.javascript.tools.shell.Main"> | |
<classpath> | |
<pathelement location="./${dir.build.tools}/${tool.rhino}" /> | |
</classpath> | |
<arg value="tools/${tool.require}" /> | |
<arg value="-o" /> | |
<arg value="${require.build}" /> | |
</java> |
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
function svn_prompt_info { | |
if [ $(in_svn) ]; then | |
echo "$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_PREFIX\ | |
$ZSH_THEME_REPO_NAME_COLOR$(svn_get_repo_name)$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_SUFFIX$ZSH_PROMPT_BASE_COLOR$(svn_dirty)$ZSH_PROMPT_BASE_COLOR" | |
fi | |
} | |
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" |
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
/* | |
* backbone.scene.js v0.1 | |
* Copyright 2012, Jason Kadrmas (@itooamaneatguy) | |
*/ | |
(function(Backbone, _, $) { | |
"use strict"; | |
Backbone.Scene = Backbone.View.extend({}); |
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
// Define AHC object if it doesn't already exist | |
var AHC = AHC || {}; | |
AHC.TableFilter = ( function(){ | |
var TableFilter = function(tbl, col) { | |
this.table = tbl; | |
this.columns = col; |
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
var countArr = []; | |
var Countdown = function(options) { | |
this.max = options.max; | |
this.obj = options.obj; | |
this.remaining = this.max - $(this.obj).val().length; | |
}; | |
Countdown.prototype.updateRemaining = function() { | |
if (this.remaining > this.max) { | |
this.remaining = this.max; |
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
(function() { | |
var camera, scene, renderer, geometry, material, mesh; | |
init(); | |
animate(); | |
function init () { | |
initScene(); | |
initCamera(); |
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
# Rails | |
LoadModule passenger_module /Users/kadrm002/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.15/ext/apache2/mod_passenger.so | |
PassengerRoot /Users/kadrm002/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.15 | |
PassengerRuby /Users/kadrm002/.rvm/wrappers/ruby-1.9.3-p125/ruby | |
PassengerMaxPoolSize 10 |
OlderNewer