I hereby claim:
- I am Sidnicious on github.
- I am sidney (https://keybase.io/sidney) on keybase.
- I have the public key with fingerprint 5E68 5E60 EB87 3365 4DCB 0057 0DAA 1A4A B1D8 8291
To claim this, I am signing this object:
let healthStore = HKHealthStore() |
import UIKit | |
// Notes: | |
// - You must explicitly weak link to UIKit to support iOS 7 | |
// - Action sheets on iOS 7 only show a title | |
func showAlert(viewController: UIViewController, style: UIAlertControllerStyle = .Alert, title: String? = nil, message: String? = nil, sourceView: UIView? = nil, completion: (() -> ())? = nil, buttons: (UIAlertActionStyle, String, (() -> ())?)...) { | |
if (NSClassFromString("UIAlertController") != nil) { | |
// iOS 8+ |
I hereby claim:
To claim this, I am signing this object:
EVERYTHING = $(patsubst %.c,%,$(wildcard *.c)) | |
CC=clang | |
CCFLAGS +=\ | |
-std=c99\ | |
-DDEBUG\ | |
-g\ | |
-Wall\ | |
-Wpedantic\ | |
-Werror |
import json, subprocess, hashlib | |
from zipfile import ZipFile | |
class PushPackage(object): | |
def __init__(self, filename): | |
self.zfile = ZipFile(filename, 'w') | |
self.manifest = {} | |
def __enter__(self): |
#include <team-functional.hpp> | |
#include <iostream> | |
using namespace std; | |
using namespace team; | |
int slowSquare(int a) { | |
usleep(100 * (5 - a)); | |
return a * a; | |
} |
#include <team/bahn.h> | |
const char *ip = "127.0.0.1"; | |
const int port = 8080; | |
using namespace std; | |
using namespace team; | |
int main() { |
#include <team/net.h> | |
#include <stdio> | |
using namespace std; | |
using namespace async; | |
const char *ip = "127.0.0.1"; | |
const int port = 8080; | |
void amain() { |
tamed template <typename T1> | |
typename event<T1>::ptr tvoid_t<T1>::run(event<>::ptr in) { | |
tvars { T1 t; typename event<T1>::ptr out; } | |
DEFAULT_RETURN { return out; } | |
twait { out = mkevent(t); } | |
if (in) in->trigger(); | |
} |
tamed template <typename T1> | |
typename event<T1>::ptr tvoid_t<T1>::run(event<>::ptr in) { | |
tvars { T1 t; } | |
DEFAULT_RETURN { return mkevent(t); } | |
twait { } | |
if (in) in->trigger(); | |
} |