Skip to content

Instantly share code, notes, and snippets.

View etrivinos's full-sized avatar

Edwin Alberto Triviños Ramirez etrivinos

View GitHub Profile
@etrivinos
etrivinos / version-check.dart
Created April 22, 2020 04:26 — forked from naumanahmed19/version-check.dart
Flutter Force Update IOS and Android App Version
//Prompt users to update app if there is a new version available
//Uses url_launcher package
import 'package:url_launcher/url_launcher.dart';
const APP_STORE_URL =
'https://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=YOUR-APP-ID&mt=8';
const PLAY_STORE_URL =
'https://play.google.com/store/apps/details?id=YOUR-APP-ID';
@etrivinos
etrivinos / git_commands.txt
Last active June 4, 2019 19:20
Git commands
-- -------------------------------------------------------
-- Remote
-- -------------------------------------------------------
git remote add origin git_repository_url
git push -u origin master
git remote -v
git remote rm origin
-- -------------------------------------------------------
@etrivinos
etrivinos / ImagePicker.js
Created April 3, 2018 02:38 — 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
@etrivinos
etrivinos / frontendDevlopmentBookmarks.md
Created July 2, 2016 16:53 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
/**
* @ngdoc filter
* @name sexFilter
* @kind function
*
* @description
* Filtra las personas en base a su sexo.
*
* @param {array} Personas
* @param {string=} Sexo (M = Masculino, F = Femenino)
@etrivinos
etrivinos / README.md
Created April 20, 2016 17:43 — forked from hilios/README.md
ngPageTitle - AngularJS page title service

$pageTitle

Allows to control the page title from the AngularJS route system, controllers or any other component through an injectable service.

ngPageTitle - Page title service (run tests)

To get started add the module to your app and configure the page title provider:

@etrivinos
etrivinos / app.js
Created April 18, 2016 21:13 — forked from jgoux/app.js
Ionic / AngularJS service wrapper for Web SQL API / SQLite-Cordova-Plugin
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers'])
.run(function(DB) {
DB.init();
});
@etrivinos
etrivinos / app.js
Created April 17, 2016 22:17 — forked from jdnichollsc/app.js
SQLite plugin with ngCordova in Ionic Framework => Using service pattern (Works for litehelpers/Cordova-sqlite-storage and MSOpenTech/cordova-plugin-websql) Code => http://1drv.ms/1Ono0Ys
angular.module('Demo', ['ionic', 'Demo.controllers', 'Demo.services', 'ngCordova'])
.run(function ($ionicPlatform, sqliteService) {
$ionicPlatform.ready(function () {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);
@etrivinos
etrivinos / guia-basica-de-mocha-y-chai.js
Created December 19, 2015 22:08
Mocha : Explicación básica de las funciones describe(), it(), configuración
// Importación de la librería chai.js
var chai = require('chai'),
expect = chai.expect;
// Variables de configuración de chai.js
chai.config.includeStack = false;
chai.config.showDiff = true;
chai.config.truncateThreshold = 40;
/**