Skip to content

Instantly share code, notes, and snippets.

@michaelroper
michaelroper / tailwind-palettte-app.json
Last active January 19, 2024 23:19
Tailwind CSS default colors in Palettte.app's JSON format
[
{
"paletteName": "gray",
"swatches": [
{
"name": "100",
"color": "#f7fafc"
},
{
"name": "200",
@michaelroper
michaelroper / keybase.md
Created April 3, 2014 08:49
keybase.md

Keybase proof

I hereby claim:

  • I am michaelroper on github.
  • I am michaelroper (https://keybase.io/michaelroper) on keybase.
  • I have a public key whose fingerprint is 36F6 DB95 3AB0 31CA 1CC4 AA34 CF04 6A49 85B7 ADD0

To claim this, I am signing this object:

@michaelroper
michaelroper / layout-3-3-3-3.ascx
Created June 14, 2012 07:40
Sitefinity v5 page layout templates using the Twitter Bootstrap grid columns.
<%@ Control Language="C#" %>
<div runat="server" class="row">
<div runat="server" class="sf_colsOut">
<div runat="server" class="sf_colsIn span3"></div>
<div runat="server" class="sf_colsIn span3"></div>
<div runat="server" class="sf_colsIn span3"></div>
<div runat="server" class="sf_colsIn span3"></div>
</div>
</div>
@michaelroper
michaelroper / uri.js
Created April 24, 2012 01:07 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@michaelroper
michaelroper / gist:2410555
Created April 18, 2012 02:03
github for mac - pegging cpu and spewing errors in console
18/04/12 9:55:02 AM [0x0-0x2282280].com.github.GitHub[80530] 2012-04-18 09:55 GitHub[80530] (CarbonCore.framework) process_dir_events: kevent returned -1 (Bad file descriptor)
18/04/12 9:55:02 AM [0x0-0x2282280].com.github.GitHub[80530] 2012-04-18 09:55 GitHub[80530] (CarbonCore.framework) process_dir_events: kevent returned -1 (Bad file descriptor)
18/04/12 9:55:02 AM [0x0-0x2282280].com.github.GitHub[80530] 2012-04-18 09:55 GitHub[80530] (CarbonCore.framework) process_dir_events: kevent returned -1 (Bad file descriptor)
18/04/12 9:55:02 AM [0x0-0x2282280].com.github.GitHub[80530] 2012-04-18 09:55 GitHub[80530] (CarbonCore.framework) process_dir_events: kevent returned -1 (Bad file descriptor)
18/04/12 9:55:02 AM [0x0-0x2282280].com.github.GitHub[80530] 2012-04-18 09:55 GitHub[80530] (CarbonCore.framework) process_dir_events: kevent returned -1 (Bad file descriptor)
18/04/12 9:55:02 AM [0x0-0x2282280].com.github.GitHub[80530] 2012-04-18 09:55 GitHub[80530] (CarbonCore.framework) process_dir_events: kevent re
#!/bin/bash
# emailserve.sh
# for running both serve and livereload from a single command
# so I can do easy previews when designering emails
cd ~/Sites/EmailTemplates/
serve 5000 &
livereload &
echo 'Starting serve and livereload...'
@michaelroper
michaelroper / CM img tag with alt desc
Created February 8, 2011 02:45
Using the <$imagesrc$> tag in Campaign Monitor templates currently doesn't give you the ability to add an ALT description. I found a hack-ish way to add one, by using a <$title$> tag to provide the ALT text.. note: make sure it's the last attribute on the
<img src="<$imagesrc link='true'$>" width="640" alt="<$title link='false' default='Enter image description'$>" />