yarn init -y
yarn add -D parcel posthtml-img-autosize posthtml-include posthtml-modules autoprefixer rimraf
touch .posthtmlrc.js
module.exports = { plugins: { "posthtml-img-autosize": { root: "./assets/images"
This file contains 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
{ | |
"Component": { | |
"prefix": "comp", | |
"body": [ | |
"import * as React from 'react';", | |
"import { View, StyleSheet, ViewStyle, Text } from 'react-native';", | |
"", | |
"interface ComponentProps {}", | |
"interface ComponentState {}", | |
"interface Styles {", |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
echo What is your Project name? | |
read PROJECT_NAME | |
# Basic template create, rnfb install, link | |
# \rm -fr $PROJECT_NAME | |
# echo "Testing react-native current + react-native-firebase v6.current + Firebase SDKs current" |
This file contains 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
const { | |
applyConfigForLinkedDependencies, | |
} = require("@carimus/metro-symlinked-deps"); | |
const path = require('path'); | |
module.exports = applyConfigForLinkedDependencies( | |
{ | |
watchFolders: [path.resolve(__dirname, 'node_modules')], | |
transformer: { | |
getTransformOptions: async () => ({ |
This file contains 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 { Player, on, setTimeout, onServer, log, clearTimeout, emit, emitServer } from 'alt-client'; | |
import game from 'natives'; | |
onServer("Bus:From:Airport", async (vehicle) => { | |
const driverStart = { | |
x: -1016.289, | |
y: -2759.372, | |
z: 14.165, | |
model: 's_m_y_airworker', | |
heading: 45.0, |
This file contains 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
// https://gist.github.com/FDiskas/3dd4163d23bbdb77b54852b8cfb71720 | |
export const enum NativeKey { | |
InputNextCamera = 0, // V | |
InputLookLr = 1, // MOUSE RIGHT | |
InputLookUd = 2, // MOUSE DOWN | |
InputLookUpOnly = 3, // (NONE) | |
InputLookDownOnly = 4, // MOUSE DOWN | |
InputLookLeftOnly = 5, // (NONE) | |
InputLookRightOnly = 6, // MOUSE RIGHT | |
InputCinematicSlowmo = 7, // (NONE) |
OlderNewer