(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.
(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.
#!/bin/bash | |
# | |
# This script backups an OS X system to an external volume, effectively | |
# cloning it. It is based on [0], [1] and [2] for OS X and [3] and [4] for | |
# Linux. One could also use commercial tools like SuperDuper! or Carbon Copy | |
# Cloner. The latter website has an interesting list[5] on what files to | |
# exclude when cloning. | |
# | |
# Exclusions (from CCC[5]), see rsync_excludes_osx.txt | |
# |
mod = angular.module('myApp.services', ['ngResource']); | |
mod.factory('UserData', ($resource,$location) -> | |
return $resource('http://' + $location.host() + '/Services/userinfo') | |
) | |
.factory('UserDataStore', ($resource, $location, UserData, $q, $rootScope) -> | |
GetUserDataFromXhr = () -> | |
deferred = $q.defer() | |
UserData.get((userdata) -> | |
deferred.resolve userdata.userInfo |
// We all know how to use mixins, right? | |
@mixin kung { | |
background: green; | |
color: yellow; | |
} | |
@mixin foo { | |
background: orange; | |
color: red; |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
// | |
// RoundedRectLabel.h | |
// | |
#import <UIKit/UIKit.h> | |
@interface CountLabel : UILabel { | |
NSInteger cornerRadius; | |
UIColor *rectColor; | |
} |