Skip to content

Instantly share code, notes, and snippets.

View honzabrecka's full-sized avatar
👋

Honza Břečka honzabrecka

👋
View GitHub Profile
@honzabrecka
honzabrecka / AoC2018-day-01.clj
Last active December 2, 2018 14:43 — forked from kepi74/AoC2018-day-01.clj
Advent of Code 2018 day 01
(defn get-final-freq
"Day one: calculate resulting frequency"
[freq_list]
; 1. clojurist prefer to use `-` instead of `_` in names
; 2. I'm not sure how you got and what's inside `freq_list` (I suppose integers, then it's fine)
(reduce + freq_list))
(defn repeated-freq
"Day one: first occur of repeated frequency"
[freq_list]
@honzabrecka
honzabrecka / 0_reuse_code.js
Created July 1, 2017 10:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console