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
/** | |
* Various localStorage method helpers for setting, | |
* getting and checking localStorage data. | |
*/ | |
JG_LocalStorage = (function () { | |
'use strict'; | |
return { | |
/* add data to localStorage */ | |
set: function (key, value) { |
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
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
//assignment 1 | |
.car { | |
zoom: 1; | |
&__tire { | |
zoom: 2; |
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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
$placeholder-prefixes: '::-webkit', ':-moz-placeholder', '::-moz-placeholder', ':-ms-input-placeholder'; | |
@mixin input-placeholder() { | |
@each $prefix in $placeholder-prefixes { | |
&#{$prefix} { |
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
// ---- | |
// Sass (v3.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// Susy (v2.1.2) | |
// ---- | |
@import "susy"; | |
@for $i from 1 through 50 { | |
.foo { |
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
// ---- | |
// Sass (v3.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// Singularity.gs (v1.2.1) | |
// ---- | |
@import "singularitygs"; | |
@include add-grid(12); | |
@include add-gutter(1/3); | |
@include add-gutter-style('split'); |
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
// ---- | |
// Sass (v3.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// Bourbon (v4.0.2) | |
// Neat (v1.6.0) | |
// ---- | |
@import "bourbon/bourbon", "neat/neat"; | |
@for $i from 1 through 50 { |
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 geocoder = new google.maps.Geocoder(); | |
geocoder.geocode({ 'address': '1071 CX, Amsterdam, NL' }, function (results, status) { | |
if (status == google.maps.GeocoderStatus.OK) { | |
var result = results[0], | |
latlng = result.geometry.location.toString().replace(/\(|\)/g, '').split(', ')); | |
console.log(latlng[0]); //lat | |
console.log(latlng[1]); //long | |
} | |
}); |
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
/** | |
* ------------- | |
* library.js | |
* | |
* Create Library function, register methods with prototype. | |
* More information about this pattern: http://tobyho.com/2010/11/22/javascript-constructors-and/ | |
* ------------- | |
**/ | |
function Library () { | |
this.example = 'example 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
/** | |
* string.jssprintf function which acts like sprintf. | |
* | |
* Example | |
* | |
* 'Buy {0} get {1}'.jssprintf(5, 'one free'); | |
* which results in; | |
* 'Buy 5 get one free'. | |
*/ | |
(function () { |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// Susy (v2.1.3) | |
// ---- | |
@import "susy"; | |
@for $i from 1 through 50 { | |
.foo { |
OlderNewer