Skip to content

Instantly share code, notes, and snippets.

View bland-industries's full-sized avatar

Thomas Verstraete bland-industries

View GitHub Profile
@bland-industries
bland-industries / README-Template.md
Created April 10, 2017 20:26 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@bland-industries
bland-industries / sonic_pi_note_sheet.txt
Created April 28, 2016 16:32
A quick cheat sheet to see the sonic pi note notation to midi val number and where they sit on the scale.
Scientific Pitch Notation (SPN):MIDI Notation
D8:98
-C8:97-
B7:96
-A7:95-
G7:94
-F7:93-
E7:92
-D7:91-
@bland-industries
bland-industries / PowerURL.js
Created February 17, 2016 15:08
PowerURL: my own simple incomplete js object to handle url manipulation. I know it needs some work.
function PowerURL(url) {
var powerURL = this;
powerURL.protocol = "";
powerURL.site = "";
powerURL.path = [];
powerURL.get = {};
if(typeof url === 'string') {
powerURL.parse(url);
@bland-industries
bland-industries / girl_anachronism.rb
Last active November 11, 2015 04:20
My second SonicPi song from sheet music. This is a small portion of the song "Girl Anachronism" by The Dresden Dolls. Still need to work on it.
# First Part
bar = 2.0
half = bar/2.0
quarter = bar/4.0
eighth = bar/8.0
sixteenth = bar/16.0
use_synth :piano
@bland-industries
bland-industries / mountainKing.rb
Created November 11, 2015 02:58
This is the song "In the Hall of the Mountain King" by Edvard Grieg. This is to be used in the program SonicPi. This is my first real song I made on it and I had to teach myself sheet music reading in order to do this. It was fun.
in_thread(name: :basic) do
use_synth :mod_fm
#sleep (bar * 2)
bar = 2.25
half = bar/2.0
quarter = bar/4.0
eighth = bar/8.0
2.times do
@bland-industries
bland-industries / MoreView.py
Last active August 29, 2015 14:24
Need More View. Sublime plugin to show more of the view and less of the not view.
import sublime, sublime_plugin
class MoreViewCommand(sublime_plugin.WindowCommand):
def run(self):
# sublime.active_window().show_input_panel("Name your project", "", self.inputCallback,None, None)
sublime.active_window().run_command("toggle_side_bar")
sublime.active_window().run_command("toggle_minimap")
sublime.active_window().run_command("toggle_status_bar")
sublime.active_window().run_command("toggle_tabs")
@bland-industries
bland-industries / search.html
Last active February 17, 2016 15:10
Built this search function with auto complete from ajax. Somewhat specific to my needs but can be adapted to others. The server site is up to you.
<input type="text" id="searchBox" style="width:300px" class="input-xlarge" />
<div id='resultContainer'></div>
<script type="text/javascript" scr='/search.js'></script>
<script type="text/javascript">
FundSearch.Presenter.create('#searchBox', '#resultContainer', '/search.php');
</script>
@bland-industries
bland-industries / StartUpWorkspaces
Created February 26, 2015 15:33
Applescript to place specific window at full screen when there are multiple monitors. Works with some caveats.
set duetApps to {"Mail", "HipChat", "Console", "iTerm"}
set laptopApps to {"Safari", "Google Chrome", "Tower"}
set topApps to {"Sublime"}
-- toggle full screen
on toggleFullScreen()
set isFullScreenAfter to false
tell application "System Events"
@bland-industries
bland-industries / mvpShortcut.py
Last active August 29, 2015 14:04
Plugin for Sublime Text 2: Opens the model view and presenter of a file if the file name is structure as name.model.extension for example.
import sublime, sublime_plugin, os.path
class ModelViewPresenterCommand(sublime_plugin.TextCommand):
def run(self, edit):
mvpNames = ['model','view','presenter']
newthing = self.view.file_name().split("/")
newNewthing = newthing[len(newthing)-1].split(".")
win = self.view.window()
if (newNewthing[1] in s for s in mvpNames):
if os.path.isfile(newNewthing[0] + ".view." + newNewthing[2]):