Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| Highcharts.Chart.prototype.callbacks.push(function(chart) { | |
| var hasTouch = document.documentElement.ontouchstart !== undefined, | |
| mouseTracker = chart.pointer, | |
| container = chart.container, | |
| mouseMove; | |
| mouseMove = function (e) { | |
| // let the system handle multitouch operations like two finger scroll | |
| // and pinching |
| require 'formula' | |
| class Pdftk < Formula | |
| url 'http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip' | |
| homepage 'http://www.pdflabs.com/' | |
| md5 '9eb50fffcd621a627d387750c60982b4' | |
| depends_on 'gcc' # with "--enable-java" option , required "Homebrew-alt" . | |
| # via : https://github.com/adamv/homebrew-alt/ | |
| def install |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| wdir="." | |
| else | |
| wdir=$1 | |
| fi | |
| for f in $( find . -name '*erb' ); do | |
| out="${f%.erb}.haml" | |
| if [ -e $out ]; then |
| # /etc/init/project-web-reload.conf | |
| pre-start script | |
| initctl restart project-web | |
| sleep 15 | |
| end script | |
| exec /usr/local/rvm/bin/default_bluepill restart |
| # | |
| # = ostruct.rb: OpenStruct implementation | |
| # | |
| # Author:: Yukihiro Matsumoto | |
| # Documentation:: Gavin Sinclair | |
| # | |
| # OpenStruct allows the creation of data objects with arbitrary attributes. | |
| # See OpenStruct for an example. | |
| # |
| config.use_transactional_fixtures = false | |
| config.before(:suite) do | |
| # Do truncation once per suite to vacuum for Postgres | |
| DatabaseCleaner.clean_with :truncation | |
| # Normally do transactions-based cleanup | |
| DatabaseCleaner.strategy = :transaction | |
| end | |
| config.around(:each) do |spec| |
| # 'direct_v2/threads/broadcast/text/' | |
| class InstagramPrivateController < ApplicationController | |
| def initialize(username, password, photo, caption) | |
| @username = username | |
| @password = password | |
| @photo = photo | |
| @caption = caption |
Picking the right architecture = Picking the right battles + Managing trade-offs