Skip to content

Instantly share code, notes, and snippets.

@jpz
jpz / a.cpp
Last active April 18, 2023 09:53
mutually dependent binaries
#include <iostream>
__declspec(dllimport) void b();
__declspec(dllexport) void a()
{
std::cout << "a()\n";
}
void calls_other_b()
@jpz
jpz / jupysql-and-duckdb.ipynb
Created February 8, 2023 14:11
Example of using SQL over pandas dataframes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jpz
jpz / conda_setup.md
Last active February 15, 2024 15:56
Using Conda to Create C++ Environments

Using Conda to Create C++ Environments

Conda is a package manager, which arose from the Data Science and Python community to manage complicated binary and source deployments.

It can be leveraged for non-Python environments also.

From our experience of COMP6771 2020, we required an install of clang, along with C++ libraries.

@jpz
jpz / # llvm - 2020-05-30_21-37-00.txt
Created May 30, 2020 13:37
llvm on macOS 10.15.5 - Homebrew build logs
Homebrew build logs for llvm on macOS 10.15.5
Build date: 2020-05-30 21:37:00
@jpz
jpz / # llvm - 2020-05-30_12-14-28.txt
Created May 30, 2020 04:00
llvm on macOS 10.15.5 - Homebrew build logs
Homebrew build logs for llvm on macOS 10.15.5
Build date: 2020-05-30 12:14:28
@jpz
jpz / # llvm - 2020-05-29_14-33-29.txt
Created May 29, 2020 08:33
llvm on macOS 10.15.5 - Homebrew build logs
Homebrew build logs for llvm on macOS 10.15.5
Build date: 2020-05-29 14:33:29
@jpz
jpz / # octave - 2018-04-21_02-28-03.txt
Created April 20, 2018 16:34
octave on macOS 10.13.3 - Homebrew build logs
Homebrew build logs for octave on macOS 10.13.3
Build date: 2018-04-21 02:28:03
@jpz
jpz / touchback_birthtime.py
Created December 15, 2016 13:45
Touches the creation times (st_birthtime) back to the modified time for files on MacOS, where the creation time is greater than the modified datetime
#!/usr/bin/env python3
# this small script touches the creation times (st_birthtime) back to the modified time
# for files on MacOS, where the creation time is greater than the modified datetime.
#
# fixes a small problem I had with some very old photo files...
from subprocess import check_output, PIPE
import sys, dateparser