Skip to content

Instantly share code, notes, and snippets.

@craiggists
craiggists / tweaks.sh
Created March 31, 2012 19:23 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@craiggists
craiggists / gist:2268146
Last active November 30, 2023 11:57
SublimeText: Tab to move cursor out of parentheses, quotes, brackets
// Original by C0D312
// I added the single quote and curly brace to the regex.
// http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5174
//
// Add the following to your user keybindings:
[
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)}'\"\\]]", "match_all": true },
@craiggists
craiggists / gist:2306019
Created April 4, 2012 22:00
SublimeText: Settings - Default
// While you can edit this file, it's best to put your changes in
// "User/Preferences.sublime-settings", which overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overriden in the platform
@craiggists
craiggists / user-settings.txt
Last active October 2, 2015 19:38
SublimeText: Settings-User
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Color Scheme - Default/toychest.tmTheme",
"detect_slow_plugins": false,
"file_exclude_patterns":
[
".DS_Store",
"*.lib",
"*.log"
],
@craiggists
craiggists / gist:2306208
Created April 4, 2012 22:41
SublimeText: Solarized Dark
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Solarized (dark)</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@craiggists
craiggists / gist:3709104
Created September 12, 2012 18:58
iPhone 5 screen dimensions
1136 x 640
@craiggists
craiggists / craig.zsh-theme
Last active October 11, 2015 10:17
oh-my-zsh theme
function toon {
echo -n ""
}
get_git_dirty() {
git diff --quiet || echo '*'
}
autoload -Uz vcs_info
autoload -U colors && colors
@craiggists
craiggists / Side Bar.sublime-menu
Last active October 22, 2017 17:23
Sublime Text "Open files with..." on the sidebar
[
{"id": "side-bar-files-open-with",
"children":
[
// Chrome
{
"caption": "Chrome",
"id": "side-bar-files-open-with-chrome",
"command": "side_bar_files_open_with",
@craiggists
craiggists / Toy Chest.tmTheme
Created July 27, 2013 00:37
sublime text theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Jackson Gariety</string>
<key>name</key>
<string>Toy Chest</string>
<key>semanticClass</key>
<string>theme.dark.toy-chest</string>
@craiggists
craiggists / Custom.css
Created August 10, 2013 22:23
Chrome dev tools custom CSS Based on article: http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
Chrome Developer Tools - Monokai Color Theme
Author: Béres Máté Csaba / bjmatt.com / @bjmatt / beres.mate@bjmatt.com
-----------------------------------------------------------------------------------------------------------
Installation:
1. Find your Chrome's user stylesheets directory: