# POST in terminal
$ curl -X POST http://localhost:4000/auth/login -d '{"username": "john", "password": "changeme"}' -H "Content-Type: application/json"curl http://localhost:4000/profile -H "Authorization: Bearer ey..."| print("Hello World") |
| let getGCD = (num1, num2) => { | |
| let gcd = 1; | |
| for(let i=1; i<=Math.max(num1, num2); i++){ | |
| if(num1 % i === 0 && num2 % i === 0){ | |
| gcd = i; | |
| } | |
| } | |
| return gcd; | |
| } |
| docker run -d -p 5432:5432 --name postgres -e POSTGRES_PASSWORD=password postgres |
| # Chapter 1 | |
| Web3.js | |
| ## basic | |
| ### 컨트랙트 | |
| ```solidity | |
| pragma solidity ^0.4.19; |
import {Platform, PermissionsAndroid} from 'react-native';
import {
launchCamera,
launchImageLibrary,
ImagePickerResponse,
} from 'react-native-image-picker';
export const onHandleCamera = async () => {
if (Platform.OS === 'android') {