Skip to content

Instantly share code, notes, and snippets.

MyModule.directive('tabindex', function () {
return {
restrict: 'A',
link: function (scope, elem, attr, ctrl) {
if (attr.tabindex == 1) {
elem.focus();
}
}
};
});
@45kb
45kb / stuns
Last active August 29, 2015 14:17 — forked from zziuni/stuns
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@45kb
45kb / Ionic - install Crosswalk
Last active August 29, 2015 14:19
Ionic - install Crosswalk
#DEPENDECIES
//allow cross-origin-http
cordova plugin add https://github.com/apache/cordova-plugin-whitelist.git
#TODO
be sure to setup config.xml meta tag (<access origin="*"/>)
#COMMANDS
ionic platform remove android
@45kb
45kb / Crosswalk getUserMedia()
Created April 18, 2015 08:03
Crosswalk getUserMedia()
#TODO
Open AndroidManifest.xml
Add lines
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
start_bin_value end_bin_value card_length card_brand service_type card_organization cdv_validation issuer_region bin_country issuer_bin cft_flag mt_flag funding_source restricted_use
000180000 000180999 16 006 002 003 1 1 840 400087 000 001 D A
021502670 021502909 19 006 002 003 0 1 840 400087 000 001 D A
221572830 221572839 16 006 002 003 0 1 840 400087 000 000 D A
308952000 308969999 19 006 002 003 0 1 840 400087 000 001 D A
000180000 000180999 16 006 002 003 1 1 840 400087 000 001 D A
021502670 021502909 19 006 002 003 0 1 840 400087 000 001 D A
221572830 221572839 16 006 002 003 0 1 840 400087 000 000 D A
308952000 308969999 19 006 002 003 0 1 840 400087 000 001 D A
000180000 000180999 16 006 002 003 1 1 840 400087 000 001 D A
021502670 021502909 19 006 002 003 0 1 840 400087 000 001 D A
221572830 221572839 16 006 002 003 0 1 840 400087 000 000 D A
308952000 308969999 19 006 002 003 0 1 840 400087 000 001 D A
000180000 000180999 16 006 002 003 1 1 840 400087 000 001 D A
021502670 021502909 19 006 002 003 0 1 840 400087 000 001 D A
221572830 221572839 16 006 002 003 0 1 840 400087 000 000 D A
308952000 308969999 19 006 002 003 0 1 840 400087 000 001 D A