Skip to content

Instantly share code, notes, and snippets.

View samueljseay's full-sized avatar
😘

Sam Seay samueljseay

😘
View GitHub Profile
@samueljseay
samueljseay / SassMeister-input-HTML.html
Created June 4, 2015 08:30
Generated by SassMeister.com.
<div class='color'></div>
<div class='color-dark'></div>
<div class='color-darker'></div>
@samueljseay
samueljseay / yui-module-extension
Last active August 11, 2016 01:35
YUI module loading extension for System.js
(function yui() {
var systemInstantiate = System.instantiate,
//Store just one Y sandbox
YSandbox;
//Extracts the dependency list from the YUI module source code (if any exist)
function getYUIDeps(src, Y, load) {
var stripRequire = /(\"requires\"|\'requires\'|\s*requires\s*)\s*:\s*/g,
findRequire = /(\"requires\"|\'requires\'|\s*requires\s*)\s*:\s*\[[\s\S]*?\](\s*,\s*(\"skinnable\"|skinnable|\'skinnable\')\s*:\s*(true|false))*/g,
skinnable = /(\"skinnable\"|skinnable|\'skinnable\')\s*:\s*(true|false)/
.confluenceTd {
background: #f00;
display: block;
-webkit-animation-name: spin;
-webkit-animation-duration: 4000ms;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-moz-animation-name: spin;
-moz-animation-duration: 4000ms;
-moz-animation-iteration-count: infinite;
@samueljseay
samueljseay / SassMeister-input-HTML.html
Last active August 29, 2015 14:16
Generated by SassMeister.com.
<div class='color'></div>
<div class='color-dark'></div>
<div class='color-darker'></div>
@samueljseay
samueljseay / SassMeister-input-HTML.html
Created March 12, 2015 01:05
Generated by SassMeister.com.
<div class='color'></div>
<div class='color-20'></div>
<div class='color-40'></div>
// You could do this
var RecentProblemsComponent = Y.Base.create('prb-recent-problems-component', Y.View, [Y.OHP.Component], {
initializer: function() {
this.goGetData().then(this.render);
},
render: function() {
if(this.hasSomeData) {
this.hideProgressIndicator();
this.showData;
// Don't do this
var RecentProblemsComponent = Y.Base.create('prb-recent-problems-component', Y.View, [Y.OHP.Component], {
initializer: function() {
this.goGetData().then(this.renderAThing);
},
renderAThing: function() {
//render part of my UI
this.nowFetchSomeOtherDataPls().then(this.renderOtherThings);
},
@samueljseay
samueljseay / css
Created July 9, 2014 00:03
Progress Animations with YUI transitions
.progress-indicator {
position: absolute;
height: 40px;
overflow: hidden;
}
.progress-bubble {
background-color: #efefef;
width: 20px;
height: 20px;
@samueljseay
samueljseay / gist:13c2e69508563b2f0458
Last active April 7, 2016 19:13
Get real dimensions YUI
function getRealDimensions(node) {
var clone,
result;
if ( ! node ) {
return false;
}
clone = node.cloneNode(true).show().setStyle('visibility','hidden').appendTo('body');
@samueljseay
samueljseay / gist:7779276
Last active December 15, 2023 20:22 — forked from jimbojsb/gist:1630790
Color highlight and copy code for presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: