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
<!-- | |
<div class="slider"> | |
<div class="slider__header"> | |
<div class="slider__copy"> | |
</div> | |
<div class="slider__viewport"> | |
<ul class="slider__rail"> | |
<li class="slider__rail__item"><img src="http://lorempixel.com/777/548/technics" /></li><li class="slider__rail__item"><img src="http://lorempixel.com/777/548/people" /></li><li class="slider__rail__item"><img src="http://lorempixel.com/777/548/nature" /></li> | |
</ul> | |
</div> |
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
<?php | |
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/ | |
/* | |
The MIT License (MIT) | |
Copyright (c) 2015 | |
Permission is hereby granted, free of charge, to any person obtaining a copy |
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/bash | |
find . -type f -name ".DS_Store" -delete | |
find . -type f -name "._*" -delete | |
find . -type f -name ".FBC*" -delete | |
find . -type f -name ".fseventsd" -delete | |
find . -type f -name ".Trashes" -delete | |
# There is other 'detritus' that could be removed such as the following folders, but they don't generally cause trouble so I leave them alone. | |
#find . -type f -name ".Spotlight-V100" -delete |
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
/** | |
* This function was sourced from http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric | |
*/ | |
function isNumeric(n) { | |
return !isNaN(parseFloat(n)) && isFinite(n); | |
} |
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
/** | |
* Sourced from http://stackoverflow.com/questions/901115/get-query-string-values-in-javascript#answer-3855394 | |
* @author BrunoLM <brunolm at codingwise dot com> | |
*/ | |
(function($) { | |
$.queryString = (function(a) { | |
if (a == "") return {}; | |
var b = {}; | |
for (var i = 0; i < a.length; ++i) | |
{ |
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
(function($){ | |
/** | |
* Iterates over an array of objects passing each one to callback after interval. | |
* Calls doneCallback when complete. | |
*/ | |
var version = '1.1'; | |
var timeout = null; |
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
## Only ask for my SSH key passpharase once! | |
# Sourced from http://mah.everybody.org/docs/ssh | |
SSH_ENV="${HOME}/.ssh/environment" | |
# Function to start the SSH-Agent | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" |
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
# Useful Resources: | |
# http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html | |
term xterm | |
# Turn off the splash screen | |
startup_message off | |
# This makes the shells think they are login shells and have to do full initialisation - It also slows down screen when creating a new screen :( |