Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tracehelms
tracehelms / Preferences.sublime-settings
Last active January 2, 2016 21:29
Sublime Text 3 Preferences
// Packages
//
// BetterCoffeeScript
// BlockCursorEverywhere
// BracketHighlighter
// Emmet
// MarkdownPreview
// SCSS
// SidebarEnhancements
// SolarizedColorScheme
-- modified adjacency list
-- 162ms for 30,000 records in a tree
create table topology (
id serial primary key,
parent_id integer,
second_parent_id integer,
name varchar
);
create index on topology (id);
@tracehelms
tracehelms / bracket_push.ex
Created February 20, 2017 15:32
Bracket Push Exercism
defmodule BracketPush do
@doc """
Checks that all the brackets and braces in the string are matched correctly, and nested correctly
"""
@spec check_brackets(String.t) :: boolean
def check_brackets(str) do
end
end
" This will list ALL branches and give you the chance to choose the ones being deleted
" Be sure to remove branch names from the file that are important:
" master, develop, staging, current branches, etc.
"
git branch >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -D </tmp/merged-branches