(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.
| # /etc/fstab: static file system information. | |
| # | |
| # Use 'blkid' to print the universally unique identifier for a | |
| # device; this may be used with UUID= as a more robust way to name devices | |
| # that works even if disks are added and removed. See fstab(5). | |
| # | |
| # <file system> <mount point> <type> <options> <dump> <pass> | |
| # /home was on /dev/sda3 during installation |
(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.
| func switchRootViewController(rootViewController: UIViewController, animated: Bool, completion: (() -> Void)?) { | |
| if animated { | |
| UIView.transitionWithView(window, duration: 0.5, options: .TransitionCrossDissolve, animations: { | |
| let oldState: Bool = UIView.areAnimationsEnabled() | |
| UIView.setAnimationsEnabled(false) | |
| self.window!.rootViewController = rootViewController | |
| UIView.setAnimationsEnabled(oldState) | |
| }, completion: { (finished: Bool) -> () in | |
| if completion { | |
| completion!() |
| import Foundation | |
| extension String | |
| { | |
| var length: Int { | |
| get { | |
| return countElements(self) | |
| } | |
| } | |
| xkb_keymap { | |
| xkb_keycodes "evdev+aliases(qwerty)" { | |
| minimum = 8; | |
| maximum = 255; | |
| <ESC> = 9; | |
| <AE01> = 10; | |
| <AE02> = 11; | |
| <AE03> = 12; | |
| <AE04> = 13; | |
| <AE05> = 14; |
| import UIKit | |
| import Foundation | |
| import XCPlayground | |
| XCPSetExecutionShouldContinueIndefinitely() | |
| class RemoteAPI { | |
| func getData(completionHandler: ((NSArray!, NSError!) -> Void)!) -> Void { | |
| let url: NSURL = NSURL(string: "http://itunes.apple.com/search?term=Turistforeningen&media=software") | |
| let ses = NSURLSession.sharedSession() |
| # use UTF8 | |
| set -g utf8 | |
| set-window-option -g utf8 on | |
| # make tmux display things in 256 colors | |
| set -g default-terminal "screen-256color" | |
| set -g default-terminal "screen-256color" | |
| # set scrollback history to 10000 (10k) | |
| set -g history-limit 10000 |
| #!/usr/bin/js | |
| var fs = require('fs'); | |
| var escodegen = require('escodegen'); | |
| var inputFile = process.argv[2] ? process.argv[2] : "/home/puercopop/tmp.js"; | |
| var outputFile = process.argv[3] ? process.argv[3] : "/home/puercopop/a.js"; | |
| var code; | |
| fs.readFile(inputFile, 'utf8', function (err, data) { |
| *.pyc | |
| *.jpe | |
| *.png |