(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/python | |
import urllib, json, sys, math, time, os, smtplib; | |
from datetime import date, timedelta, datetime | |
from email.mime.text import MIMEText | |
# Location constant | |
GMTOFFSET = 5 | |
LATITUDE = 45.4214 | |
LONGITUDE = -75.6919 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
from django import forms | |
from django.conf import settings | |
from django.utils.safestring import mark_safe | |
class GoogleMapsWidget(forms.HiddenInput): | |
# Media to be includes with the widget | |
class Media: | |
js = ( |
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'sqlite3' | |
GEMFILE | |
system('bundle') | |
end | |
require 'bundler' |