- run "heroku run bash". This creates a one-off-dyno in your heroku app.
- run "composer update". now if you check vendor folder you can see fzaninotto/faker package installed.
- now run "php artisan db:seed". Your database will be seeded.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const compiler = require('vue-template-compiler'); | |
const babel = require("@babel/core"); | |
let content = ''; | |
process.stdin.resume(); | |
process.stdin.on('data', buf => { | |
content += buf.toString(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"build-wc": "vue-cli-service build --target wc --name lib 'src/components/*.vue'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$(window).scroll(function(evt){ | |
var height = $(window).scrollTop(); | |
if(height > 300) { | |
$('.navbar').addClass('bg-dark'); | |
}else{ | |
$('.navbar').removeClass('bg-dark'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws elasticbeanstalk update-environment --solution-stack-name "64bit Amazon Linux 2017.09 v2.6.6 running PHP 7.1" --environment-id "********" --region "us-east-1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log = function() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign words = "Hi, how are you today?" | split: ' ' %} | |
{% for word in words %} | |
{{ word }} <br> | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Remove Base css | |
$('link').each(function(index, ele){ | |
var href = $(ele).attr('href'); | |
var regex = /base/; | |
if(regex.test(href)){ | |
$(ele).remove(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var phoneRegex = /^[0-9]{9}$/; |
#Includes en Liquid
En Liquid podemos crear bloques o ‘Snippets’ dinámicos que permitan modificar el contenido, clases o cualquier contenido según sea necesario.
Por ejemplo una alerta:
Snippet “alerta”
NewerOlder