Skip to content

Instantly share code, notes, and snippets.

View benrasmusen's full-sized avatar

Ben Rasmusen benrasmusen

View GitHub Profile
@benrasmusen
benrasmusen / about.md
Created August 14, 2011 22:53 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@benrasmusen
benrasmusen / gist:1232333
Created September 21, 2011 15:17
POST search to GET params CakePHP
if (!empty($this->data)) {
$redirect = array(
'controller' => '{controller}',
'action' => '{action}'
);
foreach ($this->data as $key => $value) {
$redirect[$key] = $value;
}
$this->redirect($redirect);
}
@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
*
*
@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
#
<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>
# 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>
// Slideshow pagination
.slideshow-pagination {
overflow:auto;
margin:10px 0px;
height:75px;
.pagination {
li {
<!-- 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>
.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;
#content {
background-color: #1F4198 !important;
}