Skip to content

Instantly share code, notes, and snippets.

View Dispader's full-sized avatar
:electron:
Present Company Excluded, LLC

Jake Gage Dispader

:electron:
Present Company Excluded, LLC
View GitHub Profile
@Dispader
Dispader / gradplanner-exerpt.log
Created June 12, 2014 19:11
error running Grad Planner on my local instance
ERROR 12 Jun 2014 14:08:17,392 GPlannerDropDowns - GPlannerDropDowns: Could not load What If Degrees
java.lang.Exception: SQL Error in finding WhatIfDegree by instId
at edu.umn.web.gradplanner.model.common.WhatIfDegreeHome.findByInstId(WhatIfDegreeHome.java:69)
at edu.umn.web.gradplanner.GPlannerDropDowns.loadWhatIfDegrees(GPlannerDropDowns.java:223)
at edu.umn.web.gradplanner.GPlannerDropDowns.initialize(GPlannerDropDowns.java:130)
at edu.umn.web.gradplanner.GPlannerApplicationManagerListener.initApp(GPlannerApplicationManagerListener.java:115)
at edu.umn.web.gradplanner.GPlannerApplicationManagerListener.managerStarted(GPlannerApplicationManagerListener.java:75)
at edu.umn.web.pillar.service.manager.ServiceManagerFacade.addManagerListener(ServiceManagerFacade.java:96)
at edu.umn.web.pillar.service.manager.ServiceManagerClient.registerManagerListener(ServiceManagerClient.java:114)
at edu.umn.web.gradplanner.GPlannerApplicationContextListener.initializeApplication(GPlannerApplicationContextListener.j
@Dispader
Dispader / link-groovy-emacs.bash
Created October 18, 2014 18:35
demonstration of ${VARIABLE#-PATTERN}
@Dispader
Dispader / nethack-eating-rings.R
Last active August 29, 2015 14:12
nethack-eating-rings.R
chargingPDestruction <- function(enchantment) { enchantment/7 }
chargingPSurvival <- function(enchantment) { 1 - chargingPDestruction(enchantment) }
ringEnchantmentSeq <- seq(0,7)
ring <- data.frame( enchantment = ringEnchantmentSeq ,
pDestruction = chargingPDestruction(ringEnchantmentSeq),
pSurvival = chargingPSurvival(ringEnchantmentSeq),
expectedEnchantmentAfterCharging = (chargingPSurvival(ringEnchantmentSeq)*(ringEnchantmentSeq+1)) )
plot(ring[['enchantment']], ring[['pDestruction']], pch=4, col='red', xlab='initial enchantment', ylab='probability', main='Ring Charging Survival')
@Dispader
Dispader / groovy-2.4.0.sh
Created February 7, 2015 21:18
GVM install of Groovy 2.4.0.
(~){dispader}03:14pm] gvm list groovy
================================================================================
Available Groovy Versions
================================================================================
2.4.0-rc-2 * 2.2.1 * 2.0.5 1.8.0
2.4.0-rc-1 * 2.2.0 2.0.4 1.7.9
2.4.0-beta-4 * 2.1.9 2.0.3 1.7.8
2.4.0 2.1.8 2.0.2 1.7.7
2.3.9 2.1.7 2.0.1 1.7.6
package edu.umn.github.ghuman
import spock.lang.Specification
class TribbleSpecification extends Specification {
def "feed a tribble, get more tribbles"() {
given:
Tribble tribble = new Tribble()
when:
@Dispader
Dispader / tygers.el
Created April 4, 2015 22:06
customizations for loading Emacs Groovy/Gradle/Gant development tools
;; Here There Be Tygers
;;; turn on syntax highlighting
(global-font-lock-mode 1)
;;; try to manually load the .emacs.d path
(add-to-list 'load-path "~/.emacs.d/")
;;; use markdown-mode when file end in .md
(add-to-list 'auto-mode-alist '("\.md" . markdown-mode))
@Dispader
Dispader / build.gradle
Created May 13, 2015 21:48
example showing that test-sets plugin does not seem to modify classpath for new testSet ${testSet}Compile dependencies
buildscript {
repositories { jcenter() }
dependencies { classpath 'org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:1.0.2' }
}
apply plugin: 'eclipse'
apply plugin: 'groovy'
repositories { jcenter() }
@Dispader
Dispader / add-jrubyexec-from-gemfile.gradle
Created May 21, 2015 21:53
Snippet to glean JRubyExec dependencies from a Gemfile.
jrubyExec 'rubygems:selenium-webdriver:2.45.0'
def gemfile = new File('./src/integrationTest/ruby/Gemfile')
def gemDefinitionRegex = /gem '(.*)', '(.*)'/
if ( gemfile.exists() ) {
gemfile.eachLine {
def matcher = ( it =~ gemDefinitionRegex )
if ( matcher ) { logger.quiet "rubygems:${matcher[0][1]}:${matcher[0][2]}" }
}
}
@Dispader
Dispader / hosts.sh
Created June 29, 2015 15:44
one-liner to scour DNS for host entries
dig axfr oit.umn.edu @128.101.101.1 | grep goat
@Dispader
Dispader / motto.txt
Created July 1, 2015 20:38
Our new departmental model...
"We provide you the tools to please yourself." —Ingrid