Skip to content

Instantly share code, notes, and snippets.

View tomconder's full-sized avatar
Having fun

Tom Conder tomconder

Having fun
View GitHub Profile
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module 'E:\IdeaProjects\.vcpkg\vcpkg\scripts\posh-vcpkg'
@tomconder
tomconder / config.json
Last active July 23, 2024 15:51
Configuration for the Continue.dev IDE Plugin
{
"models": [
{
"title": "Granite Code 8B",
"provider": "ollama",
"model": "granite-code:8b",
"apiBase": "http://localhost:11434",
"completionOptions": {},
"num_thread": {
"options.numThreads": 6
@tomconder
tomconder / reset.css
Created May 6, 2024 19:39
A reset stylesheet is to reduce browser inconsistencies
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@tomconder
tomconder / splitmix64.c
Created May 4, 2024 20:26
SplitMix64 - very fast PRNG based on SplittableRandom
/* Written in 2015 by Sebastiano Vigna (vigna@acm.org)
To the extent possible under law, the author has dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
See <http://creativecommons.org/publicdomain/zero/1.0/>. */
#include <stdint.h>
@tomconder
tomconder / watch.js
Last active March 17, 2021 00:09
Graphviz - watch for changes in hello.gz
#!/usr/bin/env node
const chokidar = require('chokidar');
const spawn = require('child_process').spawn;
const fs = require('fs');
// watch for changes in hello.gv and generate hello.png
chokidar.watch('hello.gv')
.on('change', (event, path) => {