-
Find IP address
- Check in Network Settings or
-
Enter
ifconfig |grep inetin Terminal -
Enter computer name and port number:
computer-name:port -
e.g.
http://my-macbook-pro.local:1137/path-to-resource.
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
| function importAll(r) { | |
| return r.keys().map(r); | |
| } | |
| const images = importAll(require.context('./', false, /\.(png|jpe?g|svg)$/)); | |
| Source: https://stackoverflow.com/questions/42118296/dynamically-import-images-from-a-directory-using-webpack/42118728 |
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
| [ | |
| [ | |
| { | |
| "civ": "Culture", | |
| "type": "GSV", | |
| "name": "Bora Horza Gobuchul", | |
| "class": "Ocean, later Range", | |
| "note": | |
| "The name chosen by the Mind at the centre of the events of the book, after its rescue and emplacement in a GSV." | |
| }, |
Source: Web Accessibility Checklist
A beginner's guide to web accessibility
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
| // TIL: When you update an object's properties with the Object spread operator, put the updated properties | |
| // before spreading the object so that the property you are updating isn't reassigned to its original value. | |
| const meat = { | |
| options: [ | |
| 'crocodile', | |
| 'wildebeest', | |
| 'ostrich', | |
| 'warthog', | |
| 'antelope', |
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
| // Before | |
| this.renderOptions(item, name, this.menuItems[name]); | |
| renderOptions(item, name, { options, required, onlyOne }) { | |
| options.forEach((option, i) => { | |
| item.innerHTML += ` | |
| <label class="option" for="${option}"> | |
| <input | |
| id="${option}" | |
| name="${name}" |
- Never force push to master
- Never push to master
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
| def prompt | |
| 60.times do | |
| STDOUT.print "\r:" | |
| sleep 0.5 | |
| STDOUT.print "\r " | |
| sleep 0.5 | |
| end | |
| end |