Skip to content

Instantly share code, notes, and snippets.

Avatar

Arley McBlain arleym

View GitHub Profile
View ST2 Prefs
{
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 4,
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
@arleym
arleym / ST2 Installed Packages
Last active Aug 29, 2015
ST2 Installed Packages
View ST2 Installed Packages
{
"installed_packages":
[
"Alignment",
"ASCII Decorator",
"BracketHighlighter",
"Coffee Formatter",
"CoffeeScript",
"CSSLint",
"Emmet",
View .bashrc
# Colors! http://misc.flogisoft.com/bash/tip_colors_and_formatting
txtblk='\[\033[0;30m\]' # Black - Regular
txtgry='\[\033[1;30m\]' # Dark Grey
txtmgry='\[\033[38;5;238m\]' # Mid Grey
txtred='\[\033[0;31m\]' # Red
txtgrn='\[\033[0;32m\]' # Green
txtylw='\[\033[0;33m\]' # Yellow
txtblu='\[\033[0;34m\]' # Blue
txtliteblue='\e[94m\]' # Light blue
txtpur='\[\033[0;35m\]' # Purple
View ST2 Keymap
[
{ "keys": ["ctrl+alt+l"], "command": "csslint" },
{ "keys": ["super+alt+ctrl+k"], "command": "figlet_default" }
]
@arleym
arleym / gist:894315b9f8a7fb84a8f9
Created Sep 8, 2014
Example Sublime Text Snippet
View gist:894315b9f8a7fb84a8f9
<snippet>
<content><![CDATA[
<div class="js-accordian accordian is-active">
<h6 class="accordian__title">Title</h6>
<div class="accordian__content">
</div>
</div><!-- accordion -->
]]></content>
<tabTrigger>accordion</tabTrigger>
View Default (OSX).sublime-keymap
[
// ASCII comment
{ "keys": ["super+alt+ctrl+k"], "command": "figlet_default" },
// Jump around in CSS
{"keys": ["alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false}},
{"keys": ["alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true}},
{"keys": ["shift+alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}},
{"keys": ["shift+alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}},
View _circle-layout.scss
// The mixin that made experimenting nice on http://arleym.com/resume/
@mixin blipper($x) {
width: ($x * $base);
height: ($x * $base);
margin: ($x * ($base * -.5)) 0 0 ($x * ($base * -.5)); // should have used transform-origin, but I didn't know about that at the time!
z-index: (100 - $x);
}
.circles {
@arleym
arleym / private.xml
Last active Jan 14, 2016
A system file for Karabiner
View private.xml
<?xml version="1.0"?>
<root>
<!-- Tutorials: https://github.com/tekezo/Karabiner/blob/master/src/core/server/Resources/include/checkbox/samples.xml -->
<item>
<name>Hyper</name>
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt))</appendix>
<identifier>private.f192f19_escape</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
@arleym
arleym / layouts.applescript
Created Sep 25, 2015
Alfred Window Layout for Dev
View layouts.applescript
on alfred_script(q)
tell application "Google Chrome" to activate -- needs to be in front
tell application "System Events" to tell application process "Chrome"
try
repeat with x from 1 to (count windows)
get properties of window x
set position of window x to {0, 21}
set size of window x to {1080, 1419}
end repeat
end try
@arleym
arleym / gist:bdd3252bd016bedf9bad
Created Dec 17, 2015
Cooks - a zsh / bash config collection
View gist:bdd3252bd016bedf9bad
alias cooks="cooks1 && cooks2 && cooks3 && cooks4 && cooks5 && cooks6 && cooks7 && cooks8 && cooks9 && cooks10 && cooks11 && cooks12 && cooks13 && cooks14 && cooks15 && cooks16 && cooks17 && cooks18 && cooks19 && cooks20 && cooks21" # http://www.vulture.com/2014/11/too-many-cooks-lyrics.html
alias cooks1='say -r 180 it takes a lot to make a stew.'
alias cooks2='say -r 180 -v Karen "A pinch of salt and laughter too"'
alias cooks3='say -r 180 "A scoop of kids to add the spice"'
alias cooks4='say -r 180 -v Karen "A dash of love to make it nice. and you’ve got"'
alias cooks5='say -r 180 -v "Fred" "Too many Cooks"'
alias cooks6='say -r 180 -v Karen "Too many Cooks"'
alias cooks7='say -r 180 -v "Ralph" "Too many Cooks"'
alias cooks8='say -r 180 "Too many Cooks"'
alias cooks9='say -r 180 -v "Bruce" "Too many Cooks"'
You can’t perform that action at this time.