Skip to content

Instantly share code, notes, and snippets.

View johnmichel's full-sized avatar
👻
☕️

John Michel johnmichel

👻
☕️
View GitHub Profile
//-------------------------------------------------------------------------
// UI
//-------------------------------------------------------------------------
// Greens
$turquoise: #1ABC9C
$green-sea: #16A085
$emerald: #2ECC71
$nephritis: #27AE60
  1. Quit Sublime Text 3.
  2. Remove any previously installed SublimeLinter packages (from ~/Library/Application Support/Sublime Text 3/Installed Packages AND ~/Library/Application Support/Sublime Text 3/Packages). It's ok if the ~/Library/Application Support/Sublime Text 3/Packages/User/SublimeLinter.sublime-settings is left in place. More on that later.
  3. Download this snapshot of SublimeLinter.
  4. Unzip the contents into ~/Library/Application Support/Sublime Text 3/Packages. There should now be a SublimeLinter folder there.
  5. Open Sublime Text 3. Everything should be working.

BONUS ROUND!

The new version of SublimeLinter includes the ability to enable gutter mark themes, which will supplement the outline style with icons for different error types. To enable these to work with the existing settings, copy the following code block into ~/Library/Application Support/Sublime Text 3/Packages/User/SublimeLinter.sublime-settings, below the line for `"sublimelinter_gutter_mar

@johnmichel
johnmichel / clear_table.js
Created September 4, 2012 21:01
Making copyable Bitbucket changelogs quick and easy
// https://bitbucket.org/REPOSITORY/compare/NEWERHASH..OLDERHASH
// run the code below in the console for the page above
$('td.author, td.hash, td.labels, td.date').css('display','none');
$('td.text').css('width','1000px');
@johnmichel
johnmichel / index.html
Created July 19, 2012 02:33
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Breaking Bad &middot; CodePen</title>
<!--
Copyright (c) 2012 John Michel, http://codepen.io/johnmichel
Permission is hereby granted, free of charge, to any person obtaining
@johnmichel
johnmichel / LICENSE.txt
Created June 6, 2011 14:07 — forked from fgnass/LICENSE.txt
display a loading spinner
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Felix Gnass <https://github.com/fgnass>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@johnmichel
johnmichel / kod_updater.scpt
Created January 19, 2011 19:12
AppleScript for updating to the latest daily build of Kod.
--Kod.app Daily Updater
--Author: John Michel
--Email: john.michel@gmail.com
--http://www.cowbird.org
--Version 0.1
--set local directory info
set remFile to "Kod.zip"
set locDir to "~/"
set locFile to "Kod.zip"
@johnmichel
johnmichel / states_select.html
Created December 6, 2010 15:22
HTML code for US states
<select name="states">
<option value="" selected="selected">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
#!/usr/bin/ruby -w
require 'rubygems'
require 'net/http'
require 'rexml/document'
include REXML
API_KEY = 'KEY GOES HERE'
LASTFM_USER = 'USERNAME GOES HERE'
@johnmichel
johnmichel / logThis.js
Created September 2, 2010 19:38
Simplifying console.log() calls
/* usage: logThis('pixel[0]',pixel[0]); */
function logThis(name,str) {
console.log(name+': ' + str);
}
@johnmichel
johnmichel / jaibreakme.com.js
Created August 2, 2010 12:30
The brains behind jailbreakme.com
/* via www.jailbreakme.com
pdfs available at http://www.jailbreakme.com/_/
*/
var agent = navigator.userAgent;
var index = agent.indexOf("OS ");
function goto_faq() {
if (!String(window.location).match(/faq/)) {
window.location = "faq.html"