Here's what I do after I do a fresh install of Lion. Things are sorta grouped by type.
- Run Software Update
- Start downloading Xcode
- Disable auto-bright and turn brightness all the way up
- Enable mouse right click
/** | |
IMPORTANT: Requires this version of jquery | |
until 1.3.3 comes out http://gist.github.com/186325 | |
ALSO: This is very dirty still and has not been | |
abstracted for use. It is just solving our immediate problems. | |
Use cases that must pass (and should be tested someday): | |
* Clicking on links updates layout | |
* Click around a bit and then use back/forward buttons |
/** | |
IMPORTANT: Requires this version of jquery | |
until 1.3.3 comes out http://gist.github.com/186325 | |
ALSO: This is very dirty still and has not been | |
abstracted for use. It is just solving our immediate problems. | |
Use cases that must pass (and should be tested someday): | |
* Clicking on links updates layout | |
* Click around a bit and then use back/forward buttons |
// only outputs if console available and does each argument on its own line | |
function log() { | |
if (window && window.console && window.console.log) { | |
var i, len; | |
for (i=0, len=arguments.length; i<len; i++) { | |
console.log(arguments[i]); | |
} | |
} | |
} |
(function($) { | |
// errors is an array of errors | |
// render :json => {:errors => @item.errors.full_messages} | |
function FormErrors(errors) { | |
var self = this, | |
error_count = errors.length; | |
this.html = function() { | |
var html = ''; | |
html += '<div class="errorExplanation" id="errorExplanation">'; |
// REQUIRED VARS. Defaults to a 950px wide, 24-column grid that has 30px wide units and 10px wide | |
// gutters. If you do the fluid grid, then this 950/24/30/10px size will become the maximum size. | |
$grid_type: fixed !default | |
$grid_columns: 24 !default | |
$grid_column_width: 30 !default | |
$grid_gutter_width: 10 !default | |
// GENERATED VARS. You can ignore these. | |
$grid_full_width: $grid_columns * $grid_column_width + $grid_columns * $grid_gutter_width - $grid_gutter_width | |
$grid_column_width_percent: ($grid_column_width / $grid_full_width * 100) * 1% |
model = require "./model" | |
backbone = require "backbone" | |
fs = require "fs" | |
util = require "util" | |
fpath = require "path" | |
exports = module.exports = model.extend | |
initialize: (attributes) -> | |
path = @get('path') | |
<!-- div#suggested-topics-container: got rid of the wrapping div'cos the ol is also a block level element --> | |
<ol id="suggested-topics-list"> | |
<li class="suggested-topic clear-fix"> | |
<!-- div.suggested-topic: got rid of the wrapping div and moved the class to the li since its wrapping the content --> | |
<!-- changes the divs to <p> and <span> just to please the semantic gods --> | |
<p>how to make a rain barrel</p> | |
<!-- div.clear-fix: got rid of the wraping div and move the clearfix to the wrapping <li> since it wraps the floats we are trying the clear --> | |
<span class="trend up">56%</span> | |
<span class="volume">100,000</span> | |
</li> |
var fields = $("input[name='superCoolNamne']").serializeArray(); | |
return (fields > 0) ? true : false; |
Here's what I do after I do a fresh install of Lion. Things are sorta grouped by type.
App.EventEmitter.on("navigate", function(url) { | |
Backbone.history.navigate(url, { | |
trigger: true | |
}); | |
}); | |
App.EventEmitter.trigger('navigate', '/'); |