Skip to content

Instantly share code, notes, and snippets.

@dberlin
dberlin / svelte-compiled-createTable.js
Created March 3, 2025 00:08
Comple createTable post-svelte-compiler
/* createTable.svelte.js generated by Svelte v5.20.5 */
import*as $ from "/node_modules/.vite/deps/svelte_internal_client.js?v=d66895d6";
import {constructTable, coreFeatures, getInitialTableState, isFunction} from "/@fs/Users/dannyb/sources/tanstack-table-alpha/packages/table-core/dist/esm/index.js";
export function createTable(tableOptions) {
const _features = {
...coreFeatures,
...tableOptions._features
};
@dberlin
dberlin / docusaurus.diff
Created February 19, 2025 00:38
breaking docusaurus
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index f443d727..120445b7 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -309,11 +309,12 @@ async function createConfig() {
defer: true,
});
- config.scripts.push({
+ /*
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index f443d727..120445b7 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -309,11 +309,12 @@ async function createConfig() {
defer: true,
});
- config.scripts.push({
+ /*
-- Define infinity.
local INF = math.huge
-- The Floyd–Warshall algorithm.
local function floydWarshall(dist)
local n = #dist
-- For each intermediate node k.
for k = 1, n do
local dk = dist[k] -- local reference to row k (for performance)
for i = 1, n do
< 1><0x0000626b> DW_TAG_typedef
DW_AT_type <0x0000627a>
DW_AT_name p_acc0_cpu0_impl_hid18_v5_t
DW_AT_decl_file 0x00000017 /AppleInternal/Library/BuildRoots/8a51e4ad-7e8b-11ee-8cd8-2a65a1af8551/Applications/Xcode
.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.Internal.sdk/usr/local/include/EmbeddedHeaders/soc/module/p_acc0_v5.h
DW_AT_decl_line 0x000775ab
< 1><0x0000627a> DW_TAG_union_type
DW_AT_name _p_acc0_cpu0_impl_hid18_v5
DW_AT_byte_size 8
DW_AT_decl_file 0x00000017 /AppleInternal/Library/BuildRoots/8a51e4ad-7e8b-11ee-8cd8-2a65a1af8551/Applications/Xcode
@dberlin
dberlin / main.rs
Created March 20, 2023 13:38
Crashing example
#![feature(asm_experimental_arch)]
#![feature(naked_functions)]
#![feature(type_alias_impl_trait)]
#![no_std]
#![no_main]
use arr_macro::arr;
use esp32s3_hal::{
clock::{ClockControl, CpuClock},
peripherals::Peripherals,
diff --git a/include/retdec/llvmir2hll/graphs/cfg/cfg_traversal.h b/include/retdec/llvmir2hll/graphs/cfg/cfg_traversal.h
index 4905a90..4a9849a 100644
--- a/include/retdec/llvmir2hll/graphs/cfg/cfg_traversal.h
+++ b/include/retdec/llvmir2hll/graphs/cfg/cfg_traversal.h
@@ -7,6 +7,9 @@
#ifndef RETDEC_LLVMIR2HLL_GRAPHS_CFG_CFG_TRAVERSAL_H
#define RETDEC_LLVMIR2HLL_GRAPHS_CFG_CFG_TRAVERSAL_H
+#include <unordered_map>
+#include <unordered_set>
diff --git a/include/retdec/llvmir2hll/graphs/cfg/cfg_traversal.h b/include/retdec/llvmir2hll/graphs/cfg/cfg_traversal.h
index 4905a90..4a9849a 100644
--- a/include/retdec/llvmir2hll/graphs/cfg/cfg_traversal.h
+++ b/include/retdec/llvmir2hll/graphs/cfg/cfg_traversal.h
@@ -7,6 +7,9 @@
#ifndef RETDEC_LLVMIR2HLL_GRAPHS_CFG_CFG_TRAVERSAL_H
#define RETDEC_LLVMIR2HLL_GRAPHS_CFG_CFG_TRAVERSAL_H
+#include <unordered_map>
+#include <unordered_set>
@dberlin
dberlin / probe.nc
Last active May 9, 2023 05:04
gcode for wincnc that finds the center of a circle
G90
G92
[X probing]
L210X [Switch low limit on X axis]
[The m28 and g31 on the next line make WinCNC stop when the limit switch is hit instead of aborting like it normally would)
l91 G1X-10 M28 G31 F30 [probe 10 inches in the negative X direction till we trigger the probe]
l212 [switch limits back]
l1 N28 V{AP0} [store current absolute position to register 28]
l91g0X0.05 [back off a little]