Skip to content

Instantly share code, notes, and snippets.

View MarcoPolo's full-sized avatar
🌠
Gradatim

Marco Munizaga MarcoPolo

🌠
Gradatim
View GitHub Profile
(deffacts cities
(city-list tallahassee lake-city gainesville jacksonville st-augustine ocala orlando tampa west-palm ft-myers miami key-west)
(city name tallahassee neighbors lake-city 2)
(city name lake-city neighbors tallahassee 2 jacksonville 1 gainesville 1)
(city name gainesville neighbors lake-city 1 ocala 1 st-augustine 1)
(city name jacksonville neighbors lake-city 1 st-augustine 1)
(city name st-augustine neighbors jacksonville 1 gainesville 1 orlando 2 west-palm 3)
(city name ocala neighbors gainesville 1 orlando 1 tampa 2)
(city name orlando neighbors ocala 1 st-augustine 2 tampa 1 west-palm 3)
(city name tampa neighbors ft-myers 2 orlando 1 ocala 2)
@MarcoPolo
MarcoPolo / caesar.clj
Last active December 14, 2015 00:39
new stuff
;Fixed indentation
(defn range-char [start end]
(let [ i (int start)
j (inc (int end))]
(map char (range i j))))
;Fixed indentation
(defn shift-list [coll n] ;; You don't need to do seq unless you are testing if a seq is empty or changing data structs
(flatten
(reverse (split-at n coll))))
@MarcoPolo
MarcoPolo / dabblet.css
Created June 4, 2012 18:50 — forked from LeaVerou/dabblet.css
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from {
transform: rotate(0deg)
translate(-150px)
rotate(0deg);