This file contains 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!"); |
This file contains 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 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 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 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 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 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
package nonemptystring | |
import macrame.delegate | |
import scala.collection.immutable.StringOps | |
final case class NonEmptyString(val head : Char, val tail : String) { | |
@delegate | |
override def toString : String = head + tail | |
} |
This file contains 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
#! /usr/bin/env python3 | |
import sys | |
import time | |
def main(): | |
spinner = Spinner() | |
for x in range(20): | |
time.sleep(0.2) |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains 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
9ab3716 | |
explore | |
c4a8e90c | |
8baef12e | |
e5b3acca | |
2b2450d4 | |
dec1c552 | |
2382 | |
1155e288 | |
2067 |
This file contains 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
type 'a monad = { bind : 'b. ('a -> 'b monad) -> 'b monad } | |
type 'a option = { getOrElse : 'a -> 'a } | |
let none = { getOrElse = (fun b -> b); bind = fun f -> none};; | |
let some a = { getOrElse = (fun b -> a); bind = fun f -> f a};; |
NewerOlder