In the beginning, there were GIFs created simply using Apple's CoreGraphics library. This was called the "None" algorithm.
Then, eventually, dithering was discovered, but not fully understood.
queue = Dispatch::Queue.new "com.helloresolven.booth.queue" | |
output.setSampleBufferDelegate self, queue:queue | |
yields... | |
2012-05-04 12:53:14.275 booth[91714:10703] *** Terminating app due to uncaught exception 'TypeError', reason: 'capture_view_controller.rb:44:in `setup_session': expected instance of Pointer, got `com.helloresolven.booth.queue' (Dispatch::Queue) (TypeError) | |
from capture_view_controller.rb:9:in `viewDidLoad' | |
queue = Dispatch::Queue.new "com.helloresolven.booth.queue" | |
ptr = Pointer.new(:object) |
##How Homakov hacked GitHub and the line of code that could have prevented it
Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.
If you'd like to follow me on twitter my handle is @peternixey
Pod::Spec.new do |s| | |
s.name = 'GRMustache' | |
s.version = '1.11.2' | |
s.license = 'MIT' | |
s.summary = 'Objective-C implementation of the {{ mustache }} template engine, for both MacOS Cocoa and iOS. ' | |
s.homepage = 'https://github.com/groue/GRMustache' | |
s.author = { 'Gwendal Roué' => '' } | |
s.source = { :git => 'https://github.com/groue/GRMustache.git', :tag => '1.11.2' } |
Pod::Spec.new do |spec| | |
spec.name = 'JRSwizzle' | |
spec.version = '1.0' | |
spec.source = { :git => 'git://github.com/rentzsch/jrswizzle.git', :commit => '57f9d1bf7b' } | |
spec.source_files = 'JRSwizzle.{h,m}' | |
spec.clean_paths = 'JRSwizzleTest' | |
end |
// | |
// HRAppDelegate.m | |
// ColorTableTest | |
// | |
// Created by Patrick Rogers on 1/17/12. | |
// Copyright (c) 2012 Hello Resolven. All rights reserved. | |
// | |
#import "HRAppDelegate.h" |
set :rails_env, :production | |
set :unicorn_binary, "/usr/bin/unicorn" | |
set :unicorn_config, "#{current_path}/config/unicorn.rb" | |
set :unicorn_pid, "#{current_path}/tmp/pids/unicorn.pid" | |
namespace :deploy do | |
task :start, :roles => :app, :except => { :no_release => true } do | |
run "cd #{current_path} && #{try_sudo} #{unicorn_binary} -c #{unicorn_config} -E #{rails_env} -D" | |
end | |
task :stop, :roles => :app, :except => { :no_release => true } do |
set :rails_env, :production | |
set :unicorn_binary, "/usr/bin/unicorn" | |
set :unicorn_config, "#{current_path}/config/unicorn.rb" | |
set :unicorn_pid, "#{current_path}/tmp/pids/unicorn.pid" | |
namespace :deploy do | |
task :start, :roles => :app, :except => { :no_release => true } do | |
run "cd #{current_path} && #{try_sudo} #{unicorn_binary} -c #{unicorn_config} -E #{rails_env} -D" | |
end | |
task :stop, :roles => :app, :except => { :no_release => true } do |
class Object | |
def self.attr_indexed var, custom_methods = {} | |
key = var.to_s | |
capitalized_key = key.capitalize[0] + key[1..-1] | |
methods = { | |
:size => lambda { instance_variable_get("@#{var}").size }, | |
:at => lambda { |idx| instance_variable_get("@#{var}")[idx] }, | |
:insert => lambda { |obj, idx| instance_variable_get("@#{var}").insert(idx, obj) }, | |
:delete_at => lambda { |idx| instance_variable_get("@#{var}").delete_at(idx) } |