Skip to content

Instantly share code, notes, and snippets.

View jfhbrook's full-sized avatar
💭
KNEE DEEP IN THE HOOPLA

Josh Holbrook jfhbrook

💭
KNEE DEEP IN THE HOOPLA
View GitHub Profile

Verbtionary

A problem I run into a lot while working with PowerShell is trying to find the right verb to use for a function. PowerShell functions are by convention named with the form {Verb}-{Noun}, and while the Noun can vary wildly (and is in fact often more "the rest of the sentence" than a noun per se), the Verb is supposed to conform to a list of approved PowerShell verbs. Sometimes finding the right verb is easy, especially if the verb you're looking for is already in the list, but sometimes it can be a challenge!

I hacked up an Azure function that hits the Merriam-Webster thesaurus API to look up synonyms for a given search and then sees which of them are included in the output of [Get-Verb](https://docs.microsoft.com/en-us/powershell/modul

@edef1c
edef1c / nixos-option
Last active August 17, 2019 23:22
NixOS deployment scripts
nixos-rebuild
@gwerbin
gwerbin / jupyter-global-setup.sh
Last active October 10, 2018 18:57
Jupyter Conda setup
# Windows instructions are analogous
## Global Jupyter install
conda create -n jupyter python jupyter
echo "alias jupyter-global=/opt/anaconda/envs/jupyter/bin/jupyter" >> ~/.bashrc
## Standard project setup
@fredbenenson
fredbenenson / kickstarter_sql_style_guide.md
Last active April 2, 2024 15:19
Kickstarter SQL Style Guide
layout title description tags
default
SQL Style Guide
A guide to writing clean, clear, and consistent SQL.
data
process

Purpose

@habnabit
habnabit / ircbot.py
Last active January 26, 2023 09:09
an example IRC bot using twisted
import sys
from twisted.internet import defer, endpoints, protocol, reactor, task
from twisted.python import log
from twisted.words.protocols import irc
class MyFirstIRCProtocol(irc.IRCClient):
nickname = 'MyFirstIrcBot'
@martinsik
martinsik / chat-frontend.js
Last active December 19, 2023 10:23
Node.js chat frontend and server
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var content = $('#content');
var input = $('#input');
var status = $('#status');
// my color assigned by the server
var myColor = false;
@jfhbrook
jfhbrook / TODO.md
Created May 12, 2011 09:29
Things I have to do for transitioning from school to browserling

TODO:

  1. Work on dnode-python
    • ✔ Generate "arguments" part of JSONs for "methods"
    • ✔ Generate "callbacks" part of JSONs for "methods"
    • Make sure the "arguments" and "callbacks" fields can be generated for calls too
  2. ✔ Look into merging/cleaning/organizing thesis repos
    • ✔ Make poster and thesis public, to some extent
  3. Clean/pack
  • ✔ Take books to literacy council.
@jfhbrook
jfhbrook / roll.lisp
Created January 14, 2011 04:35
(roll 3 d 6 + 2)
;As in, 2d6
;Name chosen for ease of evaluation in roll-function
(defun d (num sides)
(+ num
(loop repeat num
sum (random sides))))
(defmacro append-if-not-nil (&body body)
`(apply #'append (remove-if (lambda (x) (equal x nil)) (list ,@body))))
@jfhbrook
jfhbrook / tdl.md
Created August 31, 2010 00:46
Back-To-School To-Do List

GARY TRUDEAU LIST:

  • Dynamicals #5
  • Grade E&tE hw
  • Make sweet images for poster
  • Mod/deploy Tues. quiz
  • Hack on something
    • Land of Lisp
    • dnode-python
  • Any of your other half-baked projects
@jfhbrook
jfhbrook / README.md
Created June 12, 2010 00:20
A server-side parallel to arsc_remote, so to speak.

#ABOUT: #

After talking with a colleague about some stuff, I came to this realization that the ARSC user experience could use some explaining too. At the same time, I've had my own issues with wanting to run things without having admin priveleges, which I'm not used to. In addition to that, the ARSC workstation setups have their own SNAFUS for us to deal with.

#TODO: #