<label for="file">Upload Video</label>
<input type="file" accept=".mp4, .mkv, .mpeg4" id="file" class="video-input">
<button class="capture-btn">Capture</button>
<div class="source-vid"></div>
<div class="result"></div>
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
"use client"; | |
import { | |
type ColumnDef, | |
flexRender, | |
getCoreRowModel, | |
useReactTable, | |
getPaginationRowModel, | |
getSortedRowModel, | |
getFilteredRowModel, |
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
const FILE_A = 'a.json' | |
const FILE_B = 'b.json' | |
const files = [FILE_A,FILE_B] | |
const contents = {} | |
window.api.receive("sendReadContent", (file_name,data) => { | |
This guide was created to run the steam deck ui on a linux desktop before valve officially updated big picture mode for the steam client. This guide no longer serves any purpose.
Big Picture Mode
- The steam client now officially uses the steam deck ui (gamepad ui) for big picture mode.
- A reversed engineered version of valves steam deck OS
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
IMAGE_SRC = './img/8.jpg' | |
const loadImage = () => { | |
const img = new Image() | |
img.src = IMAGE_SRC | |
const canvas = document.querySelector('canvas') | |
const ctx = canvas.getContext('2d') | |
img.addEventListener('load', () => { |
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
// Original code by Homer Chen | |
// https://github.com/homerchen19/use-undo | |
// Same as original but using useState instead of useReducer | |
import { useState, useCallback } from 'react'; | |
const initialState = { | |
past: [], | |
present: null, |
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
function middleInBetweenNumnbers(min, max) { | |
return Math.floor((max+min)/2); | |
} |
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
// Add any other logic here as needed. | |
import { CacheableResponsePlugin } from 'workbox-cacheable-response/CacheableResponsePlugin'; | |
import { CacheFirst } from 'workbox-strategies/CacheFirst'; | |
import { createHandlerForURL } from 'workbox-precaching/createHandlerForURL'; | |
import { ExpirationPlugin } from 'workbox-expiration/ExpirationPlugin'; | |
import { NavigationRoute } from 'workbox-routing/NavigationRoute'; | |
import { precacheAndRoute } from 'workbox-precaching/precacheAndRoute'; | |
import { registerRoute } from 'workbox-routing/registerRoute'; |
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
git hash-object ./file | |
# or | |
git hash-object -t blob | |
# or | |
cat ./file | git hash-object --stdin |
NewerOlder