Plugin is based on chroma-js package. You need to install it with one of following commands.
# Deno
deno i npm:chroma-js
# Bun
bun i chroma-jsPlugin is based on chroma-js package. You need to install it with one of following commands.
# Deno
deno i npm:chroma-js
# Bun
bun i chroma-js| { | |
| "captchaResult": "CAPTCHA_NOT_NEEDED", | |
| "kind": "pagespeedonline#result", | |
| "id": "https://dav.one/", | |
| "loadingExperience": { | |
| "initial_url": "https://dav.one/" | |
| }, | |
| "lighthouseResult": { | |
| "requestedUrl": "https://dav.one/", | |
| "finalUrl": "https://dav.one/", |
| export interface Machine { | |
| ask_contract_id: number; | |
| bundle_id: number; | |
| bundled_results: null | any; // Specify type if known | |
| bw_nvlink: number; | |
| compute_cap: number; | |
| cpu_arch: string; | |
| cpu_cores: number; | |
| cpu_cores_effective: number; | |
| cpu_ghz: number; |
| # WORKS ON PYTHON 3.7.3 | |
| # DOESN'T WORK ON PYTHON 3.10.2 BECAUSE OF SSL IN URLLIB LIBRARY | |
| # IT SEEMS PYTHON MUST BE COMPILED WITH OPENSSL (?) | |
| import os | |
| import re | |
| import urllib.request | |
| from datetime import datetime | |
| CWD = os.path.dirname(os.path.abspath(__file__)) |
| // When you are using GitHub Api to get contents from repository, | |
| // file hashes will be different than hashes you get with 'sha1sum'. | |
| // This example shows how you can get same hashes using Bun.sh | |
| import { CryptoHasher } from 'bun'; | |
| async function getGitFileHash(filePath: string): Promise<string> { | |
| const file = await Bun.file(filePath).arrayBuffer(); | |
| const content = new Uint8Array(file); |
| """ | |
| BME280 & BMP280 I2C Micropython Library for ESP32 based development boards | |
| Originally created by Foxdan | |
| https://github.com/foxdan/ubme280 | |
| Modified by Avaray, including tiny cosmetic changes: | |
| - using 'uctypes' instead of 'ctypes' | |
| - using 'SoftI2C' instead of 'I2C' in example code | |
| - using Pins 22 and 21 in example code |
| <!doctype html> | |
| <html> | |
| <head> | |
| <script type="module"> | |
| // WICG Shape Detection API | |
| // - https://wicg.github.io/shape-detection-api/ | |
| try { | |
| const start = document.getElementById("start"); | |
| const video = document.getElementById("video"); | |
| const result = document.getElementById("result"); |
| export const gamemodes: {[key: string]: string} = { | |
| "AirSuperiority": "Air Superiority", | |
| "CaptureTheFlag": "Capture The Flag", | |
| "CarrierAssault": "Carrier Assault Small", | |
| "CarrierAssaultLarge": "Carrier Assault Large", | |
| "Chainlink": "Chainlink", | |
| "ConquestLarge": "Conquest Large", | |
| "ConquestSmall": "Conquest Small", | |
| "Domination": "Domination", | |
| "Elimination": "Defuse", |
| const { chromium } = require('playwright-core'); | |
| // set browser to disable images loading | |
| const browser = await chromium.launch({ | |
| headless: true, | |
| executablePath: CHROMIUM_PATH_HERE, | |
| args: [ '--blink-settings=imagesEnabled=false', '--window-size=800,800' ] | |
| }); | |
| const page = await browser.newPage({ viewport: null }); |