Skip to content

Instantly share code, notes, and snippets.

@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
@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 / .gitignore
Created August 5, 2008 12:06
Twitterific Power User settings
privatefilter.bash
def f(ra,n)
r=0
ra.each {|x| r+=1 if x.include? n}
r
end
# So this is in my controller:
@items = Dir.glob("views/*/*")
# Its contents look like this:
# views/controls/actions.haml
# views/controls/buttons.haml
# views/controls/formForge.haml
# views/controls/hide-actions.haml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en-US' xml:lang='en-US' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>IE float bug</title>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<style type='text/css'>
body {
font-family: Helvetica, sans-serif; }
#container {
# assume we're passing the values from the file below as arguments to the following:
# WTF is name always nil?
def filtered_filenames(paths)
paths ||= []
paths.collect { |path|
path[/.+\/(.+)$/, 1]
}.reject { |name|
name == "index.haml"
}
# cut out of a real app, so a bit bastardised and probably wouldn't run as it's own Sinatra app, but I think it pretty much covers the entire process of Twitter OAuth
require 'sinatra'
gem 'oauth'
require 'oauth/consumer'
module Twitter
class Application < Sinatra::Application
enable :sessions

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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style>
.wrapper { border: 1px solid black; }
.wrapper h3 a { float: right; width: auto; }
</style>
<!--[if lte IE 7]>
<style>