Copyright © 2017 Knowledge Powerhouse
Discover gists
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
namespace functions; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Clear(); | |
string filePath = "map.txt"; | |
char[,] map = GetMap(filePath); |
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
Full log: | |
W: Support for running offline not available (unshare: unshare failed: Operation not permitted) | |
I: config: PASS in 0:00:02.909253 | |
I: default: FAIL in 0:00:01.552091 | |
I: kernel: SKIP in 0:00:00.000006 | |
I: xipkernel: SKIP in 0:00:00.000002 | |
I: modules: SKIP in 0:00:00.002903 | |
I: dtbs: PASS in 0:00:00.629088 | |
I: dtbs-legacy: SKIP in 0:00:00.002674 | |
I: debugkernel: SKIP in 0:00:00.000003 |
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
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8)) | |
equalized = clahe.apply(gray_image) |
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 telegram.ext import Application, CommandHandler, MessageHandler, filters, CallbackQueryHandler | |
from telegram import InlineKeyboardButton, InlineKeyboardMarkup | |
from telegram.error import ChatMigrated | |
import logging | |
import requests | |
import re | |
logging.basicConfig(level=logging.INFO) | |
TOKEN = '' |
/Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py
/Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:99:11 - error: "Meta" overrides symbol of same name in class "BaseForm"
"nautobot_floor_plan.forms.FloorPlanForm.Meta" is not assignable to "django.forms.forms.BaseForm.Meta"
Type "type[nautobot_floor_plan.forms.FloorPlanForm.Meta]" is not assignable to type "type[django.forms.forms.BaseForm.Meta]" (reportIncompatibleVariableOverride)
/Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:111:13 - error: "__setitem__" method not defined on type "Mapping[str, Any]" (reportIndexIssue)
/Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:112:13 - error: "__setitem__" method not defined on type "Mapping[str, Any]" (reportIndexIssue)
/Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:115:13 - error: "__setitem__" method not defined on type "Map
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 SwiftUI | |
import SwiftUINavigation | |
@main | |
struct NavigationApp: App { | |
var body: some Scene { | |
WindowGroup { | |
StackView() | |
} |
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
Log uploaded on Tuesday, February 11, 2025, 3:19:03 PM | |
Loaded mods: | |
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0) | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Performance Fish(bs.performance): PerformanceFish(0.6.2) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) |
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 fastapi import APIRouter, Request | |
from opentelemetry import trace | |
from opentelemetry.trace import Status, StatusCode | |
from starlette.routing import Route | |
from typing import Callable | |
# Custom route class with OpenTelemetry instrumentation | |
class TracedRoute(Route): | |
def __init__(self, path: str, endpoint: Callable, **kwargs): | |
super().__init__(path, endpoint, **kwargs) |
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
{ | |
"scored_predictions": [ | |
{ | |
"concrete_prediction": "By 2022, GPT-3 will be considered obsolete due to the emergence of more advanced multimodal transformer models developed by major companies.", | |
"resolution_year": 2022, | |
"prediction_year": 2021, | |
"score": { | |
"score": 0, | |
"rationale": "The prediction claimed that by 2022 GPT-3 would be considered obsolete due to new, advanced multimodal transformer models from major companies. However, while multimodal models (like DALL-E 2) did emerge in 2022, GPT-3 itself remained widely used and influential. It continued to serve as a foundational model for many applications, and its derivatives (such as the models behind ChatGPT) built upon its architecture rather than rendering it obsolete." | |
} |