Skip to content

Instantly share code, notes, and snippets.

@JamesWP
JamesWP / db.rs
Created June 24, 2023 10:30
Rust structs to support sqlite like vm operations
use std::cell::RefCell;
use std::fmt::Debug;
use std::rc::Rc;
use std::rc::Weak;
#[derive(Debug)]
struct DataSource {}
#[derive(Debug)]
struct Database {
@JamesWP
JamesWP / error.log
Created April 25, 2021 14:27
planck-js typescript errors
node_modules/planck-js/lib/index.d.ts:672:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
672 let internal: any;
~~~
@JamesWP
JamesWP / output.svg
Created March 27, 2021 23:27
Linux perf cpu + process scheduling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JamesWP
JamesWP / textbox.hh
Created February 2, 2018 00:44 — forked from bisqwit/textbox.hh
Abstraction for 2-dimensional text strings with VT100 linedrawing support; and a tree structure visualizer function
#include <string>
#include <vector>
#include <algorithm>
/* textbox: Abstraction for 2-dimensional text strings, with VT100 linedrawing support */
/* Copyright (c) 2017 Joel Yliluoma - http://iki.fi/bisqwit/ */
/* License: MIT */
/* Requires a C++17 capable compiler and standard library. */
struct textbox
{
#include <fstream>
#include <iostream>
#include <set>
#include <sstream>
std::set<std::string> variables;
std::ostringstream proc;
int main(int argc, char* argv[])
{
dev-vcs/git -X
# required by sys-devel/clang-3.9.1-r100::gentoo
# required by sys-devel/clang (argument)
>=sys-devel/llvm-3.9.1-r1 clang
app-editors/vim python
dev-libs/boost python
app-admin/sudo offensive
These are the packages that would be merged, in order:
Calculating dependencies .... done!
[ebuild N ~] sys-devel/llvm-common-5.0.0::gentoo 22,864 KiB
[ebuild N ] sys-libs/libunwind-1.2.1:7::gentoo USE="static-libs -debug -debug-frame -doc -libatomic -lzma" ABI_X86="(64) -32 (-x32)" 763 KiB
[ebuild N ] dev-libs/userspace-rcu-0.9.1:0/4::gentoo USE="-regression-test -static-libs {-test}" 458 KiB
[ebuild N ] sys-apps/keyutils-1.5.9-r1::gentoo USE="{-test}" ABI_X86="(64) -32 (-x32)" 73 KiB
[ebuild N ~] dev-util/lttng-ust-2.8.1:0/2.8::gentoo USE="-examples" 726 KiB
[ebuild N ] dev-libs/libev-4.23::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 512 KiB
These are the packages that would be merged, in order:
Calculating dependencies .... done!
[ebuild N ~] sys-devel/llvm-common-5.0.0::gentoo 22,864 KiB
[ebuild N ] dev-python/snowballstemmer-1.2.1::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 49 KiB
[ebuild N ] dev-python/typing-3.5.3.0::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 59 KiB
[ebuild N ] dev-python/imagesize-0.7.1::gentoo USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 3 KiB
[ebuild N ] dev-python/sphinx_rtd_theme-0.1.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 683 KiB
[ebuild N ] dev-python/alabaster-0.7.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 11 KiB
* IMPORTANT: config file '/etc/portage/package.accept_keywords' needs updating.
These are the packages that would be merged, in order:
Calculating dependencies * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
. ... done!
[ebuild N ~] sys-devel/llvm-common-5.0.0::gentoo 22,864 KiB
[ebuild N ] dev-python/typing-3.5.3.0::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 59 KiB
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild N ~] sys-devel/llvm-common-5.0.0::gentoo 22,864 KiB
[ebuild N ] dev-python/typing-3.5.3.0::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 59 KiB
[ebuild N ] dev-python/snowballstemmer-1.2.1::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 49 KiB
[ebuild N ] dev-python/alabaster-0.7.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 11 KiB
[ebuild N ] dev-python/imagesize-0.7.1::gentoo USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 3 KiB
[ebuild N ] dev-python/sphinx_rtd_theme-0.1.9::gentoo PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_5 (-python3_6)" 683 KiB