- ClojureScript https://clojurescript.org/
- Clojure https://clojure.org
- Deps and CLI: https://clojure.org/guides/deps_and_cli
- Figwheel https://figwheel.org/
- Flappy Bird video: https://www.youtube.com/watch?v=KZjFVdU8VLI
- figwheel-main template: https://github.com/bhauman/figwheel-main-template
- Devcards https://github.com/bhauman/devcards
- Strange Loop talk: https://www.youtube.com/watch?v=G7Z_g2fnEDg
- Intro video: https://vimeo.com/97078905
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
##############[ custom_awsvault: current aws account (https://github.com/99designs/aws-vault) ]############### | |
awsvault_prompt() { | |
if [ ! -z "${AWS_VAULT-}" ]; then | |
echo -n " ${AWS_VAULT-} " | |
fi | |
} | |
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT="awsvault_prompt" | |
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_FOREGROUND="black" | |
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_BACKGROUND="yellow" | |
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_VISUAL_IDENTIFIER_EXPANSION=' ☁️' |
Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv
instead. If you are looking for the previous version of this document, see the revision history.
$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10
$ pyenv install 2.6.9
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
$( document ).ready( function() { | |
$( "input.date" ).datepicker({ | |
minDate: moment().subtract( "months", 1 ).toDate(), | |
maxDate: moment().add( "months", 1 ).toDate(), | |
dateFormat: "d M, y", | |
constrainInput: true, | |
beforeShowDay: $.datepicker.noWeekends | |
}); |
-
Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.
-
Reset PS3 controller by inserting paperclip into pinhole near L2 button.
-
Connect PS3 controller to Mac with USB cable.
-
Enable Bluetooth.
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
/* | |
* Grunt Task File | |
* --------------- | |
* | |
* Task: coffee | |
* Description: Compile coffee files to js | |
* Dependencies: coffee-script | |
* | |
*/ |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/ | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
source "http://rubygems.org" | |
group :development do | |
gem 'rake' | |
gem 'guard' | |
gem 'coffee-script' | |
gem 'rb-fsevent' | |
gem 'rb-inotify' | |
gem 'compass', '0.11.5' | |
gem 'sass', '3.1.5' | |
gem 'guard-compass' |
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
import urllib, urllib2, simplejson | |
from django.utils.encoding import smart_str | |
def get_lat_lng(location): | |
# http://djangosnippets.org/snippets/293/ | |
# http://code.google.com/p/gmaps-samples/source/browse/trunk/geocoder/python/SimpleParser.py?r=2476 | |
# http://stackoverflow.com/questions/2846321/best-and-simple-way-to-handle-json-in-django | |
# http://djangosnippets.org/snippets/2399/ | |
NewerOlder