Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| a = input("Give me a number: ") | |
| b = input("Give me another number: ") | |
| if int(a) > int(b) and int(a) % int(b) == 1: | |
| print("You are lucky!!!") | |
| else: | |
| print("Sorry, try again!") |
| (ns text-adventure.core | |
| (:gen-class)) | |
| (def state (atom {:x 0 :y 0})) | |
| (def directions { | |
| :right (fn [m] (assoc m :x (inc (:x m)))) | |
| :left (fn [m] (assoc m :x (dec (:x m)))) | |
| :up (fn [m] (assoc m :y (inc (:y m)))) |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.