Skip to content

Instantly share code, notes, and snippets.

Jamie Kyle jamiebuilds

Block or report user

Report or block jamiebuilds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jamiebuilds
jamiebuilds / index.html
Last active Dec 10, 2015
CSS3 Flat 3D Text — Created with CodePen: codepen.io/pen/ljvzi
View index.html
<h1>@thejameskyle</h1>
View jquery.plugin-template.js
// 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 Dec 22, 2015 — forked from rwaldron/jquery.ba-tinypubsub.js
Update jQuery bind/unbind to on/off
View jquery.ba-tinypubsub.js
/*!
* 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 Oct 20, 2013
Generated by SassMeister.com.
View SassMeister-input.sass
// ----
// 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 Oct 20, 2013
Generated by SassMeister.com.
View SassMeister-input.sass
// ----
// 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 Oct 20, 2013
Generated by SassMeister.com.
View SassMeister-input.sass
// ----
// 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 Oct 23, 2013
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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 Oct 23, 2013
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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 Dec 26, 2015
Testing different methods of calculating square-root in Sass.
View SQRT-Test.css
/* 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 Nov 2, 2013
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// 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 {
You can’t perform that action at this time.