-
Download the NSLog pre-commit hook from
https://gist.github.com/plu/4124580
-
Copy the
pre-commit
file toYOUR_PROJECT/.git/hooks/pre-commit
-
Make the hook executable by running
chmod +x .git/hooks/pre-commit
CGRect frame = CGRectMake(0, 0, 300, 300); | |
NSURL* videoURL = [NSURL URLWithString:@"https://devimages.apple.com.edgekey.net/resources/http-streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8"]; | |
CVUMoviePlayerView* moviePlayerView = [[CVUMoviePlayerView alloc] initWithFrame:frame videoURL:videoURL]; | |
[self.view addSubview:moviePlayerView]; |
[NON-repeating event: r ] | |
{0 : 31178732, 1 : 33620352, 2 : 10, 3 : 0, 4 : 0, 5 : 0, 6 : 0, 7 : 0, 8 : 0, 9 : -2028929489, 10 : 59081, 11 : 0, 12 : 0, 13 : 9936, 14 : 162, 15 : 7471125, 16 : 16580722, 17 : 7471105, } | |
[repeating event: r ] | |
{0 : 31178732, 1 : 33620352, 2 : 10, 3 : 0, 4 : 0, 5 : 0, 6 : 0, 7 : 0, 8 : 0, 9 : -1528719789, 10 : 59081, 11 : 0, 12 : 0, 13 : 9936, 14 : 162, 15 : 7471125, 16 : 16580722, 17 : 7471105, } | |
[repeating event: r ] | |
{0 : 31178732, 1 : 33620352, 2 : 10, 3 : 0, 4 : 0, 5 : 0, 6 : 0, 7 : 0, 8 : 0, 9 : -1445174829, 10 : 59081, 11 : 0, 12 : 0, 13 : 9936, 14 : 162, 15 : 7471125, 16 : 16580722, 17 : 7471105, } | |
[repeating event: r ] |
#!/bin/bash | |
set -u | |
# Setup architectures, library name and other vars + cleanup from previous runs | |
ARCHS=("armv7s" "armv7" "i386") | |
SDKS=("iphoneos" "iphoneos" "macosx") | |
LIB_NAME="openssl-1.0.1e" | |
TEMP_LIB_PATH="/tmp/${LIB_NAME}" | |
LIB_DEST_DIR="lib" | |
HEADER_DEST_DIR="include" |
# Make a directory in which to run the build | |
mkdir ~/openssl-ios | |
cd ~/openssl-ios | |
# Download the openssl source (verify the file before using it in production!) | |
curl -O http://www.openssl.org/source/openssl-1.0.1e.tar.gz | |
# Download the openssl iOS build script | |
curl -O https://raw.github.com/Raphaelios/raphaelios-scripts/master/openssl/build-openssl.sh |
#!/bin/bash | |
set -u | |
# Setup architectures, library name and other vars + cleanup from previous runs | |
ARCHS=("armv7" "armv7s" "i386") | |
SDKS=("iphoneos" "iphoneos" "macosx") | |
LIB_NAME="libevent-2.0.21-stable" | |
TEMP_DIR="$(pwd)/tmp" | |
TEMP_LIB_PATH="$(pwd)/tmp/${LIB_NAME}" |
#ifndef __mrt_timer_h__ | |
#define __mrt_timer_h__ | |
#include <sys/time.h> | |
#define mrt_timer_setup() \ | |
struct timeval mrt_te; \ | |
time_t mrt_start = 0, mrt_end = 0; | |
#define mrt_timer_start() \ |
dd if=/dev/urandom bs=1 count=2 2>/dev/null | hexdump -v -e '1/1 "%u"'; echo; |
I hereby claim:
To claim this, I am signing this object:
class Annotator(object):
def __init__(self, nlp, **kwargs):
# `nlp` is a spaCy Language object
self.nlp = nlp
def annotate(self, agr, rules):
""" `agr` (short for Agreement) is a tree-like data structure.
A node of the tree (class `Element`) has a `tag` (e.g. PREAMBLE, SECTION) and may have