Skip to content

Instantly share code, notes, and snippets.

View pierceray's full-sized avatar

Ray Pierce pierceray

View GitHub Profile
@pierceray
pierceray / SassMeister-input.scss
Created October 29, 2015 15:17
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.alert_signup {
.alertMessage {
.with-left-rail &:before {
/* Desired */
color: #fff;
}
@pierceray
pierceray / SassMeister-input.scss
Created October 29, 2015 15:14
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.alert_signup {
.alertMessage {
.with-left-rail &:before {
color: #fff;
}
@pierceray
pierceray / rainbow-shield.js
Created June 23, 2015 04:32
First 5 pixels are red no matter the rgb value being passed into them
// This example shows how to use node-pixel using Johnny Five as the
// hook for the board.
var five = require("johnny-five");
var pixel = require("node-pixel");
var opts = {};
opts.port = process.argv[2] || "";
var board = new five.Board(opts);
@pierceray
pierceray / SassMeister-input.scss
Created November 14, 2014 22:14
Before Refactor
// ----
// libsass (v3.0.1)
// ----
@import "compass";
@import "compass-mixins";
@import "bourbon/bourbon";
@import "neat/neat";
$spacing: 1em;
@pierceray
pierceray / SassMeister-input.scss
Created November 14, 2014 22:11
After refactoring
// ----
// libsass (v3.0.1)
// ----
@import "compass";
@import "compass-mixins";
@import "bourbon/bourbon";
@import "neat/neat";
$spacing: 1em;
@pierceray
pierceray / SassMeister-input-HTML.html
Created August 20, 2014 05:29
Generated by SassMeister.com.
<div class="reference-center">OR</div>
<div class="relative">
<div class="center-this-thing">OR</div>
</div>
var five = require("johnny-five"),
board = new five.Board();
five.Led.prototype.greaterThanSize = function(value){
if (value > this.threshold) {
this.on();
} else {
this.off();
}
};
@pierceray
pierceray / geo.js
Created January 30, 2012 21:18 — forked from craveytrain/geo.js
dataFilter method
$(document).ready(function () {
$.ajaxSetup({
type: "POST",
contentType: "application/json; charset=utf-8",
data:"{}",
dataFilter: function(data) {
var msg = jQuery.parseJSON(data);
return (msg.hasOwnProperty('d')) ? msg.d : msg;
});
@pierceray
pierceray / geo.js
Created January 30, 2012 20:51
Trying to log WCF service JSON to console.log
$(document).ready(function () {
$.ajaxSetup({
type: "POST",
contentType: "application/json; charset=utf-8",
data:"{}",
dataFilter: function(data) {
var msg;
if (typeof (JSON) !== 'undefined' && typeof (JSON.parse) === 'function')
msg = JSON.parse(data);
@pierceray
pierceray / ga_lookup_code.js
Created June 22, 2011 22:05
determining the GA code based on params or lack there of
//lookup object
var gaKeys = {
'tdshs_ems': {
'01': 'UA-234234-23',
'02': 'UA-234234-24',
'error': 'bad error'
},
'error' : 'UA-bad-code'
};