This file contains hidden or 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
| /** | |
| * Normalize a port into a number, string, or false. | |
| */ | |
| function normalizePort(val) { | |
| const port = parseInt(val, 10); | |
| if (isNaN(port)) { | |
| return val; | |
| } |
This file contains hidden or 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
| { | |
| "regions":[ | |
| { | |
| "id":1, | |
| "name":"Tarapac\u00e1", | |
| "ISO":"CL-TA" | |
| }, | |
| { | |
| "id":2, | |
| "name":"Antofagasta", |
This file contains hidden or 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
| require('dotenv').config() | |
| const { createLogger, format, transports } = require('winston'); | |
| require('winston-daily-rotate-file'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const dir = 'logs' | |
| if (!fs.existsSync(dir)) { | |
| fs.mkdirSync(dir) |
This file contains hidden or 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
| <?php | |
| namespace App\DataFixtures; | |
| use Doctrine\Bundle\FixturesBundle\Fixture; | |
| use Doctrine\Common\Persistence\ObjectManager; | |
| use Faker\Factory; | |
| use Faker\Generator; | |
| /** |
This file contains hidden or 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
| <?php | |
| namespace AppBundle\Command; | |
| use AppBundle\Entity\Evento; | |
| use AppBundle\Entity\EventoAdjunto; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; |
This file contains hidden or 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
| [ | |
| { "keys": ["ctrl+shift+l"], | |
| "command": "insert_snippet", | |
| "args": { | |
| "contents": "console.log(${1:}$SELECTION);${0}" | |
| } | |
| }, | |
| { "keys": ["ctrl+shift+v"], | |
| "command": "insert_snippet", |
NewerOlder