Install this plugin directly from its GitHub Gist:
copilot plugin install https://gist.github.com/burkeholland/647ad0e579c06a43346ce6a373261eba.gitStart Copilot CLI to load the plugin:
| (async () => { | |
| await faceapi.nets.tinyFaceDetector.loadFromUri( | |
| chrome.runtime.getURL("models") | |
| ); | |
| const gigachad = new Image(); | |
| gigachad.src = chrome.runtime.getURL("gigachad.png"); | |
| await new Promise((resolve) => { | |
| gigachad.onload = resolve; | |
| }); |
I hereby claim:
To claim this, I am signing this object:
| // ==UserScript== | |
| // @name New Userscript | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://www.testportal.pl/exam/* | |
| // @grant unsafeWindow | |
| // ==/UserScript== |
I've competed in Google Code-In and I spotted a neat task from CCExtractor.
Task's title was "How can we identify movies based on scenes in them?" and I'm going to answer that question.
The first thing that came to my mind was to split a video into frames using FFmpeg. After splitting we perhaps could test our input against those frames.
But that's a disastrous idea!
| yay_or_nay(v::Bool, y::Function, n::Function) = v ? y : n | |
| p1_score = 0 | |
| p2_score = 0 | |
| function did_end() | |
| return yay_or_nay(p1_score >= 3, () -> true, () -> yay_or_nay(p2_score >= 3, () -> true, () -> false)())() | |
| end | |
| function get_winner() |
| { | |
| ",:(": "\U0001f613", | |
| ",:)": "\U0001f605", | |
| ",:-(": "\U0001f613", | |
| ",:-)": "\U0001f605", | |
| ",=(": "\U0001f613", | |
| ",=)": "\U0001f605", | |
| ",=-(": "\U0001f613", | |
| ",=-)": "\U0001f605", | |
| "0:)": "\U0001f607", |
| function getUserFromMentionRegExWithLengthCheck(mention) { | |
| const matches = mention.match(/^<@!?(\d{18})>$/); | |
| if (!matches) return; | |
| const id = matches[1]; | |
| return users.get(id); | |
| } |
| from typing import Callable, Any | |
| """ | |
| >>> (P(2) | P(lambda x: x**2) | P(lambda y: y**4))() | |
| 256 | |
| >>> pipe = (P(2) | P(lambda x: x**2) | P(lambda y: y**4)) | |
| >>> pipe.arg | |
| 256 |
| // ==UserScript== | |
| // @name ββ¬β β βββ | |
| // @namespace https://github.com/HKGx | |
| // @version 1.1 | |
| // @description Make every discount a ββ¬β β βββ | |
| // @author HKG | |
| // @match https://store.steampowered.com/* | |
| // @grant none | |
| // @downloadURL https://gist.github.com/HKGx/7958a6d18d1128ae4dd5f5e365ab5094/raw/65d7756558257ff440a4843a90f825ef0970e789/ββ¬β β βββ.user.js | |
| // @updateURL https://gist.github.com/HKGx/7958a6d18d1128ae4dd5f5e365ab5094/raw/65d7756558257ff440a4843a90f825ef0970e789/ββ¬β β βββ.user.js |