This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8'?> | |
<!-- Build version (iOS) and version code (android) --> | |
<widget android-versionCode="1" id="com.your.app" ios-CFBundleVersion="1" version="3.5.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | |
<!-- Add plugin from local path --> | |
<plugin name="cordova-plugin-YOURPLUGIN" spec="./path/to/custom/plugins/cordova-plugin-YOURPLUGIN" /> | |
</widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- install dependecies | |
npm install | |
# --- install only dev dependencies | |
npm install --only=dev | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install the homebrew, makes our life easy | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
#install react native tool | |
npm install -g create-react-native-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- read only needed information from adb logcat | |
# adb logcat *:<OPTION> | |
#the priorites are (from lowest to highest ) | |
# V — Verbose (lowest priority) | |
# D — Debug | |
# I — Info | |
# W — Warning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Arquivo de exemplo para descriptografar os dados do visa checkout apos validacao do usuario | |
* este codigo esta na documentacao disponivel em | |
* https://developer.visa.com/capabilities/visa_checkout/docs | |
* | |
*/ | |
/** | |
* Exeuta o primeiro nivel de descriptografia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: initial count | |
SET i=0 | |
setlocal EnableDelayedExpansion | |
:: filter for extension, jpg as example | |
for %%f in (*.jpg) do ( | |
:: rename the current file to the new name | |
ren "%%~nf%%~xf" "!i!.jpg" | |
:: increase the counter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if you have, for instance | |
# root@NAMETHATYOUDONTLIKE : ~ | |
#you can use the following command | |
sudo scutil --set HostName name-you-want | |
#to change it | |
# root@COOLNAMETHATILIKE : ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "teste_api", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mocha | |
Teste API magicthegathering.io | |
√ Deve receber 100 cartas (1468ms) | |
√ Deve receber a carta 'A Indiferente' (351ms) | |
2 passing (2s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mocha | |
Teste API magicthegathering.io | |
1) Deve receber 100 cartas | |
√ Deve receber a carta 'A Indiferente' (414ms) | |
1 passing (2s) | |
1 failing |
OlderNewer