Skip to content

Instantly share code, notes, and snippets.

Avatar

jasonsee jasonsee

View GitHub Profile
@jasonsee
jasonsee / vagrant
Last active Aug 29, 2015
Fixing Vagrant Up errors
View vagrant
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"]
View gist:ad877b4695c1795af013
[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
View gist:5ae567f3e8af7d467b23
### 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:
View iOS-7-web-app.html
<!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">
View iOS-8-web-app.html
<!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">
View gulpfile.js
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
Tips for submitting QA bug tickets
View gist:a91c1fa3bb6dc4af7146

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

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;