Skip to content

Instantly share code, notes, and snippets.

View jpowell's full-sized avatar

Justin Powell jpowell

View GitHub Profile
@jpowell
jpowell / changelog.sh
Last active January 14, 2025 19:16 — forked from gburgett/changelog.sh
generates a changelog from git history, grabbing PRs from github
#! /bin/bash
COLOR_NC='\033[0m' # No Color
COLOR_LIGHT_GREEN='\033[1;32m'
COLOR_GRAY='\033[1;30m'
COLOR_RED='\033[0;31m'
logv() {
[[ ! -z "$VERBOSE" ]] && >&2 echo -e "${COLOR_GRAY}$*${COLOR_NC}"
}
@jpowell
jpowell / nbuilder.rb
Created April 21, 2012 18:58 — forked from sishen/gist:1019347
Nokogiri Template Builder. (Rails 3.0)
require 'action_view'
module ActionView::Template::Handlers
class NokogiriBuilder
class_attribute :default_format
self.default_format = Mime::XML
def call template
require 'nokogiri'
"xml = ::Nokogiri::XML::Builder.new { |xml|" +