Skip to content

Instantly share code, notes, and snippets.

View jormon's full-sized avatar

Jordan Moncharmont jormon

  • Marker
  • San Francisco, CA
View GitHub Profile
@jormon
jormon / kulikuli_store_selector.js
Last active June 12, 2018 19:16
Kuli Kuli Survey Gizmo Store Selector
// https://gist.github.com/jormon/d8bfa406f3a2eadbab079f2b0e59e3c7
$(document).ready(function() {
var clearSelect = function(select) {
var children = select.first().children()
if(children.length == 0) { return; }
for (i = 0; i < children.length; i++) {
children[i].remove();
}
text = "Select a store..."
var placeholder = $("<option value='' disabled selected>"+text+"</option>");
Jan 27 19:39:29 spaziale itunesstored[108] <Warning>: [ApplicationWorkspace]: Installing software package with bundleID: com.placemarker.places: bundleVersion: 3 path: /var/mobile/Media/Downloads/-5310997826876130007/1030928563015335669
Jan 27 19:39:29 spaziale itunesstored[108] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x1266a69d0> com.placemarker.places (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/81C017B2-D164-4083-9A4A-010C3CE0EF39/-5310997826876130007.app>
Jan 27 19:39:29 spaziale itunesstored[108] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x1266a69d0> com.placemarker.places (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/81C017B2-D164-4083-9A4A-010C3CE0EF39/-5310997826876130007.app> withPhase:1
Jan 27 19:39:29 spaziale lsd[82] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x146660300> : Parent: 0x0 / Fraction completed: 0.5800 / Complete
@jormon
jormon / .powenv
Last active February 12, 2016 00:15
Pow Support
# detect `$rvm_path`
if [ -z "${rvm_path:-}" ] && [ -x "${HOME:-}/.rvm/bin/rvm" ]
then rvm_path="${HOME:-}/.rvm"
fi
if [ -z "${rvm_path:-}" ] && [ -x "/usr/local/rvm/bin/rvm" ]
then rvm_path="/usr/local/rvm"
fi
# load environment of current project ruby
if
@jormon
jormon / gist:b8ea02b4cf611c1830c0
Created April 26, 2015 22:51
Quickbooks Budgeting Import
javascript:var data = prompt("Please paste the row:");
var month_data = jQuery.map(data.split("\t"), function(elem) {
return Number(elem.trim()) * 1000;
});
var months = [
"jan",
"feb",
"mar",
@jormon
jormon / gist:f857107a0b8c89292c89
Created February 21, 2015 08:56
Working newrelic_rpm instrumentation of rocket_pants API
class Api::ApplicationController < RocketPants::Base
include AbstractController::Callbacks
include ActionController::Head
...
# for some reason, instrumentation only works if this is at the end of the class
include ActionController::Instrumentation
end
class Post < ActiveRecord::Base
has_many :comments
has_many :latest_comments, :class => 'Comments', :order_by => 'created_at DESC', :limit => 3
end