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 / _grid.scss
Created September 5, 2012 22:01
SASS: Susy Grid System
@import "susy";
// @include normalize;
// @import "partials/variables";
// @import "partials/mixins";
// @import "sassy-buttons";
// @import "partials/typography";
@Sulcalibur
Sulcalibur / _magic.scss
Created October 30, 2012 20:26 — forked from mirisuzanne/_magic.scss
CSS: Compass: Susy: - Layout file for a "magic" Susy grid.
//-----------------------------------------------------------------------------
// Grid Settings
$total-columns : 4;
$column-width : 4.5em;
$gutter-width : 1.5em;
$grid-padding : $gutter-width;
//-----------------------------------------------------------------------------
// Responsive Variables
@Sulcalibur
Sulcalibur / header.html
Created November 2, 2012 00:55
HTML: No zoom on Responsive sites #meta
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
@Sulcalibur
Sulcalibur / Disqus Developer Mode
Last active December 10, 2015 21:29
Disqus Developer Mode
var disqus_developer = 1; // this would set it to developer mode
@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"/>
<?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 / 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]
@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.
/* 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;