(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.
| // Playground - noun: a place where people can play | |
| import UIKit | |
| var str = "Hello, playground" | |
| enum TimeIntervalUnit { | |
| case Seconds, Minutes, Hours, Days, Months, Years | |
| func dateComponents(interval: Int) -> NSDateComponents { |
(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.
| assets | |
| business | |
| accounts receivable | |
| bank | |
| personal | |
| accounts receivable | |
| bank | |
| cash | |
| gifts | |
| online |
| #!/bin/sh | |
| # Initialising Variables [Enter You Use Name in place of USER] | |
| quotesdir='/home/USER/.config/variety/pluginconfig/quotes/quotes.txt' | |
| # New Quotes: Clean Earlier Quotes | |
| [[ $# -eq 1 && $1 == 'New' ]] && ( `mv -f "$quotesdir" /tmp/quotes_old.txt` ) | |
| # Restore Earlier Quotes | |
| [[ $# -eq 1 && $1 == 'Restore' ]] && ( `mv -f /tmp/quotes_old.txt "$quotesdir"` ) | |
| # Quote Help |
| # For training rest 5 min on compounds, 3-5 minutes on smaller ones | |
| # Training A (first set to failure, second set -10% weight + 1 rep): | |
| # Deadlift - 2x4-5 | |
| # Overhead Press - 1x6-8 | |
| # Weighted Chinup - 2x4-6 | |
| # Chest-Supported Rows - 2x6-8 | |
| # Close-grip chinup - 1x6-10 | |
| # Training B (first set to failure, second set -10% weight + 1 rep): |
| #!/bin/sh | |
| echo Install all AppStore Apps at first! | |
| # no solution to automate AppStore installs | |
| read -p "Press any key to continue... " -n1 -s | |
| echo '\n' | |
| echo Install and Set San Francisco as System Font | |
| ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
| echo Install Homebrew, Postgres, wget and cask | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
| require 'rails_admin/config/fields/base' | |
| module RailsAdmin | |
| module Config | |
| module Fields | |
| module Types | |
| class Datetime < RailsAdmin::Config::Fields::Base | |
| def value | |
| value_in_default_time_zone = bindings[:object].send(name) |
| Date | Details | Debit | Credit | Balance | |
|---|---|---|---|---|---|
| 07/12/2012 | LODGMENT 529898 | 10.0 | 131.21 | ||
| 07/12/2012 | PAYMENT | 5 | 126 |
| #import <Foundation/Foundation.h> | |
| @interface MyCalendar : NSObject | |
| + (void)requestAccess:(void (^)(BOOL granted, NSError *error))success; | |
| + (BOOL)addEventAt:(NSDate*)eventDate withTitle:(NSString*)title inLocation:(NSString*)location; | |
| @end |