Skip to content

Instantly share code, notes, and snippets.

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@hopbit
hopbit / jsbin.kuneg.html
Last active August 29, 2015 14:02 — forked from anonymous/jsbin.kuneg.html
attach unselect behaviour to multibox, original source: http://jsbin.com/kuneg/1/edit, after modifications: http://jsbin.com/kuneg/15/edit
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<select size="10" multiple id="myMultiSelectBox">
<option value="1" selected>One</option>
# Run script 3 times because of the deeply nested variables
# PROXY_USERNAME is the username used to connect to proxy.
# May be different than the existing USERNAME.
# USERNAME is the account you logged into VM with,
# like 'Administrator', which may not have access through proxy
# Primary variables (CHANGE THESE FIRST!)
setx PROXY_HOSTNAME my_domain.com
setx PROXY_USERNAME my_user
setx PROXY_PASSWORD my_password
@hopbit
hopbit / gist:b8d816e829edae60a705
Created October 14, 2015 22:14 — forked from darinwilson/SonicPiDrumMachine
Sonic Pi Drum Machine
#########################################
## Sonic Pi Drum Machine
## coded by Darin Wilson
##
use_bpm 95
in_thread(name: :drum_machine) do
# choose your kit here (can be :acoustic, :acoustic_soft, :electro, :toy)
@hopbit
hopbit / sonicpi-crash-course.txt
Created March 26, 2016 20:31 — forked from hzulla/sonicpi-crash-course.txt
Crash into Sonic Pi: Learn to code music in less than 30 minutes
# -------------------------------------------
# CRASH INTO SONIC PI!
# Learn to code music in less than 30 minutes
# -------------------------------------------
# - download Sonic Pi from sonic-pi.net
# - copy and paste these code snippets
# - change and experiment with the snippets
# - go!
# -------------------------------------------
# These snippets were made for a workshop to
@hopbit
hopbit / ambient1
Created April 13, 2016 10:07 — forked from darinwilson/ambient1
Ambient experiment using Sonic Pi
# Ambient experiment for Sonic Pi (http://sonic-pi.net/)
#
# The piece consists of three long loops, each of which plays one of
# two randomly selected pitches. Each note has different attack,
# release and sleep values, so that they move in and out of phase
# with each other. This can play for quite awhile without
# repeating itself :)
live_loop :note1 do
use_synth :hollow
use_debug false
use_bpm 130
# Our mixer!
master = (ramp *range(0, 1, 0.01))
kick_volume = 1
bass_volume = 1
revbass_volume = 1
snare_volume = 0.5
hats_volume = 0.5
@hopbit
hopbit / README.md
Created April 20, 2016 13:17 — forked from dnozay/_Jenkins+Script+Console.md
jenkins groovy scripts collection.
@hopbit
hopbit / count-on-me.rb
Last active January 10, 2023 21:44 — forked from pjagielski/count-on-me.rb
Count on me supersaw
# :saws live loop written by @pjagielski,
# but I couldn't hold back to play with it!
# soundcloud: https://soundcloud.com/hopbit/live-coding-session-2016-05-14-count-on-me
use_bpm 130
set_volume! 1
ch1 = [62,65,69]
ch2 = [63,67,70]
ch3 = [65,69,72]
ch4 = [67,70,74]
@hopbit
hopbit / README.md
Created June 13, 2016 20:59 — forked from dergachev/README.md
Vagrant tutorial

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM