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
$.getJSON('media/js/markers.json', function(data){ | |
$.each(data.markers, function(i, marker){ | |
if (marker.tag = "foo") { | |
map.addMarker({ | |
id: i, | |
tags: marker.tag, | |
lat: marker.latitude, | |
lng: marker.longitude, | |
infoWindow: { | |
content: '<h2>' + marker.name + '</h2><p>' + marker.address + '</p>' |
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 dateUpdated = ""; | |
var reDate = /(\d+)\/(\d+)\/(\d+)/; | |
var titleDate = jQuery('p.author a').last().attr('title'); | |
var favi = jQuery('[rel="shortcut icon"]'); | |
//Swap year and day, convert to Date obj | |
titleDate = (titleDate).replace(reDate, "$3/$2/$1"); | |
titleDate = new Date(titleDate); | |
function changeTitle() { | |
jQuery.get( |
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
// Add to global namespace | |
$(document).ready(function(){ | |
window.coolfunc = function(arg){ | |
alert(arg); | |
} | |
coolfunc('Hi!'); | |
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
#!/bin/sh | |
echo Install Homebrew, and cask things | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install fish | |
brew install node | |
brew install git | |
brew install caskroom/cask/brew-cask | |
#brew cask search | |
#brew cask uninstall app |