Skip to content

Instantly share code, notes, and snippets.

View k4y3ff's full-sized avatar
💖
living my best life

kf k4y3ff

💖
living my best life
View GitHub Profile

Keybase proof

I hereby claim:

  • I am k4y3ff on github.
  • I am kf (https://keybase.io/kf) on keybase.
  • I have a public key ASBxR6HmwWJMi0kbSmY_by1WnoLgbYqyueqNSDed28qC4go

To claim this, I am signing this object:

@k4y3ff
k4y3ff / bug_report.txt
Last active August 28, 2017 15:14
Data Clubhouse templates
**Brief Summary**
As a `___ ` I did `___` and expected `___` but experienced `___`.
**Steps to reproduce**:
_if available_
1.
2.
3.
@k4y3ff
k4y3ff / keybase.md
Created July 17, 2017 17:32
Keybase Proof

Keybase proof

I hereby claim:

  • I am k4y3ff on github.
  • I am kf (https://keybase.io/kf) on keybase.
  • I have a public key whose fingerprint is 4686 3CB1 65BF AEFF FBB1 5FC4 5AAD 62FB AA2D DC00

To claim this, I am signing this object:

@k4y3ff
k4y3ff / keybase.md
Created May 27, 2016 02:51
keybaes proof

Keybase proof

I hereby claim:

  • I am kpfell on github.
  • I am kf (https://keybase.io/kf) on keybase.
  • I have a public key whose fingerprint is A1E2 130C 2CE8 255F A4DC AE97 1824 8A69 242F 9DA6

To claim this, I am signing this object:

@k4y3ff
k4y3ff / gist:4cc55e7c1e37c4b2ec99
Last active September 16, 2017 15:21
Clojure/West Workshop
W-Fi Network: Embassy-MTG
Day 1 Wi-Fi Password: 2015pdx
Day 2 Wi-Fi Password: 2015cog
Download http://cdn.cognitect.com/training/clojure-lab.zip
Unzip
cd clojure-lab
java -jar target/clojure-lab-0.1.0-SNAPSHOT-standalone.jar
open http://127.0.0.1:55555/worksheet.html?filename=src/cljlab/start.clj
### Keybase proof
I hereby claim:
* I am kpfell on github.
* I am kf (https://keybase.io/kf) on keybase.
* I have a public key whose fingerprint is E387 3F5B 2473 9CCC B137 8E65 EC71 F6D4 2948 F178
To claim this, I am signing this object:
/* Book is talking about replacing iterators in a functional style.
* Gives a few examples of aspects of functional programming.
*/
// Says to do this in Scala
def sumSequence(sequence: Seq[Int]): Int =
if (sequence.isEmpty) 0 else sequence.reduce((acc, curr) => acc + curr)
// When you can just do something like this
def sumSequence(sequnce: Seq[Int]): Int =
@k4y3ff
k4y3ff / controller.scala
Last active December 21, 2015 01:19
Results in a type match, and I can't figure out why: https://gist.github.com/kpfell/6226395
import akka.actor.ActorDSL._
import akka.actor.ActorSystem
import collection.mutable
import java.net.{ ServerSocket, Socket }
import java.io.{ BufferedReader, InputStreamReader, PrintStream }
// import ExecutionContext.Implicits.global
import java.util.TreeMap
@k4y3ff
k4y3ff / gist:6226395
Last active December 21, 2015 01:19
Compilation error, referring to this code: https://gist.github.com/kpfell/6226404
[info] Compiling 1 Scala source to /Users/katherinefellows/src/dynamite/dynamite-controller/target/scala-2.10/classes...
[error] /Users/katherinefellows/src/dynamite/dynamite-controller/src/main/scala/controller.scala:104: type mismatch;
[error] found : Server
[error] required: controller.Server
[error] val response = serverSwitchboard(server, splitRequest(request))
[error] ^
[error] one error found
[error] (compile:compile) Compilation failed
[error] Total time: 7 s, completed Aug 13, 2013 3:37:17 PM
@k4y3ff
k4y3ff / gist:6206596
Last active December 20, 2015 22:39
Compilation errors from alt. callController method.
Katherines-MacBook-Air:dynamite-controller katherinefellows$ sbt compile
[info] Set current project to dynamite-controller (in build file:/Users/katherinefellows/src/dynamite/dynamite-controller/)
[info] Compiling 1 Scala source to /Users/katherinefellows/src/dynamite/dynamite-controller/target/scala-2.10/classes...
[error] /Users/katherinefellows/src/dynamite/dynamite-controller/src/main/scala/controller.scala:63: type mismatch;
[error] found : String("addServer")
[error] required: Char
[error] case "addServer" :: port :: Nil => hashRing.addServerToRing(port).toString
[error] ^
[error] /Users/katherinefellows/src/dynamite/dynamite-controller/src/main/scala/controller.scala:63: type mismatch;
[error] found : Char