let's do the maximum agile rather than the minimum (pretending by having process-facades)
Agile != meeting hell
Agile is for developing software!
| VWAIT proc near | |
| pusha | |
| mov dx, 3DAh | |
| v1: | |
| in al, dx | |
| and al, 008h | |
| jnz v1 | |
| v2: | |
| in al, dx | |
| and al, 008h |
| # Dependencies: jquery, handlebars.js, ember.js (1.0pre) | |
| App = Em.Application.create() | |
| App.ApplicationView = Em.View.extend | |
| templateName: 'application' | |
| App.ApplicationController = Em.Controller.extend | |
| name: "oembot" | |
| App.Router = Em.Router.extend |
| (function ($) { | |
| var notify, initialize, requestPermission; | |
| notify = function () { | |
| var notification; | |
| if (window.webkitNotifications) { | |
| if (window.webkitNotifications.checkPermission() > 0) { | |
| window.webkitNotifications.requestPermission(this); | |
| } |
| # just a small refresher on some meta stuff - haven't commited all of it to | |
| # muscle memory yet | |
| class NoteBook | |
| attr_accessor :notes | |
| class << self | |
| attr_accessor :subclasses | |
| end |
| File.open("file_with_utf-8_encoding.moo", "r:utf-8").read |
| # method missing fun to fake class methods | |
| class Foo | |
| def tell(something) | |
| puts something | |
| puts yield | |
| end | |
| def self.method_missing(name, *args, &block) |
| # in Combinatory Logic, a Kestrel is a function that returns a constant function | |
| # An example would be to have a return value and injecting some side effects before returning the value | |
| def first_user_notified | |
| user = User.first | |
| user.send_email("foo") | |
| user | |
| end | |
| # => first user |
| # capybara step definition for a quick and dirty date select | |
| # For example: | |
| # When I select "May 7, 2010" as the post "published_on" date | |
| When /^I select "([^"]*)" as the (.+) "([^"]*)" date$/ do |date, model, selector| | |
| date = Date.parse(date) | |
| select(date.year.to_s, :from => "#{model}[#{selector}(1i)]") | |
| select(date.strftime("%B"), :from => "#{model}[#{selector}(2i)]") | |
| select(date.day.to_s, :from => "#{model}[#{selector}(3i)]") | |
| end |
| #!/usr/bin/env ruby | |
| # What's missing from my toolbox? | |
| require "rubygems" | |
| begin | |
| require "term/ansicolor" | |
| rescue LoadError | |
| nil | |
| end |