Skip to content

Instantly share code, notes, and snippets.


Brad Parks bradparks

  • Fredericton, New Brunswick, Canada
View GitHub Profile
bradparks / activetable.js
Created Jul 12, 2022 — forked from stevesouders/activetable.js
ActiveTable is a bookmarklet that makes any table sortable. It also allows you to remove columns, and it remembers the removed columns for next time. Use alt+click to UNhide all columns (and clear memory). To use it, create a bookmark called "ActiveTable" that has this URL: javascript:(function(){ var jselem=document.createElement('SCRIPT'); jse…
View activetable.js
// ActiveTable - a bookmarklet to make tables sortable and editable
function init() {
var aHrows = getHrows();
var numHrows = aHrows.length;
var aHidden = getHiddenColumns();
ATpopup = document.createElement("div"); = "position: absolute; visibility: hidden; padding: 0; font-family: Arial; background-color: rgba(255, 255, 255, 0.9); border-radius: .5em; text-align: center; box-shadow: .05em .05em .5em #00C;";
ATpopup.innerHTML = "<a href='sort' title='sort' onclick='sortColumn(); return false'><img border=0 src='' style='padding-top: 0.2em;'></a><br><a href='hide' style='color: #C00; font-family: monospace; font-size: 1.5em; text-decoration: none;' title='hide' onclick='hideColumn(); return false'>x</a>"; // TODO - use protocol-less URL for img
bradparks /
Created Mar 3, 2022 — forked from j1o1h1n/
This is a demo of an interactive console in a Textual user interface.
from __future__ import annotations
import string
import code
import sys
import io
from typing import Callable
from import App
from textual.widgets import Header, ScrollView
View gist:946fe383953fc2a86a1aebd0fbab2c93
  • leave at 10:30

  • Switch

  • portable hand sanitizer

  • 5 Masks

  • wear KN95 mask and don’t take off/eat on bus so make sure he has something good to eat as it’s a long drive

  • something warm on body and feet and clothes and underwear as well as toothbrush

  • two outfits, small, so you could keep pack on bus, otherwise they put it underneath, takes longer.

  • headphones

View gist:ea5fbaac9cd3b5175a63acb06d3eb4cc
The Lab - free VR mini gameso, works on Flat screens too
nextvr - live events, like nba, etc
fitxr - group fitness
guided meditation VR or the blue
360 cities app
YouTube VR, National Geographic Explore, Ocean Rift
Spatial - meetings
Escape Rooms
Google Earth VR
bradparks / gist:7025742
Created Oct 17, 2013
My autohotkey config for a Mac keyboard (i'm using this with Windows running in a virtual machine on osx). Has some mappings for how I like to use Visual Studio (like I use Eclipse)
View gist:7025742
#+f::Send {Ctrl Down}{Shift Down}r{Ctrl Up}{Shift Up}
; Mac keyboard to Windows Key Mappings
; --------------------------------------------------------------
bradparks / Docker
Created Sep 2, 2021 — forked from mitchwongho/Docker
Docker 'run' command to start an interactive BaSH session
View Docker
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
bradparks /
Created May 20, 2021 — forked from Birch-san/
Make a macOS executable binary or .dylib portable
#!/usr/bin/env bash
# Licensed by author Alex Birch under CC BY-SA 4.0
# Example input:
# ./ mycoolbinary
# where mycoolbinary is a mach-o object file
# (for example an executable binary or a .dylib)
bradparks / Dockerfile
Created Apr 9, 2021 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
View Dockerfile
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
bradparks / AddCustomEditorMenuItem.cs
Created Feb 26, 2021 — forked from Domiii/AddCustomEditorMenuItem.cs
Adds a new "Add custom Editor" MenuItem to Script files in the Unity Project view (download *.unitypackage file here: )
View AddCustomEditorMenuItem.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Text.RegularExpressions;
bradparks /
Last active Feb 24, 2021
NOTE: Instead of using a static IP, consider using avanhi as detailed here to setup a DNS name for your pi super easy: If you'd rather try the static IP, then the following is a script to automatically set your raspberry pi to using a static IP address.
# This script MAY or MAY NOT WORK ;-) Really, untested. But you can cancel before it does anything
# and it actually shows you what you need to add to your dhcpcd.conf file without making
# any changes.
if [ "$EUID" -ne 0 ]
then echo "Please run as root, by putting 'sudo' before the command."
# Figure out the info we'll need to overwrite the /etc/dhcpcd.conf file