Skip to content

Instantly share code, notes, and snippets.

@lachlanhardy
lachlanhardy / margherita.md
Created February 12, 2019 04:58
Pizza recipes

Margherita pizza

Ingredients

  1. 2-3 tablespoons of tomato base
  2. 2 handfuls of finely grated pecorino romano (or parmigiano-reggiano)
  3. A handful of roughly grated (or finely sliced) semi-dry mozzarella
  4. Some extra virgin olive oil
  5. A pinch of sea salt
  6. 2-3 sprigs of fresh basil

Objectives -Why talk?

  • define subject area
  • identify topics
  • align topics on timeline (12 months?)
  • break topic into bullet points
  • write pitch/proposal
  • identify opportunities
  • internal company talk
  • meetup / presentation evening
@lachlanhardy
lachlanhardy / awkward.css
Last active August 29, 2015 14:23
Ugly media queries to handle input positioning in iOS
/*
In desktop browsers, an email input and a submit input line up neatly against each other and are the same height.
(there's obviously whole reams of other related code)
In iOS, I've had to nudge the second input to make them align. Any suggestions for making this more elegant or not doing it at all?
*/
/** Device specific stylings (probably) **/
@media screen and
@lachlanhardy
lachlanhardy / gist:57dd258d244ac11d3a9c
Last active August 29, 2015 14:15
Tonight's Israeli salad recipe
# Ingredients
* 2 tomatoes
* 1 large cucumber
* 1 small red onion
* leftover red quinoa & yellow pepper salad
# Preparation
1. Finely dice tomatoes, cucumber, and onion.
2. Mix in salad bowl with yesterday's leftover salad
3. Serve
wget --secure-protocol=TLSv1 --no-check-certificate --user=username@yourdomain.com --password=passwordgoeshere https://mail.google.com/a/yourdomain.com/feed/atom
# to explain
# ActionView lets me write
# pluralize(something.length, "Thing") =>
# "2 Things"
#
# But in this case, I want to separate the number from the text in HTML (to put an icon in between).
# Since I'm using CSS sprites, the easiest way is to wrap the text in a span with a class on it to get the correct image
# Thus:

#How I use Git-SVN

I've just realised that all my git and git-svn posts are on the Atlassian Extranet and thus lost to me. So here's a quick re-write of one of them, for Mike Cravey. Please feel free to fork and add your own recommendations or suggestions:

I've never used TortoiseGit and I barely remember Windows CLI (do they still call it DOS?) commands, but you know OSX shizzlit so I'll just write it as I know it and you can translate ;)

Checkout

I like to clone the whole repo, branches, tags and all. If you're in a rush, do this anyway, then check out just the branch you need right now somewhere else. I find it saves heaps of time and hassle later if you're set up right.

example.html:22comment: Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948)
elemental.js:56undefined undefined ">"
37elemental.js:56undefined undefined undefined
example.html:16text: undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined
elemental.js:56undefined undefined ">"
135elemental.js:56undefined undefined undefined
example.html:16text: undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedund
./configure
Check for program g++ or c++ : /usr/bin/g++
Check for program cpp : /usr/bin/cpp
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Check for program gcc or cc : /usr/bin/gcc
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
$ /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun