Experiments with very small pie charts and tables with dots whose size represents a quantity.
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
Vagrant::Config.run do |config| | |
config.vm.box = "lucid32" | |
config.vm.host_name = "apache" | |
config.vm.network :hostonly, "192.168.0.101" | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "cookbooks" | |
chef.add_recipe "apt" | |
chef.add_recipe "apache2" |
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 geocoder; | |
geocoder = new google.maps.Geocoder; | |
geocoder.geocode({ | |
address: "Margrethepladsen 4, 8000, DK" | |
}, function(results, status) { | |
if (status === google.maps.GeocoderStatus.OK) { | |
return console.log("(" + (results[0].geometry.location.lng()) + ", " + (results[0].geometry.location.lat()) + ")"); | |
} else { |
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 geocoder; | |
var _this = this; | |
geocoder = new google.maps.Geocoder; | |
geocoder.geocode({ | |
address: "Margrethepladsen 4, 8000, DK" | |
}, function(results, status) { | |
if (status === google.maps.GeocoderStatus.OK) { | |
return console.log("(" + (results[0].geometry.location.lng()) + ", " + (results[0].geometry.location.lat()) + ")"); |
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
geocoder = new google.maps.Geocoder | |
geocoder.geocode {address: "Margrethepladsen 4, 8000, DK"}, (results, status) => | |
if status is google.maps.GeocoderStatus.OK | |
console.log "(#{results[0].geometry.location.lng()}, #{results[0].geometry.location.lat()})" | |
else | |
alert "Unable to query service for address \"#{location}\"" |
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 |
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
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
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
fns = [] | |
for ch in ["A", "B", "C"] | |
do (ch) -> | |
fns.push -> console.log ch | |
for f in fns | |
f() |