Skip to content

Instantly share code, notes, and snippets.

View jasonlong's full-sized avatar

Jason Long jasonlong

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jasonlong on github.
  • I am jasonlong (https://keybase.io/jasonlong) on keybase.
  • I have a public key whose fingerprint is 9549 0DD9 2EF6 FD66 8067 04DF 6559 C911 6D75 20BF

To claim this, I am signing this object:

function initialize() {
var myLatlng = new google.maps.LatLng(51.501904,-0.115871);
var mapOptions = {
zoom: 13,
center: myLatlng
}
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
var transitLayer = new google.maps.TransitLayer();

Markymarkdown

Blah blah blah.

foo = bar(x, y);
return foo;
Some text here.
And another line.
<% semantic_form_for @post do |form| %>
<% form.inputs do %>
<%= form.input :first_name %>
<%= form.input :last_name %>
<% end %>
<% end %>
<% end %>
<form action="#" method="post" class="formtastic">
<fieldset class="inputs">
<ol>
<li class="string">
<label for="first_name">First Name</label>
<input id="post_first_name" name="post[first_name]" type="text" />
</li>
<li class="string">
<label for="last_name">Last Name</label>
<input id="post_last_name" name="post[last_name]" />
form.formtastic fieldset ol li.error {
/* so that we can absolutely position elements relative to this */
position: relative;
}
form.formtastic fieldset ol li.error img {
/* positioned to the left of the label */
position: absolute;
left: -45px;
top: -10px;
<li class="string error">...
$('form.formtastic fieldset ol li.error').each(function() {
$(this).prepend('<img src="/images/icons/error_marker.png" />');
});
var TT = TT || {};
TT.PAGE_WIDTH = 800;
TT.PAGE_HEIGHT = 500;
TT.PAGE_MIN_WIDTH = 1000;
TT.PAGE_MIN_HEIGHT = 680;
TT.PAGE_MARGIN_LEFT = 32;
TT.PAGE_MARGIN_TOP = 10;
TT.BOOK_WIDTH = 1660;
TT.BOOK_WIDTH_CLOSED = TT.BOOK_WIDTH / 2;
TT.BOOK_HEIGHT = 520;