Skip to content

Instantly share code, notes, and snippets.

View samstefan's full-sized avatar
🍊
Working from home

Sam Stefan samstefan

🍊
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

<VirtualHost *:80>
DocumentRoot "/var/application/loungers-website"
ServerName loungerswebsite.evil9.synthmedia.co.uk
<Directory "/var/application/loungers-website">
AllowOverride All
</Directory>
php_value short_open_tag "On"
</VirtualHost>
@samstefan
samstefan / gist:8519228
Created January 20, 2014 12:36
imageParallax
this.imageParallax = function () {
$(window).scroll(function () {
var windowPosition = $(window).scrollTop();
function parallax(topHeight, windowPosition, inertia){
return topHeight - windowPosition / inertia;
}
$('.js-parallax img').css(
'-webkit-transform', 'translate3d(0, ' + parallax(0, windowPosition, 4) + 'px, 0)'
<script type="text/javascript">
(function() {
var config = {
kitId: 'cgu5yvm'
};
var d = false;
var tk = document.createElement('script');
tk.src = '//use.typekit.net/' + config.kitId + '.js';
tk.type = 'text/javascript';
tk.async = 'true';
setup environment wercker/nodejs defined in wercker.yml. No supporting services, because action isn't build.
@samstefan
samstefan / boundless.html
Created August 18, 2012 18:12
Boundless 2.1.1 + White BG
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!--
Boundless - 2.1.1
Designed by CoSnap
cosnap.co.uk
-->
@samstefan
samstefan / theme.html
Created May 30, 2012 18:43
Infinite scrolling on Boundless
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!--
Boundless - 2.1
Designd by Sam Stefan.
samstefan.co.uk
-->
@samstefan
samstefan / Vacant.html
Created May 28, 2012 22:44
Vacant 1.2.1 + Extra Link Colours
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!--
Vacant - 1.2.1
Designed by CoSnap.
cosnap.co.uk
-->