A how-to for a countdown clock.
A Pen by Trọng Hiếu on CodePen.
| // 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, "")})) |
A how-to for a countdown clock.
A Pen by Trọng Hiếu on CodePen.
| 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 |
I hereby claim:
To claim this, I am signing this object: