Skip to content

Instantly share code, notes, and snippets.

Alex M. alexmoreno

Block or report user

Report or block alexmoreno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alexmoreno
alexmoreno / gist:36e46585d1fe59b4f00f917472a3daf6
Created Jul 20, 2018
serve.json - Allow CORS at zeit/serve
View gist:36e46585d1fe59b4f00f917472a3daf6
{
"headers": [
{
"source" : "*",
"headers" : [{
"key" : "Access-Control-Allow-Origin",
"value" : "*"
}]
}, {
"source" : "*",
View gist:33e1e6b4eb30cc3b4b28f67f888c045a
This file has been truncated, but you can view the full file.
{
"items": [
{
"index": 1,
"index_start_at": 56,
"integer": 24,
"float": 11.4677,
"name": "Jennifer",
"surname": "Hodge",
View Solving Race Condition Promise Vuejs.js
mounted() {
let startingPromises = [
this.$store.dispatch('produtos/load_marcas_data'),
this.$store.dispatch('produtos/load_categorias_data'),
this.$store.dispatch('produtos/load_produtos_tipo_data'),
this.$store.dispatch('produtos/load_tags_data'),
]
Promise.all(startingPromises).then((resolve) => {
this.$nextTick(function () {
View sh
echo "Setting new site $1"
directory="/var/www/html/$1"
echo "- Creating directory $1"
mkdir $directory
echo "- Copying backup files"
cp ~/base/kickstart.php $directory/kickstart.php
cp ~/base/base3.jpa $directory/base3.jpa
You can’t perform that action at this time.