layout | title | description | tags | ||
---|---|---|---|---|---|
default |
SQL Style Guide |
A guide to writing clean, clear, and consistent SQL. |
|
$(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; |
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' |
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
nixos-rebuild |
# 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 |
- 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
- ✔ Look into merging/cleaning/organizing thesis repos
- ✔ Make poster and thesis public, to some extent
- Clean/pack
- ✔ Take books to literacy council.
;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)))) |
#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: #