View UIButton+Rx.swift
extension Reactive where Base: UIButton {
/// Alternated with button taps to provide
/// a checkbox behavior by `UIButton`
var checked: ControlProperty<Bool> {
let button = self.base
let source: Observable<Bool> = self.tap
.map {[weak button] in
guard let state = button?.isSelected else {
return false
}
View mobile_ci.md

App Center

Pros

  • Easy setup
  • Multitude of different tools included by default
  • Team Management
  • Webhooks
  • Extensible via clones
  • Fast start on builds
View git-sweep
#!/bin/bash
# git-sweep
# Cleans up branches on Origin and verifies that they have already been merged
# USAGE: git sweep
# This must be run from master
git checkout master
# Update our list of remotes
git fetch
git remote prune origin
View wercker.yml
box: node
build:
steps:
- script:
name: Setup Yarn Caching
code: export YARN_CACHE=$WERCKER_CACHE_DIR/yarn
- script:
name: Yarn Install
code: HOME=$YARN_CACHE yarn --no-progress
- script:
View keybase.md

Keybase proof

I hereby claim:

  • I am nanoxd on github.
  • I am nanoxd (https://keybase.io/nanoxd) on keybase.
  • I have a public key ASCyQEMSeoe49Rf__mhySgR6vtqbCMGKgYPikQt0ZLLC9go

To claim this, I am signing this object:

View ViewController.swift
lazy var refreshControl: UIRefreshControl = {
let refreshControl = UIRefreshControl()
refreshControl.addTarget(self, action: "handleRefresh:", forControlEvents: UIControlEvents.ValueChanged)
return refreshControl
}()
@objc func handleRefresh() {
}
View fry.rb
require "formula"
class Fry < Formula
homepage 'https://github.com/terlar/fry'
url 'https://github.com/terlar/fry/archive/0.1.2.tar.gz'
sha1 'b44340ff94689af0699485432189dff87730c619'
head 'https://github.com/terlar/fry.git'
depends_on 'fish'
View shutdown_fix.sh
sudo defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 1
sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 1
sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 1
sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 1
sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 1
View capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')