This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//lookup object | |
var gaKeys = { | |
'tdshs_ems': { | |
'01': 'UA-234234-23', | |
'02': 'UA-234234-24', | |
'error': 'bad error' | |
}, | |
'error' : 'UA-bad-code' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var five = require("johnny-five"), | |
board = new five.Board(); | |
five.Led.prototype.greaterThanSize = function(value){ | |
if (value > this.threshold) { | |
this.on(); | |
} else { | |
this.off(); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="reference-center">OR</div> | |
<div class="relative"> | |
<div class="center-this-thing">OR</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.0.1) | |
// ---- | |
@import "compass"; | |
@import "compass-mixins"; | |
@import "bourbon/bourbon"; | |
@import "neat/neat"; | |
$spacing: 1em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.0.1) | |
// ---- | |
@import "compass"; | |
@import "compass-mixins"; | |
@import "bourbon/bourbon"; | |
@import "neat/neat"; | |
$spacing: 1em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
.alert_signup { | |
.alertMessage { | |
.with-left-rail &:before { | |
color: #fff; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
.alert_signup { | |
.alertMessage { | |
.with-left-rail &:before { | |
/* Desired */ | |
color: #fff; | |
} |