A React component to show your gists in a slideshow
$ npm install react-gist-slideshow
| { | |
| "title": "General Knowledge", | |
| "questions": [ | |
| { | |
| "id": 1, | |
| "question": "What year did the iPod Mini come out?", | |
| "answer": "2004", | |
| "points": 1 | |
| },{ | |
| "id": 2, |
| #!/bin/sh | |
| # To enable this hook, rename this file to "pre-commit". | |
| ############################################################################### | |
| # Forked from https://gist.github.com/stuntgoat/8800170 | |
| # Git pre-commit hook for finding and warning about print statements in Ruby | |
| # and JavaScript code. | |
| # |
| // Not all methods in the protocols, but the ones that I find useful the most. (commented out methods are optional.) | |
| // MARK: UITableViewDelegate | |
| extension MyViewController: UITableViewDelegate { | |
| // MARK: Configuring a Table | |
| func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
| return tableView.dequeueReusableCell(withIdentifier: "cell")! | |
| } | |