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 / 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 / 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 / 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 / vanilla-js-cheatsheet.md
Created May 8, 2019 12:05 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@Alexisvt
Alexisvt / index.js
Created November 8, 2018 19:35 — forked from elijahmanor/index.js
Run JavaScript in the terminal from a gist with npx
#!/usr/bin/env node
console.log( "Look Ma, I'm executing JavaScript from a gist inside the terminal with npx!" );
@Alexisvt
Alexisvt / README.md
Created November 8, 2018 19:34 — forked from elijahmanor/README.md
Has Deprecated Packages

Feel free to run via...

npx https://gist.github.com/elijahmanor/4cc8e3eac9fb5999c5d759388ff27c64

@Alexisvt
Alexisvt / nodejs-custom-es6-errors.md
Created July 23, 2018 01:08 — forked from slavafomin/nodejs-custom-es6-errors.md
Custom ES6 errors in Node.js

Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.

I've tried to make it as lean and unobtrusive as possible.

Defining our own base class for errors

errors/AppError.js

@Alexisvt
Alexisvt / whatsnew.dart
Created July 3, 2018 14:41 — forked from rodydavis/whatsnew.dart
Drop in file for flutter to show a whats new page for the user that is native for android and iOS. (Similar to apples version in keynote, pages, app store and other apps)
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'dart:io';
import 'dart:async';
//Example
class StartPage extends StatelessWidget {
// SHow Native Pop Up to User
static Future<Null> showAlertPopup(
BuildContext context, String title, String detail) async {
@Alexisvt
Alexisvt / ImagePicker.js
Created April 30, 2018 14:46 — forked from pvanliefland/ImagePicker.js
react-native-image-picker (workarounds)
import {Platform, PermissionsAndroid} from 'react-native';
import RNImagePicker from 'react-native-image-picker';
/**
* Overrides react-native-image-picker
*
* Attempts to fix:
*
* - https://github.com/react-community/react-native-image-picker/issues/385
* - https://github.com/react-community/react-native-image-picker/issues/581
@Alexisvt
Alexisvt / Mac OS X: Open in Visual Studio Code
Created February 27, 2018 02:03 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add a command to Finder services in Mac OSX to open a folder in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in Visual Studio Code"