Skip to content

Instantly share code, notes, and snippets.

View benrasmusen's full-sized avatar

Ben Rasmusen benrasmusen

View GitHub Profile
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* The routing is enclosed within an anonymous function so that you can
* always reference jQuery with $, even when in .noConflict() mode.

Keybase proof

I hereby claim:

  • I am benrasmusen on github.
  • I am benrasmusen (https://keybase.io/benrasmusen) on keybase.
  • I have a public key ASAZO_KOHpjHwPcpOIFAXNXMcHgq25uZJa9dZkBh08FebQo

To claim this, I am signing this object:

#content {
background-color: #1F4198 !important;
}
.login h1 a {
background-image: url(../images/w-logo-blue.png?ver=20131202);
background-image: none, url(../images/wordpress-logo.svg?ver=20131107);
background-size: 80px 80px;
background-position: center top;
background-repeat: no-repeat;
color: #999;
height: 80px;
font-size: 20px;
font-weight: 400;
<!-- Missing the beginning of the image tag "<img": -->
<a href="http://www.burnanenergyjournal.com/"> src="http://ens-newswire.com/wp-content/uploads/2013/06/BURN-Grid-Ad11.jpg" width="728" height="90" /></a>
<!-- Should be: -->
<a href="http://www.burnanenergyjournal.com/"><img src="http://ens-newswire.com/wp-content/uploads/2013/06/BURN-Grid-Ad11.jpg" width="728" height="90" /></a>
// Slideshow pagination
.slideshow-pagination {
overflow:auto;
margin:10px 0px;
height:75px;
.pagination {
li {
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<a id="rc-4fb98b6" class="rafl" href="http://www.rafflecopter.com/rafl/display/4fb98b6/" rel="nofollow">a Rafflecopter giveaway</a>
<script src="//d12vno17mo87cx.cloudfront.net/embed/rafl/cptr.js"></script>
@benrasmusen
benrasmusen / hack.sh
Created April 4, 2012 22:55 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@benrasmusen
benrasmusen / statistics-distributions.js
Created October 4, 2011 15:44
JavaScript library for calculating critical values and upper probabilities of common statistical distributions
/*
* NAME
*
* statistics-distributions.js - JavaScript library for calculating
* critical values and upper probabilities of common statistical
* distributions
*
* SYNOPSIS
*
*