I hereby claim:
- I am logaan on github.
- I am logaan (https://keybase.io/logaan) on keybase.
- I have a public key ASAXxlgO0rDH7X7A6xtuGqKm96hq989v3I4nEtA1p_vhFAo
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
DICTIONARY = File.read('/Users/logaan/Desktop/scrabble2019.txt').split("\n").map{ |w| w.strip } | |
WORDLE_WORDS = DICTIONARY.filter{ |w| w.length == 5 } | |
LETTER_SCORES = WORDLE_WORDS.flat_map { |word| word.chars }.reduce({}) do |counts, character| | |
if counts.include?(character) | |
counts[character] = counts[character] + 1 | |
else | |
counts[character] = 1 |
/* Here's the same function written three different ways */ | |
/* map */ | |
let squareMap = ns => List.map(n => n * n, ns); | |
// squareMap([1,2,3]) => [1, 4, 9] | |
/* tail recursive */ | |
let rec squareRec' = (out, ns) => | |
switch (ns) { |
class Dude | |
def initialize(warrior, previous) | |
@warrior = warrior | |
@direction = previous[:direction] | |
@previous = previous | |
end | |
def dump_state | |
{ | |
direction: @direction, |
#!/usr/bin/env bash | |
echo "Hello World" |
I hereby claim:
To claim this, I am signing this object:
(ns hex-transition.core | |
(:require [clojure.string :refer [join]] | |
[clojure.pprint :refer [pprint]])) | |
(defn hex->int-parts [hex-string] | |
(for [[a b] (partition 2 hex-string)] | |
(Integer/parseInt (str a b) 16))) | |
(defn hex->int-parts [hex-string] | |
(for[[a b](partition 2 hex-string)](Integer/parseInt(str a b)16))) |
"------------------ Vundler --------------------------------------------------- | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'tpope/vim-fireplace.git' |
; Is this a bug in clojurescript? | |
(def rings | |
#{ [1 4] [2 4] [3 4] | |
[0 3] [1 3] [2 3] [3 3] | |
[0 2] [1 2] [2 2] [3 2] [4 2] | |
[0 1] [1 1] [2 1] [3 1] | |
[1 0] [2 0] [3 0]}) | |
(str rings) |
import defrecord_interop.Kitten; | |
import defrecord_interop.Puppy; | |
class HelloWorldApp { | |
public static void main(String[] args) { | |
(new Kitten()).run(); | |
(new Puppy()).run(); | |
} | |
} |
(println | |
(join (present [:name]) | |
(present [:age]))) | |
#vlad.validation_types.Join{ | |
:left #vlad.validation_types.Predicate{ | |
:selector [:name], | |
:predicate #<string$blank_QMARK_ clojure.string$blank_QMARK_@5a57e77f>, | |
:information {:type :vlad.validations/present}}, |