Skip to content

Instantly share code, notes, and snippets.

@jamiebuilds
jamiebuilds / index.html
Last active December 10, 2015 00:39
CSS3 Flat 3D Text — Created with CodePen: codepen.io/pen/ljvzi
<h1>@thejameskyle</h1>
// if (!window.L) { window.L = function () { console.log(arguments);} } // optional EZ quick logging for debugging
/**
* A modified (improved?) version of the jQuery plugin design pattern
* See http://docs.jquery.com/Plugins/Authoring (near the bottom) for details.
*
* ADVANTAGES OF EITHER FRAMEWORK:
* - Encapsulates additional plugin action methods without polluting the jQuery.fn namespace
* - Ensures ability to use '$' even in compat modes
*
@jamiebuilds
jamiebuilds / jquery.ba-tinypubsub.js
Last active December 22, 2015 01:59 — forked from rwaldron/jquery.ba-tinypubsub.js
Update jQuery bind/unbind to on/off
/*!
* jQuery Tiny Pub/Sub - v0.X - 8/31/2012
* http://benalman.com/
*
* Original Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*
* Made awesome by Rick Waldron and then even more by James Kyle
*
@jamiebuilds
jamiebuilds / SassMeister-input.sass
Created October 20, 2013 19:53
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@function calculateRem($size, $context: $base-font-size)
$remSize: $size / $context
@return $remSize + rem
$x-base: 16px
@jamiebuilds
jamiebuilds / SassMeister-input.sass
Created October 20, 2013 22:44
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
$magic-number: 24px
$size: 31px
@function calculateEm($target, $context: $magic-number)
$emSize: 0
@jamiebuilds
jamiebuilds / SassMeister-input.sass
Created October 20, 2013 23:16
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
$magic-number: 24px
$size: 31px
@function round-to($number, $precision)
@return round($number / $precision) * $precision
@jamiebuilds
jamiebuilds / SassMeister-input.scss
Created October 23, 2013 02:45
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
.tests-a {
test-1: 1 * 1 ; // 1
test-2: 1.1 * 10 ; // 11
test-3: 1.11 * 100 ; // 111.0 <=
test-4: 1.111 * 1000 ; // 1111
@jamiebuilds
jamiebuilds / SassMeister-input.scss
Created October 23, 2013 02:57
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
.tests-1a {
test-1: 1 * 1 ; // 1
test-2: 1.1 * 10 ; // 11
test-3: 1.11 * 100 ; // 111.0 <=
test-4: 1.111 * 1000 ; // 1111
@jamiebuilds
jamiebuilds / SQRT-Test.css
Last active December 26, 2015 12:09
Testing different methods of calculating square-root in Sass.
/* TESTING DIFFERENT METHODS OF CALCULATING SQUARE-ROOT IN SASS */
.actual {
test-1: 1;
test-2: 1.414213562373095;
test-3: 1.732050807568877;
test-10: 3.16227766016838;
test-20: 4.47213595499958;
test-30: 5.477225575051661;
test-60: 7.745966692414834;
test-100: 10;
@jamiebuilds
jamiebuilds / SassMeister-input.scss
Created November 2, 2013 19:02
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@function parse-int($number) {
@return $number / ($number * 0 + 1);
}
large number modulus parse-int 3px {