Skip to content

Instantly share code, notes, and snippets.

View timakro's full-sized avatar

Tim Schumacher timakro

  • Darmstadt, Germany
View GitHub Profile
@twisteroidambassador
twisteroidambassador / distinguish_cancellation.py
Created February 20, 2019 03:15
Determine whether task was cancelled from inside or outside
import asyncio
class CancelledFromOutside(asyncio.CancelledError):
pass
class CancelledFromInside(asyncio.CancelledError):
pass
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 16, 2025 21:45
set -e, -u, -o, -x pipefail explanation
@asimshankar
asimshankar / README.md
Last active December 25, 2024 22:44
Training TensorFlow models in C++

Training TensorFlow models in C++

Python is the primary language in which TensorFlow models are typically developed and trained. TensorFlow does have bindings for other programming languages. These bindings have the low-level primitives that are required to build a more complete API, however, lack much of the higher-level API richness of the Python bindings, particularly for defining the model structure.

This file demonstrates taking a model (a TensorFlow graph) created by a Python program and running the training loop in C++.

@mikesmullin
mikesmullin / x86-assembly-notes.md
Last active April 22, 2025 00:25
Notes on x86-64 Assembly and Machine Code

Mike's x86-64 Assembly (ASM) Notes

Assembling Binary Machine Code

Operating Modes:

These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.

Modern operating systems, booted inside Real mode,

From 7341a316c38a61cc745ce04e618916677007883b Mon Sep 17 00:00:00 2001
From: Timothy Brom <[email protected]>
Date: Wed, 29 Feb 2012 11:29:55 -0500
Subject: [PATCH] Fixed error about strexh and strexb using the same register
---
example/libs_stm/inc/core_support/core_cm3.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/example/libs_stm/inc/core_support/core_cm3.c b/example/libs_stm/inc/core_support/core_cm3.c