Skip to content

Instantly share code, notes, and snippets.

View tonylegrone's full-sized avatar

Tony Legrone tonylegrone

  • Chronicle
  • Birmingham Alabama
View GitHub Profile
[
{ "keys": ["ctrl+/", "\""], "command": "chain", "args": {
"commands": [
["create_pane", {"direction": "down"}],
["travel_to_pane", {"direction": "down"}]
]}
},
{ "keys": ["ctrl+/", "%"], "command": "chain", "args": {
"commands": [
["create_pane", {"direction": "right"}],

Workspace in tmux

I like to work using a separate tmux session for each active project/folder that I'm juggling. This script will either create or attach to a project based on it's name, using fasd to jump to the directory directly. The project will be named based on the basename of the folder, for easy switching using TMUX-s.

@tonylegrone
tonylegrone / README.md
Last active August 29, 2015 14:01
Drupal 7 build script
@tonylegrone
tonylegrone / SassMeister-input-HTML.html
Created July 1, 2014 13:55
Generated by SassMeister.com.
<div class="section-2">
<section class="container">
<div class="row">
<div class="col">text</div>
<div class="col">text</div>
<div class="col">text</div>
<div class="col">text</div>
</div>
</section>
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
@tonylegrone
tonylegrone / SassMeister-input-HTML.html
Created August 26, 2014 00:51
Generated by SassMeister.com.
<ol>
<li><a href="#">Plain link</a></li>
<li><a class="button" href="#">Button</a></li>
<li><a class="button button--primary" href="#">Button primary</a></li>
<li><a class="button button--primary button--open" href="#">Button primary open</a></li>
<li><a class="button button--secondary" href="#">Button secondary</a></li>
<li><a class="button button--secondary button--open" href="#">Button secondary open</a></li>
</ol>
@tonylegrone
tonylegrone / SassMeister-input.scss
Created August 26, 2014 20:02
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
%unexpected {
display: block;
}
<?php
/**
* Calculates approximate reading time in minutes.
*
* @param (string) $str
* The string of words to calculate reading time on.
* @param (int) $words_per_minute
* The words per minute to divide the time by. Defaults to 270.
* @return (string)
@tonylegrone
tonylegrone / breakpoint.js
Created November 4, 2014 18:05
Quick little function for testing screensize against breakpoints. Requires jQuery.
/**
* Determines if screen size is within givin breakpoint.
*
* @param (string) op
* The breakpoint size to compare. Supported sizes are medium, large, xlarge
* and giant.
*
* @param (bool) mobileFirst
* Changes comparison from <= to >= if set to false. Deafults to true.
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_scheme": "Packages/Base16 Color Schemes/base16-flat.dark.tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.komodo*",