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
/* the humans responsible & colophon */ | |
/* humanstxt.org */ | |
/* TEAM */ | |
Developer: Ray Nimmo | |
Site: http://www.junglecreative.com | |
Twitter: @raynimmo | |
Location: Koh Phangan, Thailand |
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
fieldset .captcha{ | |
legend{ | |
.fieldset-legend{ | |
} | |
} | |
.fieldset-wrapper{ | |
.fieldset-description{ |
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
addLoadEvent(setSidebarNav); | |
function addLoadEvent(func) { | |
if (window.addEventListener) | |
window.addEventListener("load",func,false); | |
else if (document.addEventListener) | |
document.addEventListener("load",func,false); |
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
$(document).ready(function () { | |
function reorient(e) { | |
var portrait = (window.orientation % 180 == 0); | |
$("body > div").css("-webkit-transform", !portrait ? "rotate(-90deg)" : ""); | |
} | |
window.onorientationchange = reorient; | |
window.setTimeout(reorient, 0); | |
}); |
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 | |
//create temporary data store | |
/* | |
CREATE TABLE blogdata ( | |
id int(11), | |
title varchar(200), | |
timestamp int(10), | |
body text, | |
done int(3) default '0' | |
); |
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($) { | |
// fittext.js plugin | |
$.fn.fitText = function(kompressor, options){ | |
var compressor = kompressor || 1, | |
settings = $.extend({ | |
'minFontSize' : Number.NEGATIVE_INFINITY, | |
'maxFontSize' : Number.POSITIVE_INFINITY | |
}, options); | |
return this.each(function(){ |
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($) { | |
//check for iOS | |
var is_uiwebview = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent); | |
var is_safari_or_uiwebview = /(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent); | |
if(is_uiwebview || is_safari_or_uiwebview) { | |
console.log("iphone/ipad/ipod detected"); | |
//do something such as.. |
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
Verifying that +raynimmo is my openname (Bitcoin username). https://onename.io/raynimmo |
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 displayCountryList() { | |
$countries = array("AF" => "Afghanistan", | |
"AX" => "Åland Islands", | |
"AL" => "Albania", | |
"DZ" => "Algeria", | |
"AS" => "American Samoa", | |
"AD" => "Andorra", | |
"AO" => "Angola", | |
"AI" => "Anguilla", | |
"AQ" => "Antarctica", |
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 | |
# | |
# This hook does two things: | |
# | |
# 1. update the "info" files that allow the list of references to be | |
# queries over dumb transports such as http | |
# | |
# 2. if this repository looks like it is a non-bare repository, and | |
# the checked-out branch is pushed to, then update the working copy. | |
# This makes "push" function somewhat similarly to darcs and bzr. |