Skip to content

Instantly share code, notes, and snippets.

View siedentop's full-sized avatar
👋

Christoph Siedentop siedentop

👋
View GitHub Profile
@siedentop
siedentop / CMakeLists.txt
Created May 16, 2021 21:49
Comparing Linked List and Vector
cmake_minimum_required(VERSION 3.20)
project(LinkedListBenchmark)
set(CMAKE_CXX_STANDARD 17)
find_package(benchmark REQUIRED)
add_executable(bench bench.cc)
target_link_libraries(bench benchmark::benchmark)
@siedentop
siedentop / Pipfile
Last active November 30, 2020 07:17
Compute the northern latitude where total daylight time is the same in May (31 days) and June (30 days).
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
pint = "*"
sympy = "*"
scipy = "*"
@siedentop
siedentop / github_query.graphql
Created November 4, 2020 01:03
GraphQL-Client (Rust) failing input
query($endCursor: String, $login: String!) {
user(login: $login) {
repositories(
first: 100
after: $endCursor
orderBy: { field: STARGAZERS, direction: DESC }
) {
nodes {
nameWithOwner
isFork
use anyhow::Result;
use std::fs::File;
use std::io::{BufRead, BufReader};
use walkdir::WalkDir;
/// Inspired by http://jmoiron.net/blog/cpp-deserves-its-bad-reputation/
fn main() -> Result<()> {
let mut counter = std::collections::BTreeMap::new();
@siedentop
siedentop / Pipfile
Last active August 17, 2020 00:33
Midi Keyboard as Computer Keyboard. Upper case through pressing faster.
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
black = "*"
[packages]
py-midi = "*"
@siedentop
siedentop / radio-debug.log
Created July 19, 2020 17:48
Oxidize Workshop 2020 - Issue with incomplete execution
DEBUG:dk -- Initializing the board
DEBUG:dk -- Clocks configured
DEBUG:dk -- RTC started
DEBUG:dk -- I/O pins have been configured for digital output
DEBUG:dk -- Radio initialized and configured with TX power set to the maximum value
INFO:radio_debug -- 78 - 41 - 1114111 - false - false
INFO:radio_debug -- 75 - 70 - 1114111 - false - false
INFO:radio_debug -- 98 - 73 - 1114111 - false - false
INFO:radio_debug -- 101 - 88 - 1114111 - false - false
INFO:radio_debug -- 126 - 83 - 1114111 - false - false
@siedentop
siedentop / Pipfile.lock
Last active July 14, 2020 18:04
Trying out the new Sentry Performance monitoring feature
{
"_meta": {
"hash": {
"sha256": "4c3c3988cee9ef0aabedb0fe77f041c143b7c7fdde2feb775bb0578948a09288"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.7"
},
"sources": [
@siedentop
siedentop / hermite.m
Created November 26, 2010 09:49
hermite.m % Using a better approach to recursion
classdef hermite
% Hermite class for hermite functions
properties
x
polynomes
hermites
end
methods
function self = hermite(x, n)
def test_get_tags(self):
self.blob_with_tags = Blob.objects.create(caption="Hello", slug='foo', tags="ab")
self.failUnlessEqual(self.blob_with_tags.get_tags(), [Tag(name="ab")]) #BUG FIXME
=============================
======================================================================
FAIL: test_get_tags (blobs.tests.BlobTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/chris/devel/assistant/blobs/tests.py", line 34, in test_get_tags