(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.
module Producers | |
class DataModelA | |
... # Some ruby magic to return the correct subclass for a state | |
def page | |
@page ||= Nokogiri.new(URL) | |
end | |
end | |
class SpecificState < DataModelA |
- (void)addSubview:(UIView *)view { | |
// For the system-supplied reorder control, we want to eliminate the default | |
// image and instead use our own. In order to achieve this, we need to use | |
// the somewhat hacky way of confirming that this is indeed a system-created | |
// UITableViewCellReorderControl by checking the class name. Icky? Icky. | |
NSArray *relevantClassnameParts = @[@"ReorderControl"]; | |
NSString *viewClassname = NSStringFromClass([view class]); | |
for (NSString *classname in relevantClassnameParts) { | |
if (![viewClassname containsString:classname]) { |
extension NSTimer { | |
/** | |
Creates and schedules a one-time `NSTimer` instance. | |
- Parameters: | |
- delay: The delay before execution. | |
- handler: A closure to execute after `delay`. | |
- Returns: The newly-created `NSTimer` instance. | |
*/ |
(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.
# 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" |
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()); |
// | |
// 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" |
(* 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. |
#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 |