Skip to content

Instantly share code, notes, and snippets.

View dylan-conlin's full-sized avatar

dylan-conlin dylan-conlin

View GitHub Profile
@lyatziv
lyatziv / zipToLocalle.js
Last active November 14, 2017 23:19
ziptastic or zippopotam.us alternative
fetch('https://maps.googleapis.com/maps/api/geocode/json?address=10030&region=US', {
method: 'get'
}).then((response) => response.json())
.then((response) => {
let address = response.results[0].address_components.reduce((comps, comp) => {
let attr = comp.types[0];
attr = (attr === 'administrative_area_level_2') ? 'county' : attr;
attr = (attr === 'administrative_area_level_1') ? 'state' : attr;
comps[attr + '_long'] = comp.long_name;
comps[attr + '_short'] = comp.short_name;
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@areina
areina / emacs-email-setup.md
Created October 12, 2012 15:00
Manage your email in emacs with mu4e

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e