Checkout
git checkout --orphan latest_branch
Add all the files
git add -A
Commit the changes
rsync -avzhe -e "ssh -i KEY_LOCATION_PEM" LOCAL_DIR SERVER_USER@SERVER_IP:SERVER_DIR |
@ECHO OFF | |
set /P project_name="Enter project name: " | |
IF [%project_name%] != [] ( | |
npx react-native init %PROJECT_NAME% --template @ui-kitten/template-ts | |
cd %project_name% | |
yarn add @react-navigation/native | |
yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view | |
yarn add @react-navigation/stack |
const AssetSchema = new Schema({ | |
assetTag: { type: String, required: true }, | |
assetName: { type: String, required: true }, | |
assetDescription: { type: String, required: true }, | |
assetCatNo: { type: String, required: true }, | |
assetStatus: { type: String }, | |
storageLatitude: { type: String }, | |
storageLongitude: { type: String}, | |
assetSerialNumber: { type: String}, | |
assetType: { type: String }, |
sudo chown -R $USER:$USER /the/directory/here | |
sudo chmod -R 777 /the/directory/here |
const express = require("express"); | |
const multer = require("multer"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const port = process.env.PORT || 3000; | |
const app = express(); | |
const upload = multer({ | |
dest: "./uploads", | |
}); |
Checkout
git checkout --orphan latest_branch
Add all the files
git add -A
Commit the changes
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
/** | |
* AUTHOR: PAUL OBUNGA <[email protected] | |
* BUS SEAT GENERATOR | |
* TODO: Take care of odd seat numbers | |
* | |
*/ | |
let busOptions = { | |
license: "UBA 100L", | |
capacity: 72, | |
columns: 3, |
let array = []; | |
const generateNumberInRange = (min, max) => { | |
let number = Math.floor(Math.random() * (max - min + 1)) + min; | |
return number; | |
} | |
//Generate the random array to work with |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Place Autocomplete</title> | |
<style> | |
#map { | |
width: 500px; | |
max-height: 400px; | |
height: 100%; |