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
defmodule App.ModelManager do | |
require Logger | |
use GenServer | |
def start_link(_) do | |
GenServer.start_link(__MODULE__, %{}, name: __MODULE__) | |
end | |
def init(_) do | |
state = %{current_model: nil, model_name: nil} |
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
defmodule BenchmarkReduceWhile do | |
def has_duplicates?(list) do | |
Enum.reduce_while(list, %MapSet{}, fn x, seen -> | |
if MapSet.member?(seen, x) do | |
{:halt, true} | |
else | |
{:cont, MapSet.put(seen, x)} | |
end | |
end) || false | |
end |
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
static void check_props(struct impl *impl) { | |
uint32_t i; | |
for (i=0; i<impl->props->dict.n_items; i++) { | |
if (spa_strstartswith(impl->props->dict.items[i].key, "media.")) | |
pw_log_debug("tag props %s", impl->props->dict.items[i].key); | |
} | |
} | |
static void check_combine_props(struct impl *impl) { | |
uint32_t i; |
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
<url>artsandculture.google.com/asset/sitting-girl/xwhvu3qcsd2hmq</title> | |
<current-date>14/04/24 15:10</current-date> | |
<title>Sitting Girl - Candido Portinari — Google Arts & Culture</title> | |
WEBPAGE CONTEXT FOR OUR DIALOGUE: | |
Identify yourself as an AI model that is part of the Arc web browser, within the Arc Max bundle of features. | |
RULES: | |
1. stay in my role throughout the dialogue | |
2. when asked a question, decide if I can answer based on information on the page. If the page answers the question, directly quote the relevant sentence on the page using an <excerpt> tag on its own line. Then, summarize the answer in 10 words on the next line. |
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/python3 | |
import os | |
import random | |
import subprocess | |
import shutil | |
SRC_DIR = os.getenv('SRC_DIR', '/mnt/user/appdata/plex/source_prerolls') | |
DEST_DIR = os.getenv('DEST_DIR', '/mnt/user/appdata/plex/prerolls') | |
def get_duration(filename): |
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
## ES Dev Mapper ## | |
Xbox 360 Controller :: 030000005e0400008e02000010010000 | |
Atari Classic Controller :: 03000000503200000110000000000000 | |
GPIO Controller 1 :: 15000000010000000100000000010000 | |
GPIO Controller 2 :: 15000000010000000200000000010000 | |
Xin-Mo Xin-Mo Dual Arcade :: 03000000c0160000e105000001010000 | |
Broadcom Bluetooth Wireless Joystick :: 0500000042726f6164636f6d20426c00 | |
Xbox Gamepad (userspace driver) :: 0000000058626f782047616d65706100 | |
Xbox 360 Wireless Receiver (XBOX) :: 030000005e040000a102000007010000 | |
Generic Xbox pad :: 030000005e0400000a0b000005040000 |
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
21:34:49-589764 ERROR Exception: 'StableDiffusionXLPipeline' object has no attribute 'sd_checkpoint_info' | |
21:34:49-590901 ERROR Arguments: args=('task(amcuxo043drhk4o)', 'cat', '', [], 20, 0, False, False, 1, 1, 6, 1, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 2, | |
'Latent', 0, 0, 0, [], 0, False, False, 'positive', 'comma', 0, False, False, '', 0, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, False) | |
kwargs={} | |
21:34:49-592597 ERROR gradio call: AttributeError | |
╭───────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────╮ | |
│ /home/lunks/code/automatic/modules/call_queue.py:34 in f │ | |
│ |
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/python3 | |
import os | |
import random | |
import subprocess | |
import shutil | |
SRC_DIR = os.getenv('SRC_DIR', '/mnt/user/appdata/plex/source_prerolls') | |
DEST_DIR = os.getenv('DEST_DIR', '/mnt/user/appdata/plex/prerolls') | |
def get_duration(filename): |
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 ruby:2.7.1 | |
# Install Node.js | |
RUN curl --silent --location https://deb.nodesource.com/setup_14.x | bash - | |
RUN apt-get install --yes nodejs | |
RUN apt-get install --yes libsodium23 | |
RUN apt-get install --yes build-essential | |
RUN npm install -g yarn | |
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
default: &default | |
adapter: postgresql | |
encoding: utf8 | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS", 5) %> | |
local: &local | |
<<: *default | |
host: <%= ENV.fetch("PGHOST", "localhost") %> | |
username: <%= ENV.fetch("PGUSER", `whoami`.strip) %> | |
password: <%= ENV.fetch("PGPASSWORD", "") %> |
NewerOlder