Skip to content

Instantly share code, notes, and snippets.

View seb-thomas's full-sized avatar
💭
😷

Sebastian Thomas seb-thomas

💭
😷
View GitHub Profile
#!/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
// Add to global namespace
$(document).ready(function(){
window.coolfunc = function(arg){
alert(arg);
}
coolfunc('Hi!');
@seb-thomas
seb-thomas / update
Last active December 13, 2015 21:38 — forked from tomviner/updated?
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(
$.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>'