###Icons
Name | Size |
---|---|
iphone_2x | 120x120 |
iphone_3x | 180x180 |
ipad | 76x76 |
ipad_2x | 152x152 |
android_ldpi | 36x36 |
android_mdpi | 48x48 |
<!-- 🖼 Photo Library --> | |
<key>NSPhotoLibraryUsageDescription</key> | |
<string><Your description goes here></string> | |
<!-- 📷 Camera --> | |
<key>NSCameraUsageDescription</key> | |
<string><Your description goes here></string> | |
<!-- 🎤 Microphone --> | |
<key>NSMicrophoneUsageDescription</key> |
/* Source from: https://github.com/Astrocoders/reform I edited it to handle the onChange events and validation */ | |
type action = | |
| HandleChange((string, string)) | |
| HandleSubmit; | |
type validation = | |
| Required | |
| MinLength(int) | |
| MaxLength(int) | |
| Between(int, int) |
###Icons
Name | Size |
---|---|
iphone_2x | 120x120 |
iphone_3x | 180x180 |
ipad | 76x76 |
ipad_2x | 152x152 |
android_ldpi | 36x36 |
android_mdpi | 48x48 |
import React from 'react' | |
import { Button, Text, View } from 'react-native' | |
import { useDispatch } from 'react-redux' | |
import { useReduxState } from '../hooks/use-redux-state' | |
import * as actions from '../redux/actions' | |
import * as selectors from '../redux/selectors' | |
export function LoginScreen() { | |
const dispatch = useDispatch() |
var CryptoJS = require('crypto-js'); | |
function uploadImage(uri) { | |
let timestamp = (Date.now() / 1000 | 0).toString(); | |
let api_key = 'your api key' | |
let api_secret = 'your api secret' | |
let cloud = 'your cloud name' | |
let hash_string = 'timestamp=' + timestamp + api_secret | |
let signature = CryptoJS.SHA1(hash_string).toString(); | |
let upload_url = 'https://api.cloudinary.com/v1_1/' + cloud + '/image/upload' |
packages: | |
yum: | |
git: [] | |
files: | |
/opt/elasticbeanstalk/hooks/appdeploy/pre/51install_meteor.sh: | |
mode: "000755" | |
user: root | |
group: root | |
encoding: plain |
Do I want to die on this hill?
Am I including everyone?
function translateError(msg) { | |
var newErr = new Error(msg); // placed here to get correct stack | |
return e => { | |
newErr.originalError = e; | |
throw newErr; | |
} | |
} | |
async function asyncTask() { | |
const user = await UserModel.findById(1).catch(translateError('No user found')) |
Sometimes you need to keep two upstreams in sync with eachother. For example, you might need to both push to your testing environment and your GitHub repo at the same time. In order to do this simultaneously in one git command, here's a little trick to add multiple push URLs to a single remote.
Once you have a remote set up for one of your upstreams, run these commands with:
git remote set-url --add --push [remote] [original repo URL]
git remote set-url --add --push [remote] [second repo URL]
Once set up, git remote -v
should show two (push) URLs and one (fetch) URL. Something like this: