(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// The MIT License | |
// | |
// Copyright (c) 2010 Juan Batiz-Benet | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
#!/usr/bin/env ruby | |
# Write git commit messages to a log file | |
# | |
# Lincoln A. Mullen | [email protected] | http://lincolnmullen.com | |
# MIT License <http://lmullen.mit-license.org/> | |
# | |
# You will have to install the git gem for this to work: | |
# gem install git | |
# |
#!/bin/bash | |
########################################################################### | |
# Choose your ffmpeg version and your currently-installed iOS SDK version: | |
# | |
VERSION="2.0.2" | |
SDKVERSION="7.0" | |
ARCHS="armv7 armv7s i386" | |
# | |
# |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// | |
// ViewController.m | |
// PopoverPresentationControllerExample | |
// | |
// Created by Bryan Irace on 8/8/14. | |
// Copyright (c) 2014 Bryan Irace. All rights reserved. | |
// | |
#import "CustomCompactPresentationController.h" | |
#import "ViewController.h" |
#!/bin/sh | |
# Example usage | |
# cd into directory that has @3x images | |
# ./whatever-you-name-this.sh | |
# Remember to chmod +x the script | |
resize () { | |
ls *@3x.png | awk '{print("convert "$1" -filter box -resize '$1' "$1)}' | sed 's/@3x/'$2'/2' | /bin/sh | |
} |
// | |
// UILabel+JumpingDots.swift | |
// JumpingDots | |
// | |
// Copyright (c) 2016 Arkadiusz Holko. All rights reserved. | |
// | |
import UIKit | |
import ObjectiveC |
// retries up to 3 times while exponentially backing off with each retry | |
.retryWhen(errors -> | |
errors | |
.zipWith( | |
Observable.range(1, MAX_RETRIES), (n, i) -> i | |
) | |
.flatMap( | |
retryCount -> Observable.timer((long) Math.pow(4, retryCount), TimeUnit.SECONDS) | |
) | |
) |
#!/usr/bin/env zsh #adding this to force silly gist highlighting. REMOVE THIS | |
# ZSH standalone npm install autocompletion. Add this to ~/.zshrc file. | |
_npm_install_completion() { | |
local si=$IFS | |
# if 'install' or 'i ' is one of the subcommands, then... | |
if [[ ${words} =~ 'install' ]] || [[ ${words} =~ 'i ' ]]; then | |
# add the result of `ls ~/.npm` (npm cache) as completion options |
echo sha, contributor, date, message > log.csv | |
git log --date=local --pretty=format:'%h, %an, %ad, "%s"' >> log.csv |