In your shell:
cd ~/.vim/syntax
wget http://github.com/defunkt/mustache/raw/master/contrib/mustache.vim
In your ~/.vim/filetype.vim
:
runtime! ftdetect/*.vim
cat <<! > raspi-gmail.py | |
#!/usr/bin/env python | |
import RPi.GPIO as GPIO, feedparser, time | |
DEBUG = 1 | |
USERNAME = "username" # just the part before the @ sign, add yours here | |
PASSWORD = "password" |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
function r(f){/in/(document.readyState)?setTimeout(r,9,f):f()} |
$.sammy(function() { | |
app.get('#/exams/new', function(context) { | |
// display the modal | |
window.setTimeout( function(){ | |
context.app.location_proxy.unbind(); | |
context.app.setLocation('#/'); | |
context.app.last_location = '#/'; |
In your shell:
cd ~/.vim/syntax
wget http://github.com/defunkt/mustache/raw/master/contrib/mustache.vim
In your ~/.vim/filetype.vim
:
runtime! ftdetect/*.vim
We assumed Rails 2 would never work without rubygems, and we committed to gem bunlder for JRuby on App Engine, so we were waiting for Rails 3. Fortunately, Takeru Sasaki was able to patch the Rails 2.3.5 calls to rubygems, and now we have it working. Rails 2.3.5 currently spins up several seconds faster than Rails 3, and just a few seconds behind Sinatra.
See the TinyDS version also: gist.github.com/269075
The gems for the development environment include a pre-release appengine-tools gem that provides a pre-release version of jruby-rack.
sudo gem install google-appengine
# ~/.bash_profile | |
export GEMDIR=`gem env gemdir` | |
gemdoc() { | |
local gems=($GEMDIR/doc/$1*/rdoc/index.html) | |
open ${gems[@]: -1} | |
} | |
complete -W '$(`which ls` $GEMDIR/doc)' gemdoc |
# NAME: authinabox | |
# VERSION: 1.01 (Dec 27, 2008) | |
# AUTHOR: Peter Cooper [ http://www.rubyinside.com/ github:peterc twitter:peterc ] | |
# DESCRIPTION: An "all in one" Sinatra library containing a User model and authentication | |
# system for both session-based logins OR HTTP Basic auth (for APIs, etc). | |
# This is an "all in one" system so you will probably need to heavily tailor | |
# it to your own ideas, but it will work "out of the box" as-is. | |
# COMPATIBILITY: - Tested on 0.3.2 AND the latest rtomayko Hoboken build! (recommended for the latter though) | |
# - NEEDS DataMapper! | |
# - Less work needed if you use initializer library -- http://gist.github.com/40238 |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin</string> | |
</dict> |