Skip to content

Instantly share code, notes, and snippets.

View Alexisvt's full-sized avatar
🎯
Focusing

Alexis Villegas Torres Alexisvt

🎯
Focusing
  • San Jose, Costa Rica
View GitHub Profile
@Alexisvt
Alexisvt / cloudSettings
Last active March 20, 2019 19:50
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-20T19:50:24.442Z","extensionVersion":"v3.2.7"}
@Alexisvt
Alexisvt / cloudSettings
Last active June 6, 2019 20:41
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-06-06T20:41:39.417Z","extensionVersion":"v3.2.9"}
@Alexisvt
Alexisvt / strem_example.dart
Created April 7, 2019 19:25
Simple example of how Streams works in Dart
import 'dart:async';
void addLessThanFive(StreamController controller, int value) {
if(value < 5) {
controller.sink.add(value);
} else {
controller.sink.addError(StateError('$value is not less than 5'));
}
}
@Alexisvt
Alexisvt / vanilla-js-cheatsheet.md
Created May 8, 2019 12:05 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@Alexisvt
Alexisvt / lock-switch-to-signup.html
Created May 22, 2019 22:45 — forked from sandrinodimattia/lock-switch-to-signup.html
Auth0 Lock example that shows how to switch to the Login page when a certain condition is met
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Sign In with Auth0</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
html, body { padding: 0; margin: 0; }
@Alexisvt
Alexisvt / angular material
Last active April 1, 2020 17:22 — forked from ivantw08/angular material
A module with all Angular module.
//Simply to import to app.module.ts and start to use all angular
// by this way is easier to maintenance you app.module
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {MatInputModule} from '@angular/material/input';
import {MatAutocompleteModule} from '@angular/material/autocomplete';
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatRadioModule} from '@angular/material/radio';
import {MatSelectModule} from '@angular/material/select';
@Alexisvt
Alexisvt / launch.json
Created July 1, 2019 20:10 — forked from marshallswain/launch.json
Setting up Visual Studio Code to work with Nuxt.js
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "npm run dev",
"runtimeExecutable": "npm",
"windows": {
"runtimeExecutable": "npm.cmd"
@Alexisvt
Alexisvt / .zshrc
Created July 4, 2019 17:33
.zshrc configuration file configured to work with Android and Flutter
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/aleville3/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@Alexisvt
Alexisvt / settings.json
Last active September 2, 2019 15:19 — forked from agcty/settings.json
Nuxt's VSCode settings file
{
"eslint.validate": [
{
"language": "vue",
"autoFix": true
},
{
"language": "javascript",
"autoFix": true
},
@Alexisvt
Alexisvt / global-component-loader.js
Created September 2, 2019 14:29
Plugin that load all the Vue components stored in the components folder in Nuxt project
import _ from 'lodash'
import Vue from 'vue'
const components = require.context('@/components', false, /[A-Z]\w+\.(vue)$/)
_.forEach(components.keys(), (fileName) => {
const componentConfig = components(fileName)
const componentName = fileName
.split('/')
.pop()
.split('.')[0]