Skip to content

Instantly share code, notes, and snippets.

@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 / 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>
con_enable 1
fps_max 60
mat_vsync "1" // Stops screen refresh rate exceeding refresh rate of monitor
mat_triplebuffered "1" // Enable with vsync if fps is less than 60 (0 Disables, 1 Enables)
dota_camera_disable_zoom "1" // disable mouse-wheel zooming
dota_minimap_hero_size "800"
@larrybotha
larrybotha / A.markdown
Last active December 20, 2015 18:49
Sublime Text Key Mappings

Sublime Text Key Mappings

These key mappings allow for a few conveniences:

  • easier 2 row work
    • increase the height of either the top or bottom column
    • make them even with a few intuitive shortcuts.
  • delete trailing slashes
  • prettify html
  • open sidebar in browser

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@larrybotha
larrybotha / A.markdown
Last active December 27, 2015 08:59
Easily manage styles for pseudo classes, especially [disabled]. Quickly create helper classes for KSS-style pseudo modifiers.

Pseudos Helper Function

Quickly manage disabled styles for an element, multiple pseudo classes, and also create helpers for KSS-style pseudo modifiers (excellent for styleguides).

Full credit goes to @fr4nktic for this technique.

Usage

a
@larrybotha
larrybotha / A.markdown
Last active January 27, 2016 13:43
Multiple Bundles With Gulp, Browserify, and React

Multiple Bundles With Gulp, Browserify, and React

@larrybotha
larrybotha / A.markdown
Last active January 27, 2016 13:43
Multiple Bundles With Gulp and JSPM

Multiple Bundles With Gulp and JSPM

@larrybotha
larrybotha / A.markdown
Last active January 27, 2016 14:00
Multiple Bundles With Gulp, WebPack, and React

Multiple Bundles With Gulp, WebPack, and React