Add sass loader
npm install node-sass sass-loader --save-dev
NUXT simultaneous asynchronous data request
async asyncData({ params }) {
let [users, posts] = await Promise.all([
axios.get('http://jsonplaceholder.typicode.com/users'),
<?php | |
function my_module_webform_submission_form_alter(array &$form, FormStateInterface $form_state, $form_id) { | |
if ($form['#webform_id'] == 'contact_an_expert') { | |
#$form['actions']['submit']['#validate'][] = 'wmp_content_types_contact_an_expert_form_validate'; | |
$form['actions']['submit']['#ajax'] = [ | |
'callback' => 'my_module_contact_an_expert_form_ajax', | |
'wrapper' => '.field--name-dynamic-block-fieldnode-contact-an-expert-form', | |
'type' => 'throbber', |
#!/bin/bash | |
#Domain name without trailing slash please | |
domain='http://local.vwt' | |
directories=( | |
'/markets' | |
'/applications' | |
'/technologies' | |
'/products' |
Add sass loader
npm install node-sass sass-loader --save-dev
NUXT simultaneous asynchronous data request
async asyncData({ params }) {
let [users, posts] = await Promise.all([
axios.get('http://jsonplaceholder.typicode.com/users'),
Install specific Drupal version with composer
composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction --no-install
cd some-dir
composer require --no-update drupal/core:^8.5
composer require --no-update --dev webflo/drupal-core-require-dev:^8.5
composer install [--no-dev]
Get current URI
import React, { Component } from 'react'; | |
import { | |
View, | |
} from 'react-native'; | |
import MyStacksOverTabs from '../config/routes'; | |
export default class NavigationScreen extends Component { | |
render() { | |
return ( |
@mixin linear-gradient-ltr($fromColor, $fromStop, $toColor, $toStop) {
background: $toColor;
background: -moz-linear-gradient(to right, $fromColor $fromStop, $toColor $toStop);
background: -webkit-gradient(linear, left, right, color-stop($fromStop,$fromColor), color-stop($toStop,$toColor));
background: -webkit-linear-gradient(left, $fromColor $fromStop, $toColor $toStop); //iOS
background: linear-gradient(to right, $fromColor $fromStop, $toColor $toStop); //iOS
background: -o-linear-gradient(left, $fromColor $fromStop, $toColor $toStop);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr=#{$fromColor}, endColorstr=#{$toColor});
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "Instalador de Wordpress" | |
echo "============================================" | |
echo "Host do Banco de dados: " | |
read -e dbhost | |
echo "Nome do Banco de dados: " | |
read -e dbname | |
echo "Usúario do Banco de dados: " |