Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| //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'; |
| -- ------------------------------------------------------- | |
| -- Remote | |
| -- ------------------------------------------------------- | |
| git remote add origin git_repository_url | |
| git push -u origin master | |
| git remote -v | |
| git remote rm origin | |
| -- ------------------------------------------------------- |
| 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 |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
http://angular.github.io/protractor/#/api
Note: Most commands return promises, so you only resolve their values through using jasmine expect API or using .then(function()) structure
Based on this post: https://spagettikoodi.wordpress.com/2015/01/14/angular-testing-cheat-sheet/ by @crystoll
browser.get('yoururl'); // Load address, can also use '#yourpage'| /** | |
| * @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) |
Allows to control the page title from the AngularJS route system, controllers or any other component through an injectable service.
To get started add the module to your app and configure the page title provider:
| angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
| .run(function(DB) { | |
| DB.init(); | |
| }); |
| 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); |
| // 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; | |
| /** |