[ Launch: heat map ] f7e2ca52c912e5a4f0bcbc9c958d6e0a by julia-allyce[ Launch: test ] 4653053 by enjalot[ Launch: test ] 4652017 by enjalot[ Launch: test ] 4582399 by enjalot
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
// object Object | |
// keys are strings and values can be any type | |
var a = { 'x': 23, 'y': null, 'z': 'a stringggg', '0': function() {...} }; | |
// properties can be accessed and added with dot notation or braces: | |
console.log(a.y); // null | |
console.log(a['0']); // function... | |
a.q = 20; | |
a['horses'] = 30; | |
console.log(a); // { 'x': 23, 'y': null, ... 'q': 20, 'horses': 30 } |
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
// undefined | |
var aVariable; | |
var anObject = { aProperty: 'yay' }; | |
console.log(aVariable); // undefined | |
console.log(anObject.monkey); // undefined | |
console.log(someVarNeverDeclared); // undefined | |
// null | |
var empty = null; | |
console.log(empty); // null |
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 a; | |
var b; | |
a = 4; | |
b = "5"; | |
a += 2; // a == 6 | |
console.log(a + b); | |
// returns "65" |
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
package main | |
var a int //declaring a as an integer | |
var b string //declaring b as a string | |
func main () { | |
a = 4 | |
b = "5" | |
a += 2 // a == 6 |
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
/* | |
ABOUT BREAKPOINT MIXINS | |
These are mad awesome. Feel free to add more if you find things acting wierd at a certain | |
screen size or zoom point. I am using em's based on 16px. Ideally if you aren't using a breakpoint | |
that means whatever you are working with should look good on a mobile device. | |
Please refer to the LESS docs on how to use Mixins with Rulesets: | |
http://lesscss.org/features/#detached-rulesets-feature | |
*/ |
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
//mixin | |
.keyframes(@name, @frames) { | |
@-webkit-keyframes @name { @frames(); } | |
@-moz-keyframes @name { @frames(); } | |
@-ms-keyframes @name { @frames(); } | |
@-o-keyframes @name { @frames(); } | |
@keyframes @name { @frames(); } | |
} | |
//compiles as valid less |