Skip to content

Instantly share code, notes, and snippets.

Avatar

jasonsee jasonsee

View GitHub Profile
View gist:2852349
$('#position').live('pageshow', function(event, ui) {
google.maps.event.trigger(map, 'resize');
});
$('#map-init').click(function() {
google.maps.event.trigger(map, 'resize');
});
@jasonsee
jasonsee / gist:3868714
Created Oct 10, 2012
Google Maps cheat
View gist:3868714
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0; padding-top: 97px; padding-bottom: 52px; overflow-x: hidden; overflow-y: hidden }
#map_canvas {height: 100% }
#content {margin: 0; padding: 0 }
View gist:3874219
<style>
.product-image {
width: 50px;
height: 50px;
}
.new {
background-image: url(/some/image/new.png);
position: absolute;
View gist:5355629
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:g1nn13/jakarta
[branch "master"]
View gist:5366992
#
# robots-dev.txt
#
# This is an alternate version of robots.txt that is used on dev and staging to prevent indexing of that content.
# .htaccess points users to this version on those hostnames.
#
User-agent: *
Crawl-delay: 10
# Directories
Disallow: /
View compass-retina-sprites.scss
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));
View gist:5491314

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
View gist:5540914
img.bg {
/* Set rules to fill background */
min-height: 100%;
min-width: 1024px;
/* Set up proportionate scaling */
width: 100%;
height: auto;
/* Set up positioning */
View ie8-grid-foundation-4.css
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
View gist:5807350
// Foundation Components
@import "foundation/foundation-global";
@import "foundation/components/global";
@import "foundation/components/grid";
@import "foundation/components/block-grid";