This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;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)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); |