Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
import axios, { AxiosError, AxiosResponse } from 'axios'; | |
import token from './somewhere'; | |
interface Todo { | |
id: string; | |
title: string; | |
} | |
interface User { | |
id: string; |
// Expo SDK41 | |
// expo-blur: ~9.0.3 | |
import React, { useRef } from 'react'; | |
import { | |
Animated, | |
Image, | |
ImageBackground, | |
ScrollView, | |
StatusBar, |
import useFetch from "useFetch"; | |
const { response, isLoading } = useFetch({ | |
api: identityApi, | |
url: AUTH_MEMBER_TRANSACTIONS(requestOptions), | |
config: JSON.stringify({ requireAuthentication: true }), | |
}); |
platform :ios, '9.1' | |
abstract_target 'Foo' do | |
# RN related | |
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
'Core', | |
'CxxBridge', | |
'RCTAnimation', | |
'RCTBlob', | |
'RCTText', |
#!/bin/bash | |
defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes | |
echo "Successfully patched!" | |
echo "Now restart MySQL Workbench to see the Workbench in light theme." | |
#Restart MySQL Workbench after executing this. |
Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
/**************************\ | |
Basic Modal Styles | |
\**************************/ | |
.modal { | |
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
} | |
.modal__overlay { | |
position: fixed; |
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache |
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |