To make this work in CSS:
background: url('images.svg#chart');
or img:
<img src="images.svg#chart">
license: mit |
To make this work in CSS:
background: url('images.svg#chart');
or img:
<img src="images.svg#chart">
import express from 'express' | |
import bodyParser from 'body-parser' | |
import cookieParser from 'cookie-parser' | |
import passport from 'passport' | |
import passportJWT, { ExtractJwt, Strategy as JwtStrategy } from 'passport-jwt' | |
import bcrypt from 'bcrypt' | |
import jwt from 'jsonwebtoken' | |
const { fromExtractors, fromAuthHeaderWithScheme, fromAuthHeaderAsBearerToken } = ExtractJwt |
UPDATED 22.11.2022
It's been two years since the last update, so here's the updated working script as per the comments below.
Thanks to BryanHaley for this.
setInterval(function () {
video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];
video.querySelector('#primary button[aria-label="Action menu"]').click();
{
"editor.fontSize": 13,
"editor.lineHeight": 24,
const TELEGRAM_BOT_TOKEN = '110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw'; // https://core.telegram.org/bots#creating-a-new-bot | |
export const verifyTelegramWebAppData = async (telegramInitData: string): boolean => { | |
// The data is a query string, which is composed of a series of field-value pairs. | |
const encoded = decodeURIComponent(telegramInitData); | |
// HMAC-SHA-256 signature of the bot's token with the constant string WebAppData used as a key. | |
const secret = crypto |
import {Dimensions, FlatList, View} from 'react-native'; | |
const screenWidth = Dimensions.get('window').width; | |
const numColumns = 2; | |
const gap = 5; | |
const availableSpace = screenWidth - (numColumns - 1) * gap; | |
const itemSize = availableSpace / numColumns; | |
const renderItem = ({item}) => { |
import { z } from 'zod' | |
/** | |
* @summary Function returns default object from Zod schema | |
* @version 23.05.15.2 | |
* @link https://gist.github.com/TonyGravagno/2b744ceb99e415c4b53e8b35b309c29c | |
* @author Jacob Weisenburger, Josh Andromidas, Thomas Moiluiavon, Tony Gravagno | |
* @param schema z.object schema definition | |
* @param options Optional object, see Example for details | |
* @returns Object of type schema with defaults for all fields |
import Axios from "axios"; | |
import Router from "next/router"; | |
const API_URL = process.env.NEXT_PUBLIC_API_URL; | |
export const axios = Axios.create({ | |
baseURL: API_URL, | |
headers: { | |
"Content-Type": "application/json", | |
}, |