Skip to content

Instantly share code, notes, and snippets.

View jakeisonline's full-sized avatar
👋

Jake Holman jakeisonline

👋
View GitHub Profile
@danott
danott / pre-commit
Last active April 26, 2024 06:46
A git hook that automatically formats JavaScript and Ruby code on commit
#!/bin/sh
# ./.git/hooks/pre-commit
.git/hooks/pre-commit-format-javascript
.git/hooks/pre-commit-format-ruby
@jakeisonline
jakeisonline / jira-copy-stories.js
Last active May 1, 2019 22:28
Outputs selected story URLs and their titles to the JS console for easy copy and paste
var stories = 'Selected stories: \n\n';
jQuery("#ghx-content-group .ghx-selected")
.each(function(i, elem) {
var href = jQuery(elem).find(".ghx-end a").prop('href'),
title = jQuery(elem).find(".ghx-summary").text(),
type = jQuery(elem).find(".ghx-type").prop('title');
stories += '[' + type + '] ' + title + "\n" + href + "\n\n";
});
@kbuckler
kbuckler / zendesk_remote_auth.rb
Created September 7, 2011 23:40
Dead simple remote auth server
require 'rubygems'
require 'sinatra'
get '/auth' do
name = "Kenny"
email = "kenny@zendesk.com"
token = ""
remote_photo_url = "http://blog.earthandpawtotems.com/wp-content/uploads/2011/04/honeybadger.jpg"
timestamp = params[:timestamp]