Skip to content

Instantly share code, notes, and snippets.

View httol's full-sized avatar
🎯
Focusing

Tom httol

🎯
Focusing
  • TianJin
View GitHub Profile
@httol
httol / google_fonts.css
Created September 8, 2022 10:52 — forked from sadikay/google_fonts.css
All Google Fonts In One CSS File
@font-face {
font-family: 'ABeeZee';
font-style: normal;
font-weight: 400;
src: local('ABeeZee'), local('ABeeZee-Regular'), url(http://fonts.gstatic.com/s/abeezee/v9/JYPhMn-3Xw-JGuyB-fEdNA.ttf) format('truetype');
}
@font-face {
font-family: 'Abel';
font-style: normal;
font-weight: 400;
@httol
httol / firebase notification curl
Last active January 8, 2021 08:19 — forked from IsmailShurrab/firebase notification curl
firebase notification curl php
<?php
function send($token,$title,$body){
$url = "https://fcm.googleapis.com/fcm/send";
$serverKey = 'your server token of FCM project';
$notification = array('title' =>$title , 'text' => $body, 'sound' => 'default', 'badge' => '1');
$arrayToSend = array('to' => $token, 'notification' => $notification,'priority'=>'high');
$json = json_encode($arrayToSend);
$headers = array();
$headers[] = 'Content-Type: application/json';
$headers[] = 'Authorization: key='. $serverKey;