Skip to content

Instantly share code, notes, and snippets.

Trying to exit emacs

Brian Gordon briangordon

Trying to exit emacs
Block or report user

Report or block briangordon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cellfactorytest.scala
package cellfactory
import javafx.application.Application
import javafx.collections.FXCollections
import javafx.scene.control.ListView
import javafx.scene.layout.StackPane
import javafx.scene.{Scene, control => jfxsc}
import javafx.stage.Stage
import javafx.util.Callback
briangordon / gist:df79f7cd3750ac9fe1109553c8262aee
Last active Sep 11, 2017
pureconfig ConfigReader for case class with "auxiliary constructor" type logic
View gist:df79f7cd3750ac9fe1109553c8262aee
case class HalfLife(lowerBoundHours: BigDecimal, upperBoundHours: BigDecimal, meanHours: BigDecimal)
def computeMean(lowerBoundHours: BigDecimal, upperBoundHours: BigDecimal): BigDecimal = {
// TODO linear interpolation is terrible here. These are exponential quantities.
(lowerBoundHours + upperBoundHours) / 2
// Hack to get pureconfig to create instances of HalfLife without an explicit mean-hours value.
import com.typesafe.config.{ConfigObject, ConfigValueFactory}
import pureconfig.ConfigReader
briangordon / animal-verbs.txt
Last active Oct 7, 2019
Animal names which are also verbs
View animal-verbs.txt
Ape his behaviors
Badger her about
Bat your eyelids
Bear fruit
Buck the system
Buffalo him into
Bug him about
Carp about
Chicken out
Clam up
briangordon / list-processes.ps1
Last active Jun 3, 2017
Short PowerShell snippet I wrote for repeatedly dumping all running processes less than a minute old to a file
View list-processes.ps1
while($true) {
Get-Process | ? {$_.StartTime -gt (Get-Date).AddMinutes(-1)} | Select-Object ProcessName,Description,Path >> out.txt
sleep 0.01
briangordon / wolfenstein-the-old-blood-headers.txt
Last active Mar 27, 2016
I attached a debugger to a running Wolfenstein: The Old Blood process and found this in memory. I have no idea why it's there.
View wolfenstein-the-old-blood-headers.txt
This file has been truncated, but you can view the full file.
briangordon / eve-pathfinder.cpp
Last active Jan 3, 2017
My improved version of MagicalTux's EVE online path finder.
View eve-pathfinder.cpp
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <unordered_map>
#include <sys/time.h>
// We specify the total number of systems explicitly so that we can initialize data structures before reading in the whole csv file.

Keybase proof

I hereby claim:

  • I am briangordon on github.
  • I am brian ( on keybase.
  • I have the public key with fingerprint 41AA 1387 FA3D 5EAC 4F4B  18EE AE46 EFC0 2F3E 2BA8

To claim this, I am signing this object:

briangordon / gist:8869639
Created Feb 7, 2014
English word frequencies
View gist:8869639
briangordon / gist:8656177
Created Jan 27, 2014
Encapsulation in JavaScript
View gist:8656177
function MyClass () {
var privateVariable = 5;
var privateMethod = function () {
return privateVariable;
this.publicMethod = function () {
return privateMethod();
View Horrifying code written when I was 14
P r o g r a m m i n g - a - M o d e - F i n d e r
-a guide to programming a mode finder-
By: Brian Gordon
| |
|This guide will outline the technique I found |
|is the best way to determine a mode from a |
|set of data. It includes most of the source |
|code from the original program, then explains |
You can’t perform that action at this time.