Skip to content

Instantly share code, notes, and snippets.

@hopbit
hopbit / gist:5212170
Last active December 15, 2015 05:49
test
var gitKataBestCommiter = {
/**
* @type {string}
* @private
*/
searchOnBitBucket_: 'https://api.bitbucket.org/1.0/repositories/wojtassj/git-kata-registration/changesets',
/**
* @param {ProgressEvent} e The XHR ProgressEvent.

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 / how-to-connect-scratch-live-with-cdj-or-turntables.md
Last active April 12, 2017 08:36
### How to connect Serato Scratch Live with Pioneer CDJ ###

CDJ - CDJ Player SLB - Scratch Live Box

  • Connect CDJ/Turntable with RCA cables to inputs in SLB.
  • Connect RCA to AUX input if You are planning to record your set.
  • Ground your Turnable (if it's not).
  • Settle phono/cd on SLB.
  • Connect RCA to output on SLB
  • Connect RCA to inputs on SLB
  • Connect Sample player to AUX IN on SLB
@hopbit
hopbit / _convert_mp3_filenames_imported_with_itunes.py
Last active March 8, 2016 07:58
simple python script that converts mp3 files imported with itunes in "my way"
# coding=UTF-8
import os, shutil
# needs python2.7
# works only with albums that are NOT marked as compilations
# --------------------------------------------------------------
# usage:
# cd %itunes_library%\Music # cd $itunes_library/Music
# python _convert_mp3_filenames_imported_with_itunes.py
@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>
# @ cmd.exe
grails create-app album
cd album
grails run-app
grails run-app -Dserver.port=9090
firefox http://localhost:8080/album/
# liquidbase
grails create-domain-class
// http://bit.ly/1sZ7vm7
# 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 / quantum-energy-live-session-001
Last active August 29, 2015 14:23
Quantum Energy - Live Session 001
# Beginnings with Sonic Pi live loop & sample.
# Listen on [Soundcloud](https://soundcloud.com/quantumenergy/quantum-energy-live-session-001)
live_loop :foo do
sample :ambi_piano, amp: 0.35
sample :drum_bass_hard, amp: 1
sleep 0.40625
sample :elec_snare, amp: 0.2
@hopbit
hopbit / how-to-install-qt-for-sonic-pi-on-windows-7.md
Last active August 29, 2015 14:23
How to install Qt 5.4.1 on Windows 7 64-bit that is needed for Sonic Pi 2.6.
# https://soundcloud.com/hopbit/live-coding-session-2015-08-04
live_loop :jj do
#sample :loop_breakbeat, rate: 1.25, amp: 4
sleep 1.5
use_synth :dsaw
play 1, amp: 0.5
end
live_loop :ll do