Skip to content

Instantly share code, notes, and snippets.

View tronghieu60s's full-sized avatar
🔥
Focusing!

Trọng Hiếu tronghieu60s

🔥
Focusing!
View GitHub Profile
// Author: JUNO_OKYO - J2TEAM (EDITED Gemini By Trong Hieu)
const API_KEY = "EDIT_ME"; // CHÚ Ý: sửa key của bạn trước khi sử dụng!!!
const URL =
"https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent";
function askGPT(prompt) {
const payload = {
contents: [
{
parts: [
// https://ethercreative.github.io/react-native-shadow-generator/
export const shadowsStyle = {
1: {
elevation: 1,
shadowColor: "#000",
shadowOffset: { width: 0, height: 1 },
shadowOpacity: 0.18,
shadowRadius: 1.0,
},
Array.from(document.querySelectorAll('div[aria-label="currency-group"] a')).map(item => ({currency: item.querySelector("h5").innerText, name: item.querySelector("p").innerText, flag: window.getComputedStyle(item.querySelector(".currency-flag")).getPropertyValue('background-image').slice(4, -1).replace(/"/g, "")}))
import React, { useCallback, useEffect, useRef, useState } from 'react';
type IOProps = {
ref: React.RefObject<any>;
};
type Props = {
skeleton?: React.ReactNode;
skeletonDuration?: number;
options?: {
/**
* Design belike this video:
* https://youtu.be/zM3l9jpt5PU
*/
import React, {useEffect} from 'react';
import {Animated, Dimensions, Easing, StyleSheet, View as DefaultView} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
const width = Dimensions.get('window').width;
const electron = require('electron');
// Module to control application life.
const app = electron.app;
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow;
const path = require('path');
const url = require('url');
// Keep a global reference of the window object, if you don't, the window will

Keybase proof

I hereby claim:

  • I am tronghieu60s on github.
  • I am tronghieu60s (https://keybase.io/tronghieu60s) on keybase.
  • I have a public key ASCGwbCZ1uCIrFNsmNUrrLbaJ4tsrJDIHUyxPHY4y75jowo

To claim this, I am signing this object: