-
Create a new issue on GitHub.
-
Drag an image into the comment field.
-
Wait for the upload process to finish.
-
Copy the URL and use it in your Markdown files on GitHub.
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 { createConnection, getConnection, Entity, getRepository } from "typeorm"; | |
| import { PrimaryGeneratedColumn, Column } from "typeorm"; | |
| @Entity() | |
| export class MyEntity { | |
| @PrimaryGeneratedColumn() | |
| id?: number; | |
| @Column() | |
| name?: string; |
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
| for x in *.js; do mv "$x" "${x%.js}.jsx"; done |
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
| watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache |
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
| # checkout, compile & install | |
| git clone https://github.com/facebook/watchman.git | |
| cd watchman/ | |
| git checkout v4.9.0 | |
| sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool | |
| ./autogen.sh | |
| ./configure | |
| make | |
| sudo make install |
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
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |