Use Deno to download files from the internet.
deno run --allow-net --allow-write download.ts [url] [filename]
1. Download the recent version from nodejs.org | |
2. Run `msiexec /qn /l* node-log.txt /i node-vX.X.XX-x64.msi` |
import * as models from "models"; | |
import Sequelize from "sequelize"; | |
import fs from "fs"; | |
delete models.default; | |
const sequelize = new Sequelize( | |
'', | |
'', | |
'', { |
@echo off | |
NET SESSION >nul 2>&1 | |
IF %ERRORLEVEL% NEQ 0 ( | |
echo This setup needs admin permissions. Please run this file as admin. | |
pause | |
exit | |
) | |
set NODE_VER=null |
import React, { useCallback, useRef } from 'react'; | |
import { | |
Button, | |
SafeAreaView, | |
ScrollView, | |
StatusBar, | |
View, | |
} from 'react-native'; | |
import CameraRoll from '@react-native-community/cameraroll'; |
import * as models from "models"; | |
import fs from "fs"; | |
for(let model in models) { | |
let attributes = models[model].attributes; | |
for(let column in attributes) { | |
delete attributes[column].Model; | |
delete attributes[column].fieldName; |
I hereby claim:
To claim this, I am signing this object:
const removeEmoji = (str) => str.replace( | |
/([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])|\ud83c[\udde6-\uddff]\ud83c[\udde6-\uddff]|\xF0\x9F\xA6\x84/g, | |
'' | |
) | |
.replace(/\xF0|\x9F|\x98|\x8D|\xF0|\x9F/g, ''); |
dirUp1() { cd ../"$1"; } | |
dirUp2() { cd ../../"$1"; } | |
dirUp3() { cd ../../../"$1"; } | |
dirUp4() { cd ../../../../"$1"; } | |
dirUp5() { cd ../../../../../"$1"; } | |
dirUp6() { cd ../../../../../../"$1"; } | |
alias ..=dirUp1 | |
alias ...=dirUp2 | |
alias ....=dirUp3 |
import axios from 'axios'; | |
import applyConverters from 'axios-case-converter'; | |
import { objectKeysToCamelCase } from 'utils'; | |
export const redirectToLogin = () => { | |
window.location.href = process.env.AUTH_URL; | |
}; | |
export const getAccessToken = () => | |
(JSON.parse(window.localStorage.getItem('auth')) || {}).accessToken; |