This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
objc_library( | |
name = "RxSwift", | |
srcs = glob([ | |
"RxSwift/**/*.swift", | |
]), | |
clang_module_name = "RxSwift", | |
enable_modules = True, | |
visibility = ["//visibility:public"], | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Does something special that ViewController_A wants | |
struct Service_A { | |
func doSomething() { | |
} | |
} | |
/// Does something special that ViewController_B wants | |
struct Service_B { | |
func doSomething() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Promise<T> { | |
} | |
/// These are basically promises that won't terminate until they hit the end | |
public enum MoreOrEnd<T> { | |
public typealias ValueTuple = (T, Promise<MoreOrEnd<T>>) | |
case More(ValueTuple) | |
case End | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo | |
import ( | |
"io" | |
"os" | |
"testing" | |
"time" | |
) | |
func TestReadClosed(t *testing.T) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSData+PIOAdditions.h | |
// PonyExpress | |
// | |
// Created by Michael Lewis on 2/13/13. | |
// | |
// | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Google Chrome [95295] | |
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome | |
Identifier: com.google.Chrome | |
Version: 24.0.1297.0 (1297.0) | |
Code Type: X86 (Native) | |
Parent Process: launchd [128] | |
User ID: 501 | |
Date/Time: 2012-10-22 20:55:37.493 -0700 | |
OS Version: Mac OS X 10.8.2 (12C54) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# how to set up the virtualenv used in this | |
# First move org.lolrus.ipython-notebook.plist to ~/Library/LaunchAgents | |
NOTEBOOK_DIR=${HOME}/notebook | |
brew install zmq | |
which virtualenv > /dev/null || sudo easy_install virtualenv # easiest to install virtualenv this way if you dont have it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import abc | |
import re | |
import argparse | |
class ArgBaseError(Exception): pass | |
def _inject_vals(name, bases, dict): | |
expected_args = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop schema if exists foo cascade; | |
create schema foo; | |
CREATE TABLE foo.object ( | |
id uuid primary key, | |
version int4 not null | |
); | |
CREATE TABLE foo.items_base ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//line simplegram.y:2 | |
package main | |
//line simplegram.y:6 | |
type yySymType struct { | |
yys int | |
core_yystype core_YYSTYPE | |
/* these fields must match core_YYSTYPE: */ | |
ival int | |
str string |
NewerOlder