Skip to content

Instantly share code, notes, and snippets.

@larrybotha
larrybotha / Default (OSX).sublime-keymaps
Created June 15, 2012 09:33
Sublime Text 2 | User Settings | path: Packages/User
[
{ "keys": ["super+shift+h"], "command": "htmlprettify" }
]
@larrybotha
larrybotha / A.markdown
Last active December 28, 2022 19:00
Monokai Sidebar Theme | Sublime Text

Sublime Text Monokai Sidebar Theme

A theme for the sidebar in Sublime Text to match the workspace of the Monokai theme.

This theme only modifies the sidebar to better match the Monokai theme, without modifying any of the styling elsewhere defined by Monokai.

File location: Packages/User

For a theme that extends beyond just the sidebar, visit https://gist.github.com/umpirsky/5842174

@larrybotha
larrybotha / Illustrator to Fireworks.xml
Created June 20, 2012 22:52
CS4 Fireworks | Custom Shortcuts
<?xml version="1.0" encoding="UTF-8"?>
<!-- FW shortcut file -->
<shortcutfile readonly="false" >
<menu_commands >
<command id="cmd_PreviewAllPagesInBrowser" count="1" >
<shortcut text="4 123" />
</command>
<command id="cmd_Prev_Selection" count="1" >
<shortcut text="6 37" />
@larrybotha
larrybotha / gist:2988111
Created June 25, 2012 11:38
Mac | Useful Commands
RESULT COMMAND
tooltip delay defaults write -g NSInitialToolTipDelay -int 500
show hidden files defaults write com.apple.Finder AppleShowAllFiles TRUE
make /Library visible chflags nohidden ~/Library/
folders before files link
@larrybotha
larrybotha / Custom.css
Created July 3, 2012 11:49
Chrome | Developer Tools | Themes | Sublime Text 2 Monokai
/**********************************************/
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
/**********************************************/
@larrybotha
larrybotha / snippet_HTML_jv.sublime-snippet
Created August 10, 2012 11:15
Sublime Text 2 | Snippets
<snippet>
<content><![CDATA[javascript:void(0);]]></content>
<tabTrigger>jv</tabTrigger>
<description>javascript:void(0);</description>
</snippet>
@larrybotha
larrybotha / _px-and-rem.scss
Last active April 9, 2018 16:50
Sass mixin - rems with px fallback
// This mixin outputs a property with rem units and a px fallback.
// Values passed without units are used as multipliers for the final
// rem and px values, all other units are output without modification.
// $base-font-size represents the root value of the document font-size
// in pixels.
//
// i.e. html { font-size: 100%;} // -> 16px
// Usage:
// @include px-and-rem([property], [multiplier | explicit value] [, ...]);
@larrybotha
larrybotha / SVG with PNG fallback.html
Created March 22, 2013 07:54
A method for serving .svg images with a fallback for lte IE8
<!--[if lte IE 8]>
<a href="..."><img src="your/file.png" alt="Your alt text" ></a>
<![endif]-->
<!--[if gt IE 8]>
<a href="..."><img src="your/file.svg" alt="Your alt text" ></a>
<![endif]-->
<!--[if !IE]> -->
<a href="..."><img src="your/file.svg" alt="Your alt text" ></a>
<!-- <![endif]-->
@larrybotha
larrybotha / jquery-dropdown.js
Last active December 15, 2015 09:09
A basic solution for toggling dropdown menus in a navigation with jQuery.
/*
* HTML:
* <ul class="menu">
* <li>
* <a data-trigger="menu-1" class="http://yourlink.com">Link text</a>
* <ul data-target="menu-1">
* ...
* </ul>
* </li>
* </ul>
@larrybotha
larrybotha / _gradient.scss
Created April 19, 2013 11:43
A Sass mixin to allow output of multiple backgrounds with vendor prefixes.
// This mixin allows for vendor prefixing of gradients, and allows for multiple
// backgrounds. It also allows you to define with which property you would like
// to apply your gradients.
// i.e. background / background-image / etc.
//
// It supports both the old and new syntaxes - but be warned - using the official
// 'to [direction]' syntax will result in browsers supporting only the old webkit
// syntax not rendering a gradient at all.
//
// https://developer.mozilla.org/en-US/docs/CSS/Tutorials/Using_CSS_gradients