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
from multiprocessing import Pool, Queue | |
import argparse | |
from queue import Queue | |
import sqlite3 | |
import re | |
from urllib.parse import urljoin, urlparse | |
import functools | |
from bs4 import BeautifulSoup | |
import requests |
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
// BEGIN Other type defs | |
type User = { | |
name: string | |
} | |
type Organization = { | |
name: string, | |
active: boolean | |
} | |
// END Other type defs |
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
/// twitch-videoad.js | |
const origFetch = window.fetch; | |
window.fetch = (url, init, ...args) => { | |
if (typeof url === "string") { | |
if (url.includes("/access_token")) { | |
url = url.replace("player_type=site", "player_type=thunderdome"); | |
} else if ( | |
url.includes("/gql") && | |
init && | |
typeof init.body === "string" && |
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
import { createContext, ReactChildren, useContext, useEffect, useMemo, useState } from 'react'; | |
import { Type } from 'io-ts'; | |
import { useNavigate } from 'react-router-dom-v5-compat'; | |
/* | |
* UserSettingsTable contains all the settings for a user | |
* across the application. Each key identifies a unique part | |
* of the interface to store settings for. | |
*/ |
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
{ | |
"repos": { | |
"determined-ai/determined": { | |
"id": 253846879, | |
"node_id": "MDEwOlJlcG9zaXRvcnkyNTM4NDY4Nzk=", | |
"name": "determined", | |
"full_name": "determined-ai/determined", | |
"private": false, | |
"owner": { | |
"login": "determined-ai", |
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
diff --git a/anyrun/src/main.rs b/anyrun/src/main.rs | |
index fb9f62e..d4594da 100644 | |
--- a/anyrun/src/main.rs | |
+++ b/anyrun/src/main.rs | |
@@ -294,9 +294,21 @@ fn main() { | |
} | |
fn activate(app: >k::Application, runtime_data: Rc<RefCell<RuntimeData>>) { | |
+ let monitor = gdk::Screen::default() | |
+ .expect("Failed to get GDK screen for CSS provider!"); |
OlderNewer