Skip to content

Instantly share code, notes, and snippets.

044cde91cd51f07fb5ed198db995c1a9a27b87445b3c3d2e8021cc046e71a3542796257b367a50c25192a08e9e58b08e4d220280b0e09088035da9af5a38f1cc90
@justin-c-rounds
justin-c-rounds / .gitignore
Created October 25, 2017 18:47
.gitignore for Unity projects
##################
# Unity ignores:
#
# !!! WARNING !!!
#
# … you MUST convert Unity to using Metafiles *before* you start using this
# .gitignore file, or you WILL lose data!
#
# OS X only:

Keybase proof

I hereby claim:

  • I am justin-c-rounds on github.
  • I am justin_c_rounds (https://keybase.io/justin_c_rounds) on keybase.
  • I have a public key ASC5Sl7eq9gsRMtzlOd7760fsT5N6farwC4JSEnpaM95Bwo

To claim this, I am signing this object:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'update', '-g' ]
2 info using npm@1.4.3
3 info using node@v0.10.26
4 verbose url raw coffee-script
5 verbose url resolving [ 'https://registry.npmjs.org/', './coffee-script' ]
6 verbose url resolved https://registry.npmjs.org/coffee-script
7 info trying registry request attempt 1 at 16:57:22
8 verbose etag "7SFLKJO7TDFY9TNXKV6Y9CEBO"
9 http GET https://registry.npmjs.org/coffee-script
@justin-c-rounds
justin-c-rounds / ahh_zombie.js
Created June 15, 2013 03:49
Attempting to use zombie in node.js to load content into a dynamically created iframe. Doesn't seem to work. I am new to node.js — what am I doing wrong?
browser = require('zombie');
browser = new browser();
browser.visit('https://dl.dropboxusercontent.com/u/625330/iframe/index.html')
document = browser.document;
iframe = document.createElement('iframe');
document.body.appendChild(iframe)
iframe.onload = function () {
console.log('loaded') // this does not happen
};
iframe.src = 'https://dl.dropboxusercontent.com/u/625330/iframe/frame.html';
@justin-c-rounds
justin-c-rounds / main.scss
Created December 5, 2012 17:19 — forked from kevinSuttle/main.scss
Overriding variable scope in Sass
$sans-font-stack: Arial, Helvetica, sans-serif;
.featured, .ads, time, footer, .social, summary, .sidebar, .feed, .intro { font-family: $sans-font-stack; }
@justin-c-rounds
justin-c-rounds / iTemplate.html
Created March 26, 2012 17:21
Template for iOS web applications and games
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- enable "add to home screen" feature -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- set background color of status bar, either default (standard grey), black (black with white text), or black-translucent (like black but partially transparent and content slips beneath instead of starting just below) -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- viewport configuration (see http://developer.apple.com/library/ios/#DOCUMENTATION/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html) for more info -->
<meta name="viewport" content="initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
@justin-c-rounds
justin-c-rounds / gist:2204824
Created March 26, 2012 12:45
Viewport meta tag for iOS
<meta name="viewport" content="initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
@justin-c-rounds
justin-c-rounds / gist:2203870
Created March 26, 2012 08:16
Checking user-agent strings
function checkUserAgent(matches) {
var i;
for (i = 0; i < matches.length; i += 1) {
if (window.navigator.userAgent.indexOf(matches[i]) !== -1) {
return true;
}
}
return false;
}
@justin-c-rounds
justin-c-rounds / drawImage.js
Created November 24, 2011 15:35
Drawing image to canvas
function drawImage(context, sprite) {
context.save();
context.translate(sprite.x, sprite.y);
context.rotate(sprite.rotation * (Math.PI / 180));
context.globalAlpha = sprite.opacity;
context.drawImage(sprite.image, -sprite.pivotX, -sprite.pivotY, sprite.width, sprite.height);
context.restore();
};