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 / 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 / branch-management.md
Last active March 9, 2023 16:54
Git commands for branch's managment

Branch Management

How to create a branch

git branch my-branch

How to move to a branch

@Alexisvt
Alexisvt / cloudSettings
Last active July 15, 2020 23:38
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-15T23:38:36.791Z","extensionVersion":"v3.4.3"}
@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 / 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 / README.md
Created October 14, 2018 22:30
How to add path aliases to Nest.js

README FIRST

In order to accomplish this we need to install the next package to our project:

> install module-alias --save

Then we need to modify three files, lets go in order:

@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 / 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 / cloudSettings
Last active March 14, 2019 13:34
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-14T13:34:32.307Z","extensionVersion":"v3.2.7"}
@Alexisvt
Alexisvt / launch.json
Created March 7, 2019 16:11
Launch file for make Angular project easy to debug in VSCode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [{
"type": "chrome",
"request": "launch",
"name": "Launch NG App",
"url": "http://localhost:4200",