This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Forms Static : Default</title> | |
<style> | |
</style> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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(); | |
}); |