Skip to content

Instantly share code, notes, and snippets.

View matthewpalmer's full-sized avatar

Matthew Palmer matthewpalmer

View GitHub Profile
@matthewpalmer
matthewpalmer / testing.py
Created January 17, 2013 03:44
Testing a gist
print "hey I'm testing"
@matthewpalmer
matthewpalmer / templateKeyRemap4MacBook.xml
Last active December 11, 2015 12:38
Template for xml file for Keyremap4macbook
<item>
<name>SOMENAME</name>
<identifier>private.some_name</identifier>
<autogen>--KeyToKey-- KeyCode::STARTKEY, KeyCode::DESTINATIONKEY</autogen>
</item>
@matthewpalmer
matthewpalmer / remapCapstoCMDR.xml
Created January 23, 2013 03:34
remap Caps Lock to CMD+R for use with keyremap4macbook
<item>
<name>CAPSLOCKTOCMDR</name>
<appendix>this is to remap caps lock to cmdR</append>
<identifier>private.swap_capslock</identifier>
<autogen>
--KeyToKey--
KeyCode::PC_APPLICATION,
KeyCode::R, ModifierFlag::COMMAND_L
</autogen>
</item>
@matthewpalmer
matthewpalmer / MPKeyRemap4MacBookREMAPS.xml
Created January 23, 2013 03:36
My keyremap4macbook xml file
<?xml version="1.0"?>
<root>
<item>
<name>Swap Space and Tab</name>
<identifier>private.swap_space_and_tab</identifier>
<autogen>--KeyToKey-- KeyCode::SPACE, KeyCode::TAB</autogen>
<autogen>--KeyToKey-- KeyCode::TAB, KeyCode::SPACE</autogen>
</item>
<item>
@matthewpalmer
matthewpalmer / gist:4603471
Last active December 11, 2015 12:49
how to hide the bottom bar of embedded Github Gists
.gist .gist-file .gist-meta {
display: none;
}
@matthewpalmer
matthewpalmer / showHiddenFiles
Created February 8, 2013 08:38
Show hidden files on Mac OS X
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
<!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="./font-awesome.min.css">
<title>Matthew Palmer | Portfolio</title>
<style>
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<!-- REPLACE WITH THE CODE FROM YOUR SEGMENT.IO INSTRUCTIONS -->
<script type="text/javascript">
var analytics=analytics||[];analytics.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://":"http://")+"d2dq2ahtl5zl1z.cloudfront.net/analytics.js/v1/"+e+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);var r=function(e){return function(){analytics.push([e].concat(Array.prototype.slice.call(arguments,0)))}},i=["identify","track","trackLink","trackForm","trackClick","trackSubmit","pageview","ab","alias","ready"];for(var s=0;s<i.length;s++)analytics[i[s]]=r(i[s])};
analytics.load("");
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
</head>
<body>
</body>
<script type="text/javascript">
mixpanel.track("MIXPANEL Page viewed");
</script>