gem install tmuxinator
# File: ~/.tmuxinator/project-name.yml
name: project-name
| // from: 30 Seconds of Knowledge | |
| const toKebabCase = str => | |
| str && | |
| str | |
| .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g) | |
| .map(x => x.toLowerCase()) | |
| .join('-'); | |
| toKebabCase('camelCase'); // 'camel-case' |
| // https://stackoverflow.com/questions/29290313/in-ios-how-to-drag-down-to-dismiss-a-modal | |
| class ViewControllerPannable: UIViewController { | |
| var panGestureRecognizer: UIPanGestureRecognizer? | |
| var originalPosition: CGPoint? | |
| var currentPositionTouched: CGPoint? | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
| //var csv is the CSV file with headers | |
| function csvJSON(csv){ | |
| var lines=csv.split("\n"); | |
| var result = []; | |
| var headers=lines[0].split(","); | |
| for(var i=1;i<lines.length;i++){ |
(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.
| /* | |
| * Example of `builder' design pattern. | |
| * Copyright (C) 2011 Radek Pazdera | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, |
| 00 9574 | |
| 01 8827 | |
| 02 8336 | |
| 03 7964 | |
| 04 7143 | |
| 05 6652 | |
| 06 6501 | |
| 07 5922 | |
| 08 5629 | |
| 09 5596 |