Skip to content

Instantly share code, notes, and snippets.

View johnlindquist's full-sized avatar
💭
Eating a taco 🌮

John Lindquist johnlindquist

💭
Eating a taco 🌮
View GitHub Profile
@johnlindquist
johnlindquist / app.js
Created August 24, 2012 19:13
resolve $routeParams bug
//broken
when("/edit/:id", {templateUrl:"/partials/edit.html", controller:"EditCtrl",
resolve:{person:function ($q, crewResource, $routeParams) {
var deferred = $q.defer();
crewResource.get({id:$routeParams.id}, function (results) {
deferred.resolve(results);
alert(results);
})
return deferred.promise;
@johnlindquist
johnlindquist / robot.js
Created December 3, 2012 16:44
Lake Superior
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
@johnlindquist
johnlindquist / gist:4274745
Created December 13, 2012 07:23
capslock vim
<?xml version="1.0"?>
<root>
<item>
<name>Remap </name>
<appendix>OS X doesn't have a Hyper. This maps F19 to Control + Shift + Option + Command.</appendix>
<identifier>usercustom.f19_to_hyper</identifier>
<block>
<modifier_only>ModifierFlag::FN</modifier_only>
.container input:checked + label,
.container input:checked + label:hover{
}
Error: Expected 1 to equal 2.
Error: Expected 1 to equal 2.
at null.<anonymous> (test/someTest.js:14:21)
module office{
export class Chair {
rotate(){
alert("spin!");
}
}
}
var chair = new office.Chair();
chair.rotate();
//java code I'm trying to duplicate
@State(
name="JavaCodeFoldingSettings",
storages= {
@Storage(
file = StoragePathMacros.APP_CONFIG + "/editor.codeinsight.xml"
)}
)
<!doctype html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<?xml version="1.0"?>
<!--
I use VIM for movement CapsLock + H,J,K,L
I use CapsLock and homerow keys to create modifiers
For example:
CapsLock + S = Command
CapsLock + D = Shift

Recording a Great Coding Screencast

The Screen

First and foremost a coding screencast is about the code, and we need to make sure it looks great. There are a few aspects to this that help ensure that is the case.

Resolution

720p is the target resolution. In pixel terms this is 1280x720. We've gotten the best results when we record at 2560x1440 in a HiDPI (pixel double) mode, giving an effective visible resolution of 1280x720, but extremely crisp. This resolution is achievable on 27" monitors and retina MBPs.