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
$("#slider-range").slider | |
range: true | |
min: 0 | |
max: 20 | |
values: [5, 11] | |
slide: (_, ui) -> console.log "#{ui.values[0]} to #{ui.values[1]}" |
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
$("#slider-range").slider({ | |
range: true, | |
min: 0, | |
max: 20, | |
values: [5, 11], | |
slide: function(_, ui) { | |
return console.log("" + ui.values[0] + " to " + ui.values[1]); | |
} | |
}); |
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
$ -> | |
localStorage.clear() | |
googleSpreadsheet = new GoogleSpreadsheet() | |
googleSpreadsheet.url "0AkHpzadx2wordERkOGROYlpNNkJhVkFrQWpWR0VMYUE" | |
googleSpreadsheet.load (result) -> | |
ConferenceSpreadsheetParser.parse result.cells, (conferences) -> | |
map = new google.maps.Map $("#map-canvas")[0], | |
zoom: 1 | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
map.setCenter new google.maps.LatLng(0, 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
fns = [] | |
for ch in ["A", "B", "C"] | |
fns.push -> console.log ch | |
for f in fns | |
f() |
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
fns = []; | |
_ref = ["A", "B", "C"]; | |
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | |
ch = _ref[_i]; | |
fns.push(function() { | |
return console.log(ch); | |
}); | |
} | |
for (_j = 0, _len2 = fns.length; _j < _len2; _j++) { | |
f = fns[_j]; |
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
fns = [] | |
for ch in ["A", "B", "C"] | |
do (ch) -> | |
fns.push -> console.log ch | |
for f in fns | |
f() |
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
fns = []; | |
_ref2 = ["A", "B", "C"]; | |
_fn = function(ch) { | |
return fns.push(function() { | |
return console.log(ch); | |
}); | |
}; | |
for (_k = 0, _len3 = _ref2.length; _k < _len3; _k++) { | |
ch = _ref2[_k]; | |
_fn(ch); |
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
A | |
B | |
C |
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
$ -> | |
map = new google.maps.Map $("#map-canvas")[0], | |
zoom: 1 | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
map.setCenter new google.maps.LatLng(0, 0) | |
marker = new google.maps.Marker | |
position: new google.maps.LatLng 56, 32 | |
map: map |
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() { | |
var map, marker; | |
map = new google.maps.Map($("#map-canvas")[0], { | |
zoom: 1, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}); | |
map.setCenter(new google.maps.LatLng(0, 0)); | |
marker = new google.maps.Marker({ | |
position: new google.maps.LatLng(56, 32), | |
map: map |