Skip to content

Instantly share code, notes, and snippets.

View KevinGreene's full-sized avatar

Kevin Greene KevinGreene

View GitHub Profile
@KevinGreene
KevinGreene / README.md
Created March 30, 2015 23:09
Fair and Square

Requirements

Usage

➜  ~  ./fair-and-square.clj 10
(0 1 4 9 121 484 10201 12321 14641 40804)%
@KevinGreene
KevinGreene / clojure_thoughts.md
Last active December 29, 2023 04:51
Thoughts on Clojure after introductory talk

Hey all,

Thanks for coming out and talking about Clojure and ClojureScript! I'm not going to be posting the source code for the project, as I'm still not 100% if it will end up monetized at all, but it will probably make it's way to GitHub eventually.

If you want to learn more about Clojure, ClojureScript, and how they can help you, you have a ton of options:

Intro:

Living Clojure by Carin Meier - http://www.amazon.com/Living-Clojure-Carin-Meier/dp/1491909048 - Also available at GRPL

@KevinGreene
KevinGreene / Main.elm
Created June 23, 2016 13:16
Select Troubles in Elm
import Debug
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Html.App as Html
import Http
import Json.Decode as Json
import Task
import String
import Char
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:52016,suspend=y,server=n -ea -javaagent:/Users/kevingreene/Library/Caches/IntelliJIdea2016.3/groovyHotSwap/gragent.jar -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/localedata.jar:
(ns gitfun.core
(:require [planck.shell :refer [sh]]
[clojure.string :refer [split-lines split]]))
(def relevant-regex #"changed, |^commit")
(def stat-regex #"(\d+) files? changed, (\d+) insert.+, (\d+) delet.+")
(def deletion-regex #"(\d+) files? changed, (\d+) delet")
(def insertion-regex #"(\d+) files? changed, (\d+) insertions?\(\+\)$")
(defn is-relevant [s]