|-- workspace
|-- src
|-- App.css
|-- App.js
|-- App.test.js
|-- index.js
|-- serviceWorker.js
|-- components
|-- decorators
|-- workspace
|-- .editorconfig
|-- .gitignore
|-- README.md
|-- craco.config.js
|-- package.json
|-- .storybook
| |-- addons.js
| |-- config.js
Network
tcpdump -ni any port <port #> - show current connections
Search
grep -rnw '/path/to/somewhere/' -e 'pattern' - search for word in directory
List
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
| /* | |
| Redux State | |
| Generic structure: | |
| module: { | |
| data: { | |
| resource: { | |
| byId: {}, | |
| allIds: {}, | |
| current: 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
| /root | |
| /app | |
| /packages | |
| /pages | |
| /home | |
| /signup | |
| /shared_components | |
| /shared | |
| /packages | |
| /models |
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
| $ psql -U postgres | |
| $ use mydb | |
| $ COPY ( | |
| select array_to_json(array_agg(row_to_json(t))) | |
| from ( | |
| select * | |
| from my_table | |
| ) t | |
| ) | |
| TO '/path/to/file/file.json'; |
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
| {% extends "react_template.njk" %} | |
| {% block css %} | |
| <link href="/temp/app/register.css" rel="stylesheet"> | |
| {% endblock %} | |
| {% block js %} | |
| <script src="/temp/app/register.js"></script> | |
| {% endblock %} |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>React Template</title> | |
| <!-- Viewport mobile tag for sensible mobile support --> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| <!-- Default CSS --> | |
| <link rel="stylesheet" href="/css/libs/libs.min.css"> |
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
| module.exports.views = { | |
| engine: { | |
| ext: 'njk', | |
| fn: require("consolidate").nunjucks | |
| }, | |
| layout: 'layout', | |
| partials: false | |
| }; |
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 React from 'react'; | |
| import { storiesOf } from '@storybook/react'; | |
| // 1. import axios and MockAdapter | |
| import axios from 'axios'; | |
| import MockAdapter from 'axios-mock-adapter'; | |
| // 2. create the mock | |
| const mock = new MockAdapter(axios); |