Syntax: if (condition) { ... }
Default: —
Context: server, location
A condition may be any of the following:
const axios = require('axios') | |
/* ... */ | |
const params = new URLSearchParams() | |
params.append('name', 'Akexorcist') | |
params.append('age', '28') | |
params.append('position', 'Android Developer') | |
params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/') | |
params.append('awesome', true) |
// Copy of Exponent snack example | |
// https://snack.expo.io/HJcgiI8kb | |
import React, { Component } from 'react'; | |
import { Text, View, FlatList, Dimensions, Button, StyleSheet } from 'react-native'; | |
const { width } = Dimensions.get('window'); | |
const style = { | |
justifyContent: 'center', | |
alignItems: 'center', |
{ | |
"regiones": [ | |
{ | |
"region": "Arica y Parinacota", | |
"comunas": ["Arica", "Camarones", "Putre", "General Lagos"] | |
}, | |
{ | |
"region": "Tarapacá", | |
"comunas": ["Iquique", "Alto Hospicio", "Pozo Almonte", "Camiña", "Colchane", "Huara", "Pica"] | |
}, |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
/* | |
(c) by Thomas Konings | |
Random Name Generator for Javascript | |
*/ | |
function capFirst(string) { | |
return string.charAt(0).toUpperCase() + string.slice(1); | |
} | |
function getRandomInt(min, max) { |
function merge(target, source) { | |
/* Merges two (or more) objects, | |
giving the last one precedence */ | |
if ( typeof target !== 'object' ) { | |
target = {}; | |
} | |
for (var property in source) { |