Skip to content

Instantly share code, notes, and snippets.

View bsrz's full-sized avatar

Ben Sarrazin bsrz

View GitHub Profile
@bsrz
bsrz / gitignore
Last active March 18, 2017 16:10
Default .gitignore for iOS
# Xcode
## Build generated
build/
DerivedData/
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
@bsrz
bsrz / uncrustify.cfg
Last active August 29, 2015 14:13
Default uncrustify config file for Objective C
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.4.3 (252)
#
# Alignment
# ---------
## Alignment

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
import Foundation
class R2D2 {
func beep(completion: (() -> ())?) -> Void {
completion?()
}
}
let r2d2 = R2D2()
@bsrz
bsrz / Rakefile
Created February 16, 2016 19:10
This is the basic starting point of a common Rakefile.
#
# Rakefile
#
# Created by Benoit Sarrazin on Jan 26, 2016.
# Copyright (c) 2016 Berzerker IO. All rights reserved.
#
require 'colorize'
desc "The default task."
@bsrz
bsrz / Gemfile
Created February 22, 2016 14:03
Gemfile
#
# Gemfile
#
# Created by Benoit Sarrazin on Jan 26, 2016.
# Copyright (c) 2016 Berzerker IO. All rights reserved.
#
source "https://rubygems.org"
gem 'cocoapods'
@bsrz
bsrz / dev-tools.md
Last active April 1, 2016 16:03
A description of all the developer tools I use.

Development Tools

  • 1Password
  • Annotate
  • Dash
  • Datum
  • Fluid
  • Marked 2
  • Moom
  • Paw
disabled_rules: # rule identifiers to exclude from running
# - closing_brace
# - colon
# - comma
# - control_statement
# - custom_rules
# - cyclomatic_complexity
# - file_length
# - force_cast
# - force_try
struct ValueObservingOperation<T> {}
var operations = [ValueObservingOperation<Any>]() //
let op1 = ValueObservingOperation<String>()
let op2 = ValueObservingOperation<Int>()
operations.append(op1)
operations.append(op2)