Skip to content

Instantly share code, notes, and snippets.

View Sulcalibur's full-sized avatar
🕺
Pop 'n' Lock

Suleiman Leadbitter Sulcalibur

🕺
Pop 'n' Lock
View GitHub Profile
@Sulcalibur
Sulcalibur / casperscreens.js
Created August 1, 2013 13:42
Casper.js change of file name to show url and saved to root screenshot directory ref: http://net.tutsplus.com/tutorials/javascript-ajax/responsive-screenshots-with-casper/
var casper = require("casper").create(),
viewportSizes = [
[320,480],
[320,568],
[600,1024],
[1024,768],
[1280,800],
[1440,900]
],
url = casper.cli.args[0],
// .sass syntax
// NOTE: This Sass stylesheet is dependent on the Custom Sass Function, convert-number-to-word,
// which is available here, https://gist.github.com/1439296
/* Arfully Masterminded by ZURB
/* Grid :: This is the mobile-friendly, responsive grid that lets Foundation work much of its magic.
// Using Default Number of Columns that Foundation starts off with, 12 columns
.row { width: 1440px; max-width: 100%; min-width: 910px; margin: 0 auto; }
.row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.row.large-collapse .column,
.row.large-collapse .columns { padding: 0; }
.row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.row .row.large-collapse { margin: 0; }
.show-for-small { display: none !important; }
.show-for-large { display: inherit !important; }
.hide-for-large { display: none !important; }
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
// Helvetica Font Stack
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
// Times New Roman-based stack
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
// Modern Georgia-based serif stack
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
@Sulcalibur
Sulcalibur / Asset.css
Created March 16, 2013 23:53
Pure CSS Noise Code Snippet
/*
CSS Noise Code Snippet by James Brocklehurst.
Find out more at http://www.mightymeta.co.uk/1269/css-noise/
Instructions:
1. Add the snippet to the bottom of your main stylesheet.
2. Add class="noise" to HTML elements to apply noise, use class="body-noise" for body element only.
@Sulcalibur
Sulcalibur / htacess blacklist
Created February 20, 2013 15:46
HTML: 5G BLACKLIST/FIREWALL #htacess The 5G works beautifully with WordPress, and should help any site conserve bandwidth and server resources while protecting against malicious activity.
# 5G BLACKLIST/FIREWALL (2013)
# @ http://perishablepress.com/5g-blacklist-2013/
# 5G:[QUERY STRINGS]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (\"|%22).*(<|>|%3) [NC,OR]
RewriteCond %{QUERY_STRING} (javascript:).*(\;) [NC,OR]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3) [NC,OR]
<?php
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php
/**
* The root directory where the repos live.
*
* @var string
*/
$root_dir = '/your/root/dir/';
@Sulcalibur
Sulcalibur / Windows 8 tile
Created February 2, 2013 22:21
HTML: Windows 8 tile Details #head
<meta name="application-name" content="Name in Tile"/>
<meta name="msapplication-TileColor" content="#BADA55"/>
<meta name="msapplication-TileImage" content="image_name.png"/>