Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Forms Static : Default</title>
<style>
</style>
</head>
<body>
@burin
burin / form
Created September 7, 2010 18:21
<form action="/account/login" class="login signup" method="post">
<fieldset>
<h2>Login to an account</h2>
<dl>
<dt><label for="loginid">Login</label> <span class="forgot"><a href="/retrievals/new?forgot=login" tabindex="4">Forgot login?</a></span></dt>
<dd><input type="text" id="loginid" name="login" size="40" class="text" tabindex="1"></dd>
<dt><label for="password">Password</label> <span class="forgot"><a href="/retrievals/new?forgot=password" tabindex="5">Forgot password?</a></span></dt>
<dd><input type="password" id="password" name="password" size="40" class="text" tabindex="2"></dd>
</dl>
<div class="buttons">
# usage: ./lomo.sh filename.png
# generate a mask with the vignetting to stick on the image
convert -size 80x60 xc:black \
-fill white -draw 'rectangle 1,1 78,58' \
-gaussian 7x15 +matte lomo_mask.png
mogrify -resize 800x600 -gaussian 0x5 lomo_mask.png
# Change contrast and saturation
convert -contrast -contrast -modulate 100,150 -resize 800x600 $1 $1_lomo.png
require 'ninesixty'
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "_css"
sass_dir = "src"
images_dir = "_img"
javascripts_dir = "_js"
# To enable relative paths to assets via compass helper functions. Uncomment:
#haversine formula
SELECT id, ( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(-122) ) + sin( radians(37) ) * sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance < 25 ORDER BY distance LIMIT 0 , 20;
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Burin Asavesna</author>
<description>Searching for foursquare venues by geographic coordinates</description>
<documentationURL>http://groups.google.com/group/foursquare-api/web/api-documentation</documentationURL>
<sampleQuery>select * from {table} where lat="32.983128" and lng="-97.160746";</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Burin Asavesna</author>
<documentationURL>http://gowalla.com/api/explorer</documentationURL>
<sampleQuery>select * from {table} where lat='32.983128' and lng='-97.160746' and radius='50' and api_key='9c1ab2d4c1f949fa9e254f20e990e0bc';</sampleQuery>
</meta>
<bindings>
<select itemPath="json" produces="JSON">
<urls>
.selector { position: relative; top: 0; left: 0; display: block; float: left; margin:
0; padding: 0; width: 0; height: 0;
text-align: left; text-indent: 0; text-transform: uppercase; overflow:
hidden; line-height: 1em; font-weight: bold; font-variant: italic;
color: #000; background: #777 url(/images/image.png) 0 0 no-repeat; border:
1px solid #000; }
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta http-equiv="content-type" content="text/html; charset=utf-8" >
<title>css3 buttons</title>
<style type="text/css">
body {
background: url(http://helloburin.com/images/stones.png);
$(document).ready(function($) {
var $div = $('<div style="height: 1px; min-height: 2px; position: absolute; top: -100px; left: -100px;"/>').appendTo('body');
$.support.minHeight = !!( $div[0].offsetHeight && $div[0].offsetHeight == 2 );
$div.remove();
});