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
#!/bin/sh | |
# Arg 1 <path_to_dir/glyphicon_dir> | |
# Arg 2 <path_to_dir/new_glyphicon_dir> | |
# | |
# Requires ImageMagick | |
# | |
# This script takes the original glyphicon directory as arg1, | |
# Cleans up the names for a sprite sheet and places them into | |
# The specified directory from arg2. Then, it makes white and |
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
for file in $newdir/* ; do | |
convert $file -quantize GRAY -negate `echo $file | sed 's/.png/-white.png/'` | |
convert `echo $file | sed 's/.png/-white.png/'` -fuzz 70% -fill '#0398d6' -opaque white `echo $file | sed 's/.png/-blue.png/'` | |
done |
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
describe Activity do | |
let(:admin) { FactoryGirl.create :admin } | |
let(:user) { FactoryGirl.create :user, account: admin.account } | |
let(:other) { FactoryGirl.create :user } # Another account | |
let(:admin_activity) { FactoryGirl.create :activity, user: admin } | |
let(:user_activity) { FactoryGirl.create :activity, user: user } | |
let(:other_activity) { FactoryGirl.create :activity, user: other } | |
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
def will_toggle_function | |
<<-JS | |
$.fn.willToggleDiv = function(div) { | |
$(div).slideToggle(100) | |
.find('input') | |
.val(null); | |
} | |
JS | |
end |
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
import java.util.*; | |
import java.math.*; | |
public class HashTable { | |
private int tableSize; | |
private int debugLevel; | |
private BigInteger maxSize = new BigInteger("96000"); | |
private BigInteger minSize = new BigInteger("95500"); | |
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
/* | |
* HashObject.c | |
* | |
* Created on: Apr 11, 2012 | |
* Author: johnotander | |
*/ | |
#include "HashObject.h" |
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
$ -> | |
subscription.hijackSubmitBtn() | |
subscription.hijackAgreeToTermsLink() | |
subscription = | |
hijackSubmitBtn: -> | |
$('#new_subscription').submit -> | |
if $('#terms_checkbox').is(':checked') | |
true | |
else |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="johnotander" | |
# Example aliases |
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
/* | |
* | |
* | |
* Created on: Feb 1, 2012 | |
* Author: johnotander | |
*/ | |
#include "TheTokens.h" | |
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 'spec_helper' | |
describe AccountsMailer do | |
let(:user) { FactoryGirl.create :user, account: GUEST_ACCOUNT } | |
describe "confirm_guest" do | |
it "shouldn't raise an error" do | |
lambda { AccountsMailer.confirm_guest(user) }.should_not raise_error |
OlderNewer