This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| library(purrr) | |
| library(rstan) | |
| ### Defining the data ### | |
| ######################### | |
| bumblebees <- c(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, | |
| 0, 0, 1, 0, 0, 0, 0, 0, 0) | |
| toddler_steps <- c(26, 16, 37, 101, 12, 122, 90, 55, 56, 39, 55, 15, 45, 8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| CASE WHEN TipPercentage < 0 THEN 'No Tip' | |
| WHEN TipPercentage BETWEEN 0 AND 5 THEN 'Less but still a Tip' | |
| WHEN TipPercentage BETWEEN 5 AND 10 THEN 'Decent Tip' | |
| WHEN TipPercentage > 10 THEN 'Good Tip' | |
| ELSE 'Something different' | |
| END AS TipRange, | |
| Hr, | |
| Wk, | |
| TripMonth, |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Backup script for trakt.tv (API v2). | |
| */ | |
| // create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app | |
| $apikey = "CLIENT_API_KEY"; | |
| $username = "YOUR_USERNAME"; |
(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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MasterViewController: UIViewController, UINavigationControllerDelegate { | |
| init() { | |
| super.init(nibName: nil, bundle: nil) | |
| } | |
| } | |
| extension MasterViewController: UITableViewDataSource { | |
| func tableView(tableView: UITableView!, numberOfRowsInSection section: Int) -> Int { |
NewerOlder