Skip to content

Instantly share code, notes, and snippets.

View jasonsee's full-sized avatar

jasonsee jasonsee

View GitHub Profile
@jasonsee
jasonsee / vagrant
Last active August 29, 2015 13:56
Fixing Vagrant Up errors
Run this:
sudo /Library/StartupItems/VirtualBox/VirtualBox restart
If you see this:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
@jasonsee
jasonsee / gist:ad877b4695c1795af013
Created May 22, 2014 13:57
Colors for .gitconfig
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
### Keybase proof
I hereby claim:
* I am jasonsee on github.
* I am jasonsee (https://keybase.io/jasonsee) on keybase.
* I have a public key whose fingerprint is 0B15 8AC5 0B2E 5F47 8439 03EC EF07 5870 C089 BE98
To claim this, I am signing this object:
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
var gulp = require('gulp'),
express = require('express'),
sass = require('gulp-sass'),
spawn = require('child_process').spawn,
livereload = require('gulp-livereload');
var EXPRESS_PORT = 4000;
var EXPRESS_ROOT = '_site/'
@jasonsee
jasonsee / gist:a91c1fa3bb6dc4af7146
Created May 12, 2015 19:12
Tips for submitting QA bug tickets

Summary

  • Short description of the issue – a few words up to one sentence

Description

  • A detailed explanation of the issue, not steps to reproduce or the expected outcome – what happened

Steps to Reproduce

  • Step by Step instructions on how to reproduce the issue, not a narrative - begin with how to get the app in the state it was in just before the issue occurred

Expected Outcome

$('#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 October 10, 2012 21:53
Google Maps cheat
<!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 }
<style>
.product-image {
width: 50px;
height: 50px;
}
.new {
background-image: url(/some/image/new.png);
position: absolute;