Skip to content

Instantly share code, notes, and snippets.

View skuro's full-sized avatar

Carlo Sciolla skuro

View GitHub Profile
@skuro
skuro / gitroot.sh
Created December 4, 2025 14:05
`cd` to the root of the current git repository
alias gitroot='cd "$(git rev-parse --show-toplevel)"'
(ns io.codehopper.fun-with-redis
(:require [taoensso.carmine :as car :refer (wcar)]
[skyscraper.core :as sky]
[skyscraper.cache :as sky.cache]
[reaver]))
(def seed
[{:url "https://clojuredays.org",
:processor :page
:page 2022}])
@skuro
skuro / forkme.clj
Last active August 14, 2019 19:33
Nonograms dojo
;; fork me and include your solution!
(ns nonograms.core
(:require [clojure.java.io :as io])
(:import (javax.imageio ImageIO)
(java.awt.image BufferedImage)
(java.awt Image)))
(defn read-image
"Reads an image"
[path]
@skuro
skuro / README.md
Created July 17, 2019 19:09
Clojure meetup #115

Fork this gist and put your code in there!

@skuro
skuro / plantuml.txt
Created May 20, 2019 13:57
PlantUML language specification (v1.2019.05)
;type
;29
abstract
actor
agent
archimate
artifact
boundary
card
class
;
; Copyright 2017 Fintech Open Source Foundation
; SPDX-License-Identifier: Apache-2.0
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
@skuro
skuro / readme.org
Created February 13, 2019 20:10
Meetup #111 solutions

Fork me and paste your solution!

@skuro
skuro / forkme.md
Created December 12, 2018 19:30
Advent of Clojure solutions

Fork me!

@skuro
skuro / fossa_parser.clj
Last active June 11, 2018 19:27
Fugly but works
(ns fossa-parser.core
(:require [clojure.java.io :as io]
[clojure.string :as string]))
(defn maybe-license
"If a license header is found, returns the license"
[[pre lic post]]
(let [thick-line #"^=+$"]
(when (and (re-matches thick-line pre)
(re-matches thick-line post))
@skuro
skuro / README.md
Created May 16, 2018 19:31
Dutch Clojure Meetup #102

Submissions for the clojure dojo