Skip to content

Instantly share code, notes, and snippets.


David Pennington Xeoncross

View GitHub Profile
Xeoncross / settings.json
Created Apr 22, 2021
Changes to Alabaster theme to make more text black
View settings.json
"editor.formatOnSave": true,
"workbench.colorTheme": "Alabaster",
"editor.tokenColorCustomizations": {
"[Alabaster]": {
"textMateRules": [{
"scope": "support.class",
"settings": {
"foreground": "#000"
Xeoncross /
Created Apr 17, 2021
Download the full Mac OSX installer image
// the macOS 10.15 version of the softwareupdate command tool contains a new option which allows you to download full installers for specific versions of macOS
// Get Mojave
softwareupdate --fetch-full-installer --full-installer-version 10.14.6
Xeoncross /
Created Apr 9, 2021
Install spaCy on OSX Big Sur

spaCy on Mac Big Sur

Mac OSX ships with python (2) and python3 with pip3.

They should be current enough versions. If not, you can update them.

pip3 install -U pip3 setuptools

First install spaCy

Xeoncross / struct_embedding.go
Last active Apr 1, 2021
Example of using struct enbeding to implement an interface:
View struct_embedding.go
package main
import (
type A struct {
B string
View indicators.js
const LONG = 26;
const SHORT = 12;
const MID = 9;
function sum(inputs) {
return inputs.reduce((s, v) => s + v, 0);
function average(N, inputs) {
return sum(inputs.slice(0, N)) / N;
Xeoncross / .block
Created Mar 12, 2021 — forked from rrag/.block
CandleStickChart with MACD Indicator
View .block
license: MIT
height: 620
Xeoncross / YouTubeURLFormats.txt
Created Jan 16, 2021 — forked from rodrigoborgesdeoliveira/YouTubeURLFormats.txt
Example of the various YouTube url formats
View YouTubeURLFormats.txt
Xeoncross / static_server.go
Last active Jan 1, 2021
Example of using httprouter or gorilla/mux to serve static assets (JS, Images, CSS, etc..) cached in the app binary using
View static_server.go
router := httprouter.New()
router.HandlerFunc("GET", "/", index())
router.Handler("GET", "/static/*filepath", http.StripPrefix("/static/", http.FileServer(pkger.Dir("/public/static"))))
router := mux.NewRouter()
router.HandleFunc("/", index())
router.PathPrefix("/static").Handler(http.StripPrefix("/static/", http.FileServer(pkger.Dir("/public/static"))))
Xeoncross /
Created Nov 7, 2020
Remove Ubuntu, Debian, Android, etc... from windows computer
# You can do this using cmd run as administrator from the desktop
# (or if using a Windows 10 S-Mode computer from the startup repair or a USB drive).
$ diskpart
> list vol
# Find the Fat32, 100MB/260MB EFI volume and select it:
> select volume 3
> assign letter=z
> exit
Xeoncross / aes.go
Created Oct 16, 2020 — forked from tscholl2/aes.go
simple AES encryption/decryption example with PBKDF2 key derivation in Go, Javascript, and Python
View aes.go
package main
import (