Skip to content

Instantly share code, notes, and snippets.

View joeldom's full-sized avatar
🌐
begin with the end in mind.

Joel joeldom

🌐
begin with the end in mind.
View GitHub Profile
@joeldom
joeldom / .zshrc
Created January 27, 2020 21:03 — forked from callumlocke/.zshrc
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@joeldom
joeldom / sb-gmap
Last active August 29, 2015 14:07
Need help adding a marker to the map.
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<div id="sitkobrunomap" style="height:200px;width:100%;"></div>
<script type="text/javascript">
function init_map(){
var stylesArray = [
{"featureType":"poi","elementType":"geometry.fill","stylers":[{"visibility":"off"}]},
{"featureType":"all","elementType":"geometry.fill","stylers":[{"saturation":-100}]},
{"featureType":"transit","elementType":"labels","stylers":[{"visibility":"off"}]},
{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":30}]},
{"featureType":"water","elementType":"geometry.fill","stylers":[{"hue":"#4c639e"},{"lightness":-37}]},
// New grid containing medium styles
/* Grid HTML Classes */
.row {
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
max-width: 62.5em;
width: 100%;
*zoom: 1; }
@joeldom
joeldom / contact.js
Created December 19, 2011 18:37
contact form submission
$(document).ready(function(){
$('#send_message').click(function(e){
//stop the form from being submitted
e.preventDefault();
/* declare the variables, var error is the variable that we use on the end
to determine if there was an error or not */
var error = false;
var name = $('#name').val();