Skip to content

Instantly share code, notes, and snippets.

View rowanmanning's full-sized avatar
📢
honk

Rowan Manning rowanmanning

📢
honk
View GitHub Profile
@rowanmanning
rowanmanning / demo.html
Last active October 12, 2015 15:08
Simple Konami Code with jQuery
<!DOCTYPE html>
<meta charset="utf-8"/>
<title>↑ ↑ ↓ ↓ ← → ← → B A</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="konami.js"></script>
<script>
// On document ready
@rowanmanning
rowanmanning / list-colors.bash
Created November 29, 2012 09:54
Output all 255 terminal colors (Works on a Mac anyway...)
for i in {0..255}; do echo "$i: $(tput setaf $i)reg $(tput bold)bld$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)und$(tput sgr0)"; done
@rowanmanning
rowanmanning / library.scss
Created January 17, 2013 13:24
Sass defaults example
$foo: 'bar' !default;
// ...do stuff
@rowanmanning
rowanmanning / useful-mac-tools.md
Created March 18, 2013 11:11
Useful Mac tools that I use all the time
@rowanmanning
rowanmanning / wesley-client.html
Created March 21, 2013 07:33
Testing out Wesley (https://github.com/adlawson/wesley) from a simple browser client. You can test this with the command line client which comes bundled with Wesley.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Simple Wesley Client</title>
</head>
<body>
@rowanmanning
rowanmanning / percentages.css
Created March 27, 2013 15:15
Say NO to inline styles in progress bars... ಠ_ಠ
.progress-1 { width: 1%; }
.progress-2 { width: 2%; }
.progress-3 { width: 3%; }
.progress-4 { width: 4%; }
.progress-5 { width: 5%; }
.progress-6 { width: 6%; }
.progress-7 { width: 7%; }
.progress-8 { width: 8%; }
.progress-9 { width: 9%; }
.progress-10 { width: 10%; }
@rowanmanning
rowanmanning / facepalm.coffee
Last active December 17, 2015 20:39
Hubot Animated Facepalm
# Description:
# None
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
@rowanmanning
rowanmanning / README.md
Last active December 21, 2015 01:39
nginx port 80 firewall hack thing

All assumes you're running nginx on port 8080. Change ports to suit your needs.

  1. Copy ipfw.plist into /Library/LaunchDaemons/ipfw.plist
  2. Copy ipfw.conf into /etc/ipfw.conf

If you want this to work straight away, you may need to run:

$ sudo launchctl load /Library/LaunchDaemons/ipfw.plist
@rowanmanning
rowanmanning / Mobile-Site-Design-Email.md
Created August 19, 2013 16:56
An email my mum received

I was shocked when my mum forwarded me the following email. She's very tech-savvy and wouldn't fall for this kind of thing, but it's a worrying indicator that "mobile web design" is now a big enough space that it's being targeted by these kinds of douchebags.

Hi,

I'm Andrew from [company name] and I'm a mobile website specialist. I was browsing your site and noticed you don't have a mobile version for your customers. The website currently makes it hard for your customers to tap the screen to call you and find the relevant information they need quickly.

I'll get straight to the point, I'm just finishing off designing you your own mobile optimised website, just like the one you see here: [link to really awful "mobile" version of another site]. It shows the comparison between a normal desktop site and a mobile optimised site. There are now more customers visiting your website on a mobile phone than a laptop or computer, they have overtook computer use in 2013. If you don't have your website optimised