Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+X | delete line |
Ctrl+↩ | insert line after |
Ctrl+⇧+↩ | insert line before |
Ctrl+⇧+↑ | move line (or selection) up |
cities = {'CA' => 'San Francisco', 'MI' => 'Detroit', 'FL' => 'Jacksonville'} | |
cities['NY'] = 'New York' | |
cities['OR'] = 'Portland' | |
def find_city(map, state) | |
if map.include? state | |
return map[state] | |
else | |
return "Not found." |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+X | delete line |
Ctrl+↩ | insert line after |
Ctrl+⇧+↩ | insert line before |
Ctrl+⇧+↑ | move line (or selection) up |
#!/usr/bin/env python | |
from __future__ import with_statement # needed for python 2.5 | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
from fabric.contrib import files | |
USAGE = """ | |
================================================================ | |
NOTE: | |
using this fabfile expects that you have the python utility |
""" | |
License: MIT | |
Author: Heath Matlock | |
Problem: https://en.wikipedia.org/wiki/Weasel_program | |
""" | |
import string | |
import random | |
from time import time | |
A widget made for Dashing. This widget shows multiple animated progress bars and reacts dynamically to new information being passed in. Anything with a current state and with a projected max/goal state can easily be represented with this widget. Some sample ideas would be to show progress, completion, capacity, load, fundraising, and much more.
var count = db.collections.count() | |
var rand = function(){return Math.floor( Math.random() * count )} | |
db.collection.find().limit(-1).skip(rand()).next(); |
These links: | |
http://help.nitrous.io/heroku/ and | |
http://help.nitrous.io/heroku-rails/ | |
are good, but they're missing some information for deploying simple apps to Heroku. | |
This assumes that you already have Git and GitHub set up on Nitrous.io and you've been | |
pushing your code to GitHub throughout development. | |
-Do the first five steps of this page: http://help.nitrous.io/heroku/. Skip the rest | |
of the steps. |
# This Python file uses the following encoding: utf-8 | |
import json | |
from types import NoneType | |
def type_to_string(typ): | |
"""Return a custom Type name for python Type | |
:param typ: The python Type | |
:type typ: type. | |
:raises: TypeError |
var http = require('http'), | |
httpProxy = require('http-proxy'); | |
// | |
// A simple round-robin load balancing strategy. | |
// | |
// First, list the servers you want to use in your rotation. | |
// | |
var forwarding = { | |
"s.paddle.to" : { | |
target: "http://localhost:8001" |
Andrew | pastyche.herokuapp.com |
---|---|
Arvind | getmeprepped.herokuapp.com |