git --version
node --version
| interface UseTableRowProps<D extends object> { | |
| cells: Array<Cell<D>> | |
| } | |
| interface ColumnInstance<D extends object = {}> { | |
| width: string, | |
| height: string | |
| } | |
| interface Row<D extends object = {}> extends UseTableRowProps<D> { } |
| version: '3.6' | |
| # volumes: | |
| # zookeeper-data: | |
| # driver: local | |
| # zookeeper-log: | |
| # driver: local | |
| # kafka-data: | |
| # driver: local |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| ) | |
| type userAccount struct { | |
| FirstName string `json:"firstName"` | |
| LastName string `json:"lastName"` |
| const condition = (funcExec) => (props) => { | |
| return funcExec.if(props) ? funcExec.then(props) : funcExec.else(props) | |
| } | |
| const priceChangeUpdate = (rating) => rating > 3; | |
| const dataRatingCar = (car) => { | |
| const carDB = { | |
| 'honda' : () => 5, |
| // ESM syntax is supported. | |
| import mongoose from "mongoose"; | |
| import { MongoMemoryReplSet , MongoMemoryServer } from "mongodb-memory-server"; | |
| const replSet = new MongoMemoryReplSet(); | |
| const mongod = new MongoMemoryServer(); | |
| var dbService = null | |
| const startMongo = async () => { | |
| console.log('start mongodb') |
| // Config timezone | |
| #sudo apt-get install ntp | |
| #sudo apt-get update | |
| #sudo timedatectl set-timezone Asia/Bangkok | |
| #sudo timedatectl set-ntp yes | |
| #service ntp restart | |
| #service timedatectl restart | |
| #timedatectl status |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.js"></script> | |
| </head> |
| import React, { Component } from 'react'; | |
| import { Text, View, FlatList, Dimensions, Button, StyleSheet } from 'react-native'; | |
| const { width } = Dimensions.get('window'); | |
| const style = { | |
| justifyContent: 'center', | |
| alignItems: 'center', | |
| width: width, | |
| height: 50, |