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
""" | |
The purpose of this script is to mash three elongated toruses, linked as | |
Borromean Rings, into a single circular torus. | |
https://en.wikipedia.org/wiki/Borromean_ringshttps://en.wikipedia.org/wiki/Borromean_rings | |
The script starts in a state where the linked rings do not touch. | |
Then it reduces both elogation and angles in small steps, removing the | |
overlap and smoothing the resulting mesh every time, until the link | |
lies flat and is no longer stretched. |
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 trio | |
import outcome | |
from contextlib import asynccontextmanager | |
class StreamResultsNursery: | |
def __init__(self, max_buffer_size=1): | |
self.nursery = trio.open_nursery() | |
self.max_buffer_size = max_buffer_size |
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 | |
from sexpdata import dump,load,Symbol, dumps as ds | |
import click | |
import sys | |
skip = set(("rotate",)) | |
scaled = set(("xy","xyz","at","size","start","end")) | |
scaled_width = set(("thickness","width")) |
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
[0:motion] [NTC] [ALL] [Dec 06 12:18:56] motion_startup: Motion 4.4.0 Started | |
[0:motion] [NTC] [ALL] [Dec 06 12:18:56] motion_startup: Using log type (ALL) log level (ALL) | |
[0:motion] [INF] [ALL] [Dec 06 12:18:56] conf_output_parms: Writing configuration parameters from all files (1): | |
[0:motion] [INF] [ALL] [Dec 06 12:18:56] Thread 0 - Config file: /etc/motion/motion.conf | |
[0:motion] [INF] [ALL] [Dec 06 12:18:56] daemon off | |
[0:motion] [INF] [ALL] [Dec 06 12:18:56] setup_mode off | |
[0:motion] [INF] [ALL] [Dec 06 12:18:56] pid_file | |
[0:motion] [INF] [ALL] [Dec 06 12:18:56] log_file /dev/stderr | |
[0:motion] [INF] [ALL] [Dec 06 12:18:56] log_level 9 | |
[0:motion] [INF] [ALL] [Dec 06 12:18:56] log_type all |
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
daemon off | |
setup_mode off | |
log_level 7 | |
log_type all | |
input -1 | |
rotate 0 | |
width 1280 | |
height 1024 | |
framerate 5 | |
minimum_frame_time 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
diff --git a/src/Host.cpp b/src/Host.cpp | |
index 73df2d40..10103f95 100644 | |
--- a/src/Host.cpp | |
+++ b/src/Host.cpp | |
@@ -2598,3 +2598,13 @@ void Host::setCompactInputLine(const bool state) | |
} | |
} | |
} | |
+ | |
+QPointer<TConsole> Host::findConsole(QString name) |
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 anyio | |
from contextlib import asynccontextmanager | |
class NotYet(RuntimeError): | |
pass | |
class ResultGatheringTaskgroup: | |
def __init__(self): | |
self.result = [] |
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
02-04 18:45:04.978 21417 23932 E ChromeSync: [Sync,SyncAdapter] Failed to sync. | |
02-04 18:45:04.978 21417 23932 E ChromeSync: rfa: Error when calling the server (message: deadline exceeded after 9.997384271s. [buffered_nanos=9999504632, waiting_for_connection]). | |
02-04 18:45:04.978 21417 23932 E ChromeSync: at rjq.b(:com.google.android.gms@20104037@20.1.04 (120400-288960190):93) | |
02-04 18:45:04.978 21417 23932 E ChromeSync: at rjk.a(:com.google.android.gms@20104037@20.1.04 (120400-288960190):25) | |
02-04 18:45:04.978 21417 23932 E ChromeSync: at tcl.onPerformSync(:com.google.android.gms@20104037@20.1.04 (120400-288960190):9) | |
02-04 18:45:04.978 21417 23932 E ChromeSync: at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:334) | |
02-04 18:45:04.978 21417 23932 E ChromeSync: Caused by: ciwd: DEADLINE_EXCEEDED: deadline exceeded after 9.997384271s. [buffered_nanos=9999504632, waiting_for_connection] | |
02-04 18:45:04.978 21417 23932 E ChromeSync: at ciwc.c(:com.google.android.g |
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 | |
""" | |
This is example code for a multiplexing client/server protocol. | |
Missing: | |
* server capacity management | |
* actual testcases for error propagation and cancellation | |
* handle badly-formatted messages without crashing the server | |
* sending more than one request or reply per interaction |
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 trio | |
import random | |
from collections import deque | |
WORKER_COUNT = 10 | |
tasks = range(103) | |
class WorkQueue: | |
def __init__(self, workers): |
NewerOlder