This file contains hidden or 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 settings = { | |
foo: "", | |
bar: undefined, | |
hello: "world", | |
baz: NaN, | |
what: null, | |
test: "string", | |
zero: 0, | |
falseVal: false | |
} |
This file contains hidden or 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
// Power utility to calculate exponents | |
@function pow($number, $exponent) { | |
$value: 1; | |
@if $exponent > 0 { | |
@for $i from 1 through $exponent { | |
$value: $value * $number; | |
} | |
} @else if $exponent < 0 { |
This file contains hidden or 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
function $(id) { return document.getElementById(id); } | |
function $c(class) { return document.getElementsByClassName(class); } | |
function $t(tag, container) { return (container || document).getElementsByTagName(tag); } | |
function $$(expr, container) { return (container || document).querySelectorAll(expr); } |
OlderNewer