Skip to content

Instantly share code, notes, and snippets.

View payne's full-sized avatar

Matt Payne payne

View GitHub Profile
[user]
name = Your Full Name
email = your@email.com
[alias]
st = status
d = diff
co = checkout
ci = commit -v
cia = commit -v -a
b = branch
@payne
payne / heroku.md
Created June 2, 2012 11:02 — forked from jaymcgavren/heroku.md
A Code TV screencast on getting started with Heroku

Description

Heroku is a simple way to publish your Rails app, and a powerful platform that will allow it to scale. In this episode, Jay McGavren gets you started with your first Heroku app.

Set up your Rails app

Isolate your gem environment

  • You WANT Rails to fail locally if a gem isn't in your Gemfile

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Creating a RVM based Ruby environment on Vagrant

Update all packages

yum update

Install RVN. note: Don't do this as a root user!

curl -L get.rvm.io | bash -s stable

Lightning Talks Recap

Here are some links to some of the talks or the topics they covered.

Todd Nichols: Pundit

Jay Hannah: Regular Expressions

Installing QGIS on OS X

Introduction

These instructions cover installing QGIS on OS X. Note that OS X 10.7 (Lion) is the minimum supported version.

Step 1: Download installers

You will need 3 separate installers to get QGIS onto your computer. They can be found from the QGIS download page, or you can click the following links:

@payne
payne / shell.sh
Last active August 29, 2015 14:06 — forked from bradmontgomery/shell.sh
# pretty-print a JSON result
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.'
# grab the data list
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.data'
# Get *just* the first album
curl 'https://graph.facebook.com/memphispython/albums/' | jq '.data[0]'
# Narrow that first entry to some specific data

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@payne
payne / introrx.md
Last active August 29, 2015 14:15 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

{
"images" : [
{
"url" : "https:\/\/dl.dropboxusercontent.com\/u\/361291\/gifs\/confusion.gif",
"keywords" : "confusion"
},
{
"url" : "https:\/\/dl.dropboxusercontent.com\/u\/361291\/gifs\/congratulations!!!.gif",
"keywords" : "congratulations!!!"
},