(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
class ApplicationController < ActionController::Base | |
# Creates an accessor which is exposed to the view | |
def self.view_accessor(*names) | |
attr_accessor *names | |
helper_method *names | |
end | |
end |
#!/usr/bin/env ruby | |
# Requires ImageMagick: `brew install imagemagick` | |
# Requires version.sh from https://gist.github.com/osteslag/1089407 | |
# | |
# Set RGM_STAMP_VERSION_ON_ICONS=1 in your build settings to enable/disable | |
# stamping on Debug/Relase configurations. | |
# | |
# Make base unstamped versions Icon.base.png, &c. in the source tree. The | |
# script will make stamped versions Icon.png, &c. It relies on Xcode to copy |
#!/usr/sbin/dtrace -s | |
/* Run like: | |
% sudo csh | |
# ./spy.d $PROCESS_ID [$INTERESTING_PROBEPROV] | |
Prints a line of dashes every 5 seconds to delineate different experiments. | |
*/ | |
#pragma D option quiet |
#import <Foundation/Foundation.h> | |
#import <JavaScriptCore/JavaScriptCore.h> | |
#import <objc/runtime.h> | |
const char *_protocol_getMethodTypeEncoding(Protocol *, SEL, BOOL isRequiredMethod, BOOL isInstanceMethod); | |
//@protocol MyProtocol <JSExport> | |
// -(void)one:(id)one; | |
//@end |
(* CREATE JSON EVERNOTE CACHE | |
--Stephen Margheim | |
--11/14/13 | |
--open source | |
Creates cache of Evernote note data in JSON format. | |
Once created, this .txt cache can be read and searched much more quickly than pinging the Evernote app with each script you write. |
// | |
// ARAllViewControllers.m | |
// Artsy | |
// | |
// Created by Orta on 16/02/2014. | |
// Copyright (c) 2014 Art.sy. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> | |
#import "ARClassGetSubclasses.h" |
var express = require('express'), | |
http = require('http'), | |
path = require('path'), | |
child_process = require("child_process"); | |
var app = express(); | |
// Server settings | |
app.set('port', process.env.PORT || 9999); | |
app.use(express.favicon()); |
# Do *not* load any libs here that are *not* part of Ruby’s standard-lib. Ever. | |
desc "Install all dependencies" | |
task :bootstrap do | |
if system('which bundle') | |
sh "bundle install" | |
sh "git submodule update --init" | |
# etc | |
else | |
$stderr.puts "\033[0;31m[!] Please install the bundler gem manually: $ [sudo] gem install bundler\e[0m" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.