Skip to content

Instantly share code, notes, and snippets.

=== libatomic tests ===
Schedule of variations:
unix
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../gcc-original/libatomic/testsuite/config/default.exp as tool-and-target-specific interface file.
Running ../../../../gcc-original/libatomic/testsuite/libatomic.c/c.exp ...
Thread 1 "stepmania-debug" received signal SIGFPE, Arithmetic exception.
0x0000555555f95654 in DancingCharacters::Update (this=0x555559631ff0, fDelta=0.00692800013) at /home/oipo-unencrypted/stepmania/src/DancingCharacters.cpp:278
278 iCurBeat -= iCurBeat % NewBeatToSet;
(gdb) bt
#0 0x0000555555f95654 in DancingCharacters::Update(float) (this=0x555559631ff0, fDelta=0.00692800013) at /home/oipo-unencrypted/stepmania/src/DancingCharacters.cpp:278
#1 0x0000555555f81be4 in BackgroundImpl::Update(float) (this=0x55555995c160, fDeltaTime=0.00692800013) at /home/oipo-unencrypted/stepmania/src/Background.cpp:834
#2 0x0000555555efe110 in ActorFrame::UpdateInternal(float) (this=0x55555950da60, fDeltaTime=0.00692800013) at /home/oipo-unencrypted/stepmania/src/ActorFrame.cpp:480
#3 0x0000555555ee7c0c in Actor::Update(float) (this=0x55555950da60, fDeltaTime=0.00692800013) at /home/oipo-unencrypted/stepmania/src/Actor.cpp:892
#4 0x0000555555efe110 in ActorFrame::UpdateInternal(float) (this=0x55555a494d30, fDeltaTime=
Thank you for your interest in the Land Of The Rair core2 project. In order to clarify the intellectual property license granted with contributions of software from any person or entity (the “Contributor”), Volt Software would like to have a Contributor License Agreement on file that has been signed by the Contributor, indicating agreement to the license terms below. this license is for your protection as a Contributor of software to core2 and does not change your right to use your own contributions for any other purpose.
You and Volt Software hereby accept and agree to the following terms and conditions:
Your "Contributions" means all of your past, present and future contributions of object code, source code and documentation to core2, however submitted to core2, excluding any submissions that are conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
You hereby grant to Volt Software a non-exclusive, irrevocable, worldwide, no-charge, transferable copyright lice
optional<spawner_script> get_spawner_script(string const &script_file) {
string actual_script_file = "assets/scripts/spawners/" + script_file + ".yml";
spawner_script script;
spdlog::trace("{} loading script {}", __FUNCTION__, actual_script_file);
try {
YAML::Node config = YAML::LoadFile(actual_script_file);
script.respawn_rate = config["respawnRate"].as<uint32_t>();
script.initial_spawn = config["initialSpawn"].as<uint32_t>();
import websocket
ws = websocket.WebSocket()
ws.connect("ws://localhost:8080/")
ws.send("{\"type\": \"register\", \"username\": \"oipo\", \"password\": \"test\", \"email\": \"test@test.nl\"}")
res = ws.recv()
print(f'res: {res}')
import { CensorSensor } from 'censor-sensor';
declare function require(name:string);
const { PerformanceObserver, performance } = require('perf_hooks');
//import { performance } from 'perf_hooks';
const censor = new CensorSensor();
let start = performance.now();
for(let i = 0; i < 10000000; i++) {
censor.isProfane("this is bollocks");
// call one (EXECUTE_TASK_WITH_INIT)
400414: 52800033 mov w19, #0x1 // #1
400418: b9004bb3 str w19, [x29, #72]
40041c: b9004fbf str wzr, [x29, #76]
400420: b90053b3 str w19, [x29, #80]
400424: b90057b3 str w19, [x29, #84]
400428: b9005bbf str wzr, [x29, #88]
40042c: b9005fbf str wzr, [x29, #92]
400430: 90000475 adrp x21, 48c000 <__FRAME_END__+0x10334>
400434: f947b2b5 ldr x21, [x21, #3936]
import itertools
from multiprocessing import Queue, Value
import MainConfig
from Tasks.ITask import ITask
from typing import List, Iterator, Tuple
from BenchmarkConfig import Benchmark, Task
from Tasks.RunSingleSimulationTask import RunSingleSimulationTask
board schrodingerscat {
ownable card {
type enum alive | dead | empty | heisenberg
}
global gamble {
integer count_normal 0
integer count_empty 0
type enum alive | dead | empty
}
average xs = div (fromInteger (sum xs)) (fromInteger (length xs))
Couldn't match expected type ‘Integer’ with actual type ‘Int’
In the first argument of ‘fromInteger’, namely ‘(length xs)’
In the second argument of ‘div’, namely ‘(fromInteger (length xs))’
Failed, modules loaded: none.
average xs = div (fromInteger (sum xs)) ((length xs))