##Goals 01/07/2014
###git and github
- Understand the purpose of version control systems
- Learn how to manage files/projects with git and github
- Understand git branching
- Understand how to collaborate with others
###file i/o, arrays, hashes
# autoload concerns | |
module YourApp | |
class Application < Rails::Application | |
config.autoload_paths += %W( | |
#{config.root}/app/controllers/concerns | |
#{config.root}/app/models/concerns | |
) | |
end | |
end |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Site</title> | |
</head> | |
<body class="app"> | |
<%= render :partial => 'layouts/flashes' %> | |
<%= yield %> | |
</body> | |
</html> |
# Allow RSpec assertions over the elements of a collection. For example: | |
# | |
# collection.should all_be > 0 | |
# | |
# will specify that each element of the collection should be greater | |
# than zero. Each element of the collection that fails the test will | |
# be reported in the error message. | |
# | |
# Examples: | |
# [1,1,1].should all_be eq(1) |
crickets: "hears crickets chirping" | |
drama: "https://123.campfirenow.com/images/drama.jpg" | |
greatjob: "https://123.campfirenow.com/images/greatjob.png" | |
live: "is DOING IT LIVE" | |
nyan: "https://123.campfirenow.com/images/nyan.gif" | |
ohmy: "raises an eyebrow :smirk:" | |
pushit: "https://123.campfirenow.com/images/pushit.gif" | |
rimshot: "plays a rimshot" | |
secret: "found a secret area :key:" | |
tada: "plays a fanfare :flags:" |
##Goals 01/07/2014
###git and github
###file i/o, arrays, hashes
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) | |
(if you aren't using version 9.1.5, change line 6 with the correct version) | |
1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
2. mv /usr/local/var/postgres /usr/local/var/postgres91 | |
3. brew update | |
4. brew upgrade postgresql | |
5. initdb /usr/local/var/postgres -E utf8 | |
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres | |
7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ |
#Four Ways To Do Pub/Sub With jQuery and jQuery UI (in the future)
Between jQuery 1.7 and some of work going into future versions of jQuery UI, there are a ton of hot new ways for you to get your publish/subscribe on. Here are just four of them, three of which are new.
(PS: If you're unfamiliar with pub/sub, read the guide to it that Julian Aubourg and I wrote here http://msdn.microsoft.com/en-us/scriptjunkie/hh201955.aspx)
##Option 1: Using jQuery 1.7's $.Callbacks() feature:
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys
and look for sec
, use the key ID for the next stepgit
to use GPG -- replace the key with the one from gpg --list-secret-keys