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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| PROJECT_NAME=${1:-} | |
| if [ -z "$PROJECT_NAME" ]; then | |
| echo "Usage: ./bootstrap.sh <project-name>" | |
| exit 1 | |
| fi |
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
| Xcode: | |
| Show Toolbar: Shift + Command + T | |
| Hide Toolbar: Shift + Command + T | |
| Sketch: | |
| Show Toolbar: Shift + Command + T | |
| Hide Toolbar: Shift + Command + T | |
| Show Inspector: Alt(Option) + Command + 0 | |
| Show Layers List: Command + 0 |
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
| print(String(data: try! JSONSerialization.data(withJSONObject: dict, options: .prettyPrinted), encoding: .utf8)!) |
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
| # Your keymap | |
| # | |
| 'body': | |
| 'ctrl-tab': 'pane:show-next-item' | |
| 'alt-cmd-up': 'pane:split-up' | |
| 'alt-cmd-down': 'pane:split-down' | |
| 'shift-cmd-L': 'application:open-dev' | |
| 'shift-cmd-0': 'window:reset-font-size' | |
| '.platform-darwin': |
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
| [ | |
| { | |
| "id": "5f9e815c8e25c6bf8560cafb", | |
| "start_date": "2020-12-15T11:00:00 -01:00", | |
| "end_date": "2020-12-15T12:00:00 -01:00", | |
| "name": "TOYLETRY", | |
| "friends": [ | |
| { | |
| "id": 0, | |
| "name": "Patrick Smith", |
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
| [ | |
| { | |
| "_id": "5a4f4635c8e945ce7d435ae2", | |
| "index": 0, | |
| "guid": "c39233a4-b90f-4cf4-a759-eb378b7671e6", | |
| "isActive": false, | |
| "balance": "$2,632.67", | |
| "picture": "http://placehold.it/32x32", | |
| "age": 30, | |
| "eyeColor": "blue", |
This file has been truncated, but you can view the full file.
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
| { | |
| "size": 5957, | |
| "items": [ | |
| { | |
| "image": { | |
| "scalable": true, | |
| "width": 1600, | |
| "type": "GENERAL", | |
| "url": "2017/9/vertical-5/30/5/105/424/_1263219766.jpg", |
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
| import UIKit | |
| import PlaygroundSupport | |
| class CustomLabel: UILabel { | |
| var topInset: CGFloat = 2.25 | |
| var bottomInset: CGFloat = 2.25 | |
| override func drawText(in rect: CGRect) { | |
| let insets = UIEdgeInsets(top: topInset, left: 0, bottom: bottomInset, right: 0) | |
| super.drawText(in: UIEdgeInsetsInsetRect(rect, insets)) |
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
| // When you are in the diff page of a GitHub PR | |
| // And want to hide all the Pods/* files in that diff page, use this: | |
| // Paste that in your Web Inspector's console | |
| var nodes = document.evaluate("//div[@class='file-header' and starts-with(@data-path,'Carthage/')]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ); | |
| for(i=0; i<nodes.snapshotLength; ++i) { | |
| nodes.snapshotItem(i).parentNode.hidden = true | |
| } | |
| // Or even better, create a bookmark with this code for easy quick access: |
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
| { | |
| "feed": { | |
| "author": { | |
| "name": { | |
| "label": "iTunes Store" | |
| }, | |
| "uri": { | |
| "label": "http://www.apple.com/itunes/" | |
| } | |
| }, |
NewerOlder