Skip to content

Instantly share code, notes, and snippets.

View penland365's full-sized avatar

Jeffrey N. Davis penland365

View GitHub Profile

Louisiana Tech Bulldogs 2020 Staff and Offense Scouting Report

Prepared by: penland365 Finalized: 09/07/2020

Table of Contents

  • Staff Overview
  • Roster Overview
  • Offense
@penland365
penland365 / short.tsv
Last active March 2, 2019 02:34
tsv test
date high low
20101001 59.5 57.0
20101002 59.5 53.4
20101003 59.0 53.4
20101004 59.4 54.7
20101005 58.3 52.7
20101006 62.1 54.5
20101007 60.8 53.4
20101008 61.0 52.5
20101009 62.4 52.9
@penland365
penland365 / graphq-meetup.md
Last active January 28, 2019 21:37
(cons (clojure graphql))

(cons (clojure graphql))

Graphqls' declarative schemas and stringified strong typing cons* together perfectly with Clojure's dynamic typing, homoiconicity**, and easy concurrency.

We will take our first steps into the Clojure ecosystem and how it can work closely with Graphql. We will show how to create a simple Clojure app, how to read a LISP, how to understand de-structuring, and how to read an EDN, extensible data notation, file.

@penland365
penland365 / EngineState.scala
Last active July 18, 2018 16:45
Discussion w/ Delila
// so you have something like this?
def respond(state: EngineState): Future[EngineState] = {
}
def respond(state: EngineState): Future[EngineState] = {
state.transaction match {
case Throw(_) =>
val transaction = Transaction(state.request.conversation, UnrecognisedCommand, Vector.empty)
val request = ResponseRequest(state.request.conversation, transaction)
@penland365
penland365 / StreamingRecognitionConfig.java
Created February 9, 2018 21:58
StreamingRecognitionConfig.java
private RecognitionConfig buildRecogintionConfig {
return com.google.cloud.speech.v1.RecognitionConfig.newBuilder()
.setEncoding(LINEAR16)
.setLanguageCode("en-US")
.setSampleRateHertz(16000)
.addSpeechContexts(speechContexts) // attached
.build();
}
private StreamingRecognitionConfig buildStreamingRecognitionConfig {
@penland365
penland365 / taste.scala
Created December 8, 2017 15:38
Scala Programming Taste
// Which of these is a better style? Is there much of a difference?
def createMicrosoftAudio0(utterance: Utterance, svc: MsSynthSvc = MicrosoftSpeech.Synthesize): Future[SynthesizedSpeech] = {
if(!utterance.text.isDefined) return Future.exception(new UtteranceTextNotFound(utterance))
val req = SynthesizeRequest(utterance.convo.id, utterance.text.get)
for {
resp <- svc(req)
} yield SynthesizedSpeed(resp._1, resp._2)
}
@penland365
penland365 / PercentEncoder
Created March 16, 2014 03:27
A Scala Object to do simple RFC3986 URL encoding.
package com.sabrelabs.twitter.auth
import scala.collection.BitSet
import scala.annotation.tailrec
import scala.runtime.RichInt
import scala.collection.mutable.ListBuffer
object PercentEncoder {
def encodeRFC3986(str: String): String = {
@penland365
penland365 / knuth_anagrams.rb
Created January 8, 2014 15:44
This is a simple ( though not very Ruby idiomatic ) example of how to determine what anagrams exist in a dictionary. The algorithm used is Knuth's anagram algorithm. Idiomatic Ruby has been replaced with an attempt to make the algorithm as readable as possible. Algorithm is O(n), with an additional pass to display / count the number of anagrams.…
def load_words
formatted_words = []
File.readlines(ARGV[0]).each{|line| formatted_words << line.chomp.downcase}
formatted_words
end
def sort_word_alphabetically(unsorted_word)
unsorted_word.chars.sort.join
end
@penland365
penland365 / create-tar.bz2.sh
Created December 10, 2013 15:46
Email / XML tar command
tar -jvcf email-xml-pairs.tar.bz2 /path/to/base
@penland365
penland365 / gist:7892746
Created December 10, 2013 15:44
*.bz2 example
tar -jvcf email-xml-pairs.tar.bz2 /path/to/base