Skip to content

Instantly share code, notes, and snippets.

@schmmd
schmmd / manager-tips.txt
Last active June 23, 2023 17:58
Manager Tips
Remember "Only wimpy managers write down their own tips. Real managers ask employees to recite them in Slack."
1. Google Slides and Spreadsheets are the only applicataions you need.
2. Keep a tight ship?
3. The most efficient option is definately to just TAKE ANOTHER SCREENSHOT!
4. ???
5. ???
6. ???
7. if you see a cheap trick take it
8. stop trying to figure it out in LastPass and just switch to 1password.
@schmmd
schmmd / slurm-gpu-stats.py
Created November 20, 2019 19:08
Slurm GPU Stats
#!/usr/bin/env python
import os
import re
import subprocess
import socket
import sys
def pids_of_jid(jid):
result = subprocess.run(["sstat", "-p", "--format=PID", "-j", jid, "--noheader"], stdout=subprocess.PIPE)
@schmmd
schmmd / commands.md
Last active January 6, 2018 14:07
AllenNLP Commands

SRL

Prediction

echo '{"sentence": "Did Uriah honestly think he could beat the game in under three hours?"}' > examples.jsonl
allennlp/run predict https://s3-us-west-2.amazonaws.com/allennlp/models/srl-model-2017.09.05.tar.gz examples.jsonl

Evaluation

{
"sections": [
{
"heading": "1 Introduction",
"text": "Most vertebrates, including humans, can move their eyes. They use this ability to sample in detail the most relevant features of a scene, while spending only limited processing resources elsewhere. The ability to predict, given an image (or video), where a human might xate in a xed-time freeviewing scenario has long been of interest in the vision community. Besides the purely scienti c goal of understanding this remarkable behavior of humans, and animals in general, to consistently xate on \"important\" information, there is tremendous engineering application, e.g. in compression and recognition [13]. The standard approaches (e.g., [2], [9]) are based on biologically motivated feature selection, followed by center-surround operations which highlight local gradients, and nally a combination step leading to a \"master map\". Recently, Bruce [5] and others [4] have hypothesized that fundamental quantities such as \"self-information\" and \
@schmmd
schmmd / mobydick-chapter1.txt
Created January 26, 2017 22:39
Sample documents
Call me Ishmael. Some years ago- never mind how long precisely- having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people's hats off- then, I account it high time to get to sea as soon as I can. This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree
@schmmd
schmmd / link.js
Last active December 10, 2015 18:35
CiteSeer Link to AI2
@schmmd
schmmd / gist:708875d24d0fa775e231
Created September 28, 2015 15:50
suggestions.json
{
"_shards": {
"total": 3,
"successful": 3,
"failed": 0
},
"my-title-suggestions-1": [
{
"text": "open",
"offset": 0,
@schmmd
schmmd / engineeringorientation.md
Last active August 29, 2015 14:22
Engineering Orientation
list.sum
(a zip b).map(_.productIterator).flatten
def fib100 = {
def fib(x: BigInt, y: BigInt): Stream[BigInt] = {
val z = x + y
z #:: fib(y, z)
}
(0 #:: 1 #:: fib(0, 1)).take(100).toList
#!/usr/bin/env scalas
/***
scalaVersion := "2.11.5"
libraryDependencies += "com.github.rodneykinney" % "quisp_2.11" % "0.5.0"
*/
import quisp.Plot._