This file contains hidden or 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
Passos: | |
1 - Acessar "developer.apple.com/account/ios/certificate" | |
1.1 - Gerar certificado "Apple Push Notification service SSL (Sandbox)" | |
1.2 - Gerar certificado "Apple Push Notification service SSL (Sandbox Production)" | |
1.3 - Abrir o arquivo .cer (Certificados 1.1 e 1.2), acessar a "Keychain" do mac, e exportar os certificados no formato .p12 | |
2 - Acessar Firebase console e ir em "Project Overview", clicar na engrenagem, "Project Settings". | |
2.1 - Criar app de ios do projeto | |
2.2 - Guardar arquivo GoogleService-Info.plist |
This file contains hidden or 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
in conf/web.xml before closing tag | |
<filter> | |
<filter-name>CorsFilter</filter-name> | |
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class> | |
<init-param> | |
<param-name>cors.allowed.origins</param-name> | |
<param-value>*</param-value> | |
</init-param> | |
<init-param> |
This file contains hidden or 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
Change in platforms/android/cordova/builders | |
Generic/Gradle/Studio - Builder.js | |
https\\://services.gradle.org/distributions/gradle-4.6-all.zip | |
to | |
https\\://services.gradle.org/distributions/gradle-XXX-all.zip |
This file contains hidden or 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
In platforms/android/project.properties | |
add missing libs as 'cordova.system' | |
also, reoder the libs alias number | |
Sample | |
cordova.system.library.3=com.google.android.gms:play-services-basement:+ | |
cordova.system.library.4=com.google.android.gms:play-services-maps:+ | |
cordova.system.library.5=com.google.android.gms:play-services-location:+ |
This file contains hidden or 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
sudo su | |
mysql -u root | |
use mysql; | |
update user set plugin=' ' where User='root'; | |
flush privileges; | |
exit; | |
mysql_secure_installation |
This file contains hidden or 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
modify: | |
mavenCentral() | |
jcenter() | |
to: | |
maven { url "https://maven.google.com" } | |
jcenter { url "http://jcenter.bintray.com/"} | |
in files: | |
platforms/android/build.gradle |
This file contains hidden or 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
Import: | |
import javax.servlet.http.HttpServletRequest; | |
Maven dependency: | |
<!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api --> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>servlet-api</artifactId> | |
<version>2.5</version> | |
<scope>provided</scope> |
This file contains hidden or 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
Fonte: Nolesh @ StackOverflow | |
public int getUniqueInteger(String name) { | |
String plaintext = name; | |
int hash = name.hashCode(); | |
MessageDigest m; | |
try { | |
m = MessageDigest.getInstance("MD5"); | |
m.reset(); | |
m.update(plaintext.getBytes()); |
This file contains hidden or 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
npm install rss-to-json --save | |
npm install @types/node --save-dev | |
(Provider) | |
getJsonFromRSS(): Promise<any> { | |
return new Promise(resolve => { | |
var Feed = require('rss-to-json'); | |
let _URL = "http://rssurl.com/"; | |
This file contains hidden or 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
Vertical: | |
div { | |
display: -webkit-flex; | |
display: flex; | |
align-items: center; | |
} | |
<div> | |
Your text here. |
OlderNewer