Skip to content

Instantly share code, notes, and snippets.

{
"highlight_line": true,
"word_wrap": true,
"font_size": 11,
"tabSize": 2,
"translateTabsToSpaces": true,
"trim_trailing_white_space_on_save": true,
"draw_white_space": "all",
"rulers": [80],
"ignored_packages": []
@sethillgard
sethillgard / shell: get java method signatures
Created February 1, 2013 00:35
shell: get java method signatures
On the folder where the .class files live:
javap -s -p ClassName
@sethillgard
sethillgard / SyntaxHighlighter for the web
Last active December 13, 2015 17:48
Template code for SyntaxHighlighter
Place this in the <head> tag:
<link href='http://alexgorbatchev.com/pub/sh/2.1.364/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='http://alexgorbatchev.com/pub/sh/2.1.364/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shCore.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCpp.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCSharp.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushCss.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushJava.js' type='text/javascript'></script>
<script src='http://alexgorbatchev.com/pub/sh/2.1.364/scripts/shBrushJScript.js' type='text/javascript'></script>
@sethillgard
sethillgard / gist:4982341
Last active December 13, 2015 22:08
#silentkrakenblog Manager systems for unity3d, a new approach
[RequireComponent(typeof(GameManager))]
[RequireComponent(typeof(ScreenManager))]
[RequireComponent(typeof(AudioManager))]
[RequireComponent(typeof(MissionManager))]
public class Managers : MonoBehaviour
{
private static GameManager gameManager;
public static GameManager Game
{
get { return gameManager; }
@sethillgard
sethillgard / notes.txt
Last active December 16, 2015 09:59
Get color scheme for Solarized on Ubuntu
Taken from: http://michaelheap.com/getting-solarized-working-on-ubuntu/
Make sure ~/.bashrc is loading ~/.dircolors
Disable all colors on ~/.gitconf for this to work correctly for gitdiff
@sethillgard
sethillgard / gist:6bbd96f6027691849c9c353ecb65a3d2
Created January 12, 2023 18:54
Adjust gain for headphones (Jabra 85H) on M1 Mac
#!/bin/bash
while :
do
osascript -e "set volume input volume 100" && sleep 10
done