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
<ion-row class="ion-text-center"> | |
<ion-col> | |
<ion-button expand="full" (click)="fn_mensal()">$2.99</ion-button> | |
</ion-col> | |
<ion-col> | |
<ion-button expand="full" (click)="fn_trimestral()">$7.99</ion-button> | |
</ion-col> | |
<ion-col> | |
<ion-button expand="full" (click)="fn_semestral()">$14.99</ion-button> | |
</ion-col> |
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
//iphone 11 Pro Max e XS Max | |
@media only screen and (min-device-width: 414px) and (max-device-width: 896px) and (-webkit-min-device-pixel-ratio: 3) { | |
} | |
//iphone 11 Pro e X | |
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) { | |
} | |
//iphone 11 e XR | |
@media only screen and (min-device-width: 414px) and (max-device-width: 896px) and (-webkit-min-device-pixel-ratio: 2) { |
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 | |
//no login, o id do aparelho é enviado ao banco | |
if (isset($post['pushid'])) { | |
//insere no banco o id do aparelho | |
$query = "UPDATE login SET push_id = '" . $post['pushid'] . "' WHERE id_login = " . $usuario->id_login; | |
$push_conn->query($query); | |
//isso é opcional, é para atualizar no site do onesignal o grupo do usuário | |
$playerID = $post['pushid']; | |
$fields = array( |
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
async fn_inserir_pic_pessoal() { | |
const image = await Plugins.Camera.getPhoto({ | |
quality: 50, | |
allowEditing: false, | |
resultType: CameraResultType.DataUrl, | |
source: CameraSource.Prompt | |
}); | |
this.fn_resize_img(image.dataUrl, 1024, 1024, 0.5, f => { | |
this.data_profile.user_pic = f |
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
<ion-searchbar placeholder="Pesquisar..." showCancelButton="focus" [(ngModel)]="filterHouse"></ion-searchbar> | |
<ion-item *ngFor="let h of houses | filter:filterHouse"> |
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
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null | |
to | |
diff "${SRCROOT}/Podfile.lock" "${SRCROOT}/Pods/Manifest.lock" > /dev/null |
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
//pegar apenas o id do caparelho | |
this.oneSignal.startInit('one signal id', 'google id').endInit(); | |
const { userId } = await this.oneSignal.getIds() | |
//fazer algo quando o push é recebido e quando é aberto | |
this.oneSignal.startInit('', '') | |
.handleNotificationReceived(() => {}) | |
.handleNotificationOpened(() => {}) | |
.endInit(); |
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
FROM debian:latest | |
RUN apt update -y | |
RUN apt install net-tools curl -y |
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
from sklearn.tree import DecisionTreeClassifier | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.ensemble import ( | |
RandomForestClassifier, | |
AdaBoostClassifier, | |
GradientBoostingClassifier, | |
) | |
from sklearn.preprocessing import StandardScaler | |
from sklearn.naive_bayes import GaussianNB | |
from sklearn.neighbors import KNeighborsClassifier |
OlderNewer