Every stream has two basic parts
- data-in - A chunk or EOF enters the stream
- data-out - A chunk or EOF leaves the stream
I'm combining both "data" and "end" events since "end" is just a special data packet signifying the end of the stream.
| PLCancelTicketSet *ticketSet = [PLCancelTicketSet ticketSet]; | |
| id<PLCancelTicket> httpTicket = [_client connectionWithRequest: req | |
| bodyData: reqData | |
| timeout: timeout | |
| dispatchContext: [PLDirectDispatchContext context] | |
| block: ^(PLHTTPResponse *response, id <PLInputStream> bodyInputStream, NSError *error) | |
| { | |
| // ... check for error .. | |
| PLLimitingInputStreamFilter *inputFilter = [PLLimitingInputStreamFilter filterWithInputStream: bodyInputStream | |
| maximumBytes: MAX_RESOURCE_DOWNLOAD_BYTES]; |
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| // PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> |
| ### | |
| ### Nicolas Goles tmux config file. | |
| ### | |
| set-option -g default-command "reattach-to-user-namespace -l zsh" | |
| set -g default-terminal "screen-256color" | |
| set -g history-limit 20000 | |
| set-option -ga update-environment ' LANG' | |
| set-option -ga update-environment ' LC_ALL' |
| #!/usr/bin/env bash | |
| # This should work whether you are already in a TMUX session or not... | |
| # Irssi directory is assumed to be in the user's home dir | |
| if [ -z "$TMUX" ] | |
| then | |
| tmux new-session -d -s ircuser | |
| tmux split-window -tircuser -h -l20 | |
| tmux send-keys -tircuser "tmux send-keys -t0 \"irssi\" C-m; \ | |
| tmux send-keys -t0 \"/set nicklist_height \$(stty size | cut -f1 -d' ' -)\" C-m; \ | |
| tmux send-keys -t0 \"/set nicklist_width \$(stty size | cut -f2 -d' ' -)\" C-m; \ |
| [{"name":"Israel","dial_code":"+972","code":"IL"},{"name":"Afghanistan","dial_code":"+93","code":"AF"},{"name":"Albania","dial_code":"+355","code":"AL"},{"name":"Algeria","dial_code":"+213","code":"DZ"},{"name":"AmericanSamoa","dial_code":"+1 684","code":"AS"},{"name":"Andorra","dial_code":"+376","code":"AD"},{"name":"Angola","dial_code":"+244","code":"AO"},{"name":"Anguilla","dial_code":"+1 264","code":"AI"},{"name":"Antigua and Barbuda","dial_code":"+1268","code":"AG"},{"name":"Argentina","dial_code":"+54","code":"AR"},{"name":"Armenia","dial_code":"+374","code":"AM"},{"name":"Aruba","dial_code":"+297","code":"AW"},{"name":"Australia","dial_code":"+61","code":"AU"},{"name":"Austria","dial_code":"+43","code":"AT"},{"name":"Azerbaijan","dial_code":"+994","code":"AZ"},{"name":"Bahamas","dial_code":"+1 242","code":"BS"},{"name":"Bahrain","dial_code":"+973","code":"BH"},{"name":"Bangladesh","dial_code":"+880","code":"BD"},{"name":"Barbados","dial_code":"+1 246","code":"BB"},{"name":"Belarus","dial_code":"+375"," |
| require 'formula' | |
| class Vim < Formula | |
| homepage 'http://www.vim.org/' | |
| url 'https://vim.googlecode.com/hg/', :revision => 'f1f6ac67acd8' | |
| version '7.3.462' | |
| def features; %w(tiny small normal big huge) end | |
| def interp; %w(lua mzscheme perl python python3 tcl ruby) end |
| require 'formula' | |
| class Vim < Formula | |
| homepage 'http://www.vim.org/' | |
| url 'https://vim.googlecode.com/hg/', :revision => 'f1f6ac67acd8' | |
| version '7.3.462' | |
| def features; %w(tiny small normal big huge) end | |
| def interp; %w(lua mzscheme perl python python3 tcl ruby) end |
| require 'formula' | |
| class Vim < Formula | |
| homepage 'http://www.vim.org/' | |
| url 'https://vim.googlecode.com/hg/', :revision => '6c318419e331' | |
| version '7.3.515' | |
| def features; %w(tiny small normal big huge) end | |
| def interp; %w(lua mzscheme perl python python3 tcl ruby) end |
| .highlight { | |
| background-color: #efefef; | |
| padding: 7px 7px 7px 10px; | |
| border: 1px solid #ddd; | |
| -moz-box-shadow: 3px 3px rgba(0,0,0,0.1); | |
| -webkit-box-shadow: 3px 3px rgba(0,0,0,0.1); | |
| box-shadow: 3px 3px rgba(0,0,0,0.1); | |
| margin: 20px 0 20px 0; | |
| overflow: hidden; |