Skip to content

Instantly share code, notes, and snippets.

Trace Helms tracehelms

Block or report user

Report or block tracehelms

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Delete branches
" 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
@tracehelms
tracehelms / bracket_push.ex
Created Feb 20, 2017
Bracket Push Exercism
View bracket_push.ex
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
View topology_schema.sql
-- 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 / Preferences.sublime-settings
Last active Jan 2, 2016
Sublime Text 3 Preferences
View Preferences.sublime-settings
// Packages
//
// BetterCoffeeScript
// BlockCursorEverywhere
// BracketHighlighter
// Emmet
// MarkdownPreview
// SCSS
// SidebarEnhancements
// SolarizedColorScheme
You can’t perform that action at this time.