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 'dart:io'; | |
import 'package:fuse_wallet_sdk/fuse_wallet_sdk.dart'; | |
void main() async { | |
// TODO: Add your private key | |
final credentials = EthPrivateKey.fromHex(''); | |
final prodApiKey = 'pk_F7gisUhUTV5LyiNcftikb0UL'; | |
final fuseSDK = await FuseSDK.init( |
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
<?php | |
/** | |
* Gets an access token for FCM API calls | |
* @param string $serviceAccountPath Path to your service account JSON file | |
* @return string The access token | |
*/ | |
function getAccessToken($serviceAccountPath) { | |
$serviceAccount = json_decode(file_get_contents($serviceAccountPath), true); | |
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 axios from 'axios'; | |
/** | |
* Sends an FCM message using the HTTP v1 API | |
* @param serviceAccountPath Path to your service account JSON file | |
* @param projectId Your Firebase project ID | |
* @param token The FCM registration token of the target device | |
* @param title The notification title | |
* @param body The notification body | |
* @param data Optional data payload |
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
Future<Map<String, dynamic>> _analyzeWithGPT(String text) async { | |
final response = await http.post( | |
Uri.parse('https://api.openai.com/v1/chat/completions'), | |
headers: { | |
'Content-Type': 'application/json', | |
'Authorization': 'Bearer $apiKey', | |
}, | |
body: jsonEncode({ | |
'model': 'gpt-4o-mini', | |
'messages': [ |
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 admin from "firebase-admin"; | |
import fs from "fs"; | |
import pLimit from "p-limit"; | |
import * as XLSX from "xlsx"; | |
const serviceAccount = JSON.parse( | |
fs.readFileSync("firebase_staging_creds.json", "utf8") | |
); | |
admin.initializeApp({ |
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
[ | |
{ | |
"id_map": 2, | |
"id_workspace": 1, | |
"id_model": 3, | |
"name": "Kocaeli Üniversitesi", | |
"subscribes": [], | |
"locations": [ | |
{ | |
"id_location": 2, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Staging", | |
"request": "launch", | |
"type": "dart", | |
"args": [ | |
"--flavor", | |
"staging" |
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 { | |
AIRDROP_BIGQUERY_V3_POOLS_LIQUIDITY, | |
VOLTAGE_EXCHAGE_V3_SUBGRAPH_URL, | |
} from "../constants"; | |
import { getAllPositionSnapshotsBetweenDatesQuery } from "../graph_ql/queries"; | |
import { | |
V3PoolPosition, | |
V3PoolPositionSnapshot, | |
V3PoolPositionSnapshots, | |
} from "../graph_ql/types"; |
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
{ | |
"id": "id", | |
"walletAddress": "walletAddress", | |
"eoaAddress": "eoaAddres", | |
"points": 10, | |
"referralCode": "referralCode", | |
"pointsLastUpdatedAt": "2022-04-04T23:46:20.469Z", | |
"updatedAt": "2024-04-04T23:41:28.673Z", | |
"walletAgeInDays": 100, | |
"twitterAccountId": "55", |
NewerOlder