Skip to content

Instantly share code, notes, and snippets.

View lzcabrera's full-sized avatar
:octocat:

Laura Cabrera lzcabrera

:octocat:
  • Victoria, BC
  • 09:42 (UTC -07:00)
View GitHub Profile
@lzcabrera
lzcabrera / 0_reuse_code.js
Created August 14, 2014 23:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Bearded's Hourly Contract

Date: [[Date of Document]] Between [Our Company] and [Your Company]

Summary

We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.

@lzcabrera
lzcabrera / browserdetect.js
Created March 27, 2012 04:17 — forked from grigs/browserdetect.js
Apple's Browser Detection Script - prettified from http://images.apple.com/global/scripts/browserdetect.js
if (typeof (AC) === "undefined") {
AC = {}
}
AC.Detector = {
getAgent: function () {
return navigator.userAgent.toLowerCase()
},
isMac: function (c) {
var d = c || this.getAgent();
return !!d.match(/mac/i)