Skip to content

Instantly share code, notes, and snippets.

@marshally
marshally / google.com.js
Created March 31, 2011 20:56
dotjs for adding the title text of Google's daily logo on the page
var logo = document.getElementById("hplogo");
var titleP = "<p style='text-align:center;font-variant:normal;padding:1em;border:1px solid black;background-color:#FFFFCC'>" + logo.title + "</p>";
footer = document.getElementById("footer");
footer.innerHTML = titleP + footer.innerHTML;
@marshally
marshally / gist:3406413
Created August 20, 2012 18:21
Git prompt improvements for bash-it
# Checks if there are commits ahead from remote
function git_prompt_ahead() {
if [[ -n $(git log origin/$(current_branch)...HEAD --right-only 2> /dev/null | grep '^commit') ]]; then
echo -e "$SCM_THEME_PROMPT_AHEAD"
fi
}
# Checks if there are commits available from remote
function git_prompt_behind() {
if [[ -n $(git log origin/$(current_branch)...HEAD --left-only 2> /dev/null | grep '^commit') ]]; then
#!/bin/bash
# prompt themeing
function current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
# Checks if there are commits ahead from remote
function git_prompt_ahead() {
gem 'pg'
group :development do
gem 'ruby-debug'
end
gem 'rake', '~> 0.8.7'
gem 'devise'
gem 'oa-oauth', :require => 'omniauth/oauth'
gem 'omniauth'
gem 'haml'
gem 'dynamic_form'