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
; who owns the zebra | |
; 1 There are five houses. | |
; 2 The Englishman lives in the red house. | |
; 3 The Spaniard owns the dog. | |
; 4 Coffee is drunk in the green house. | |
; 5 The Ukrainian drinks tea. | |
; 6 The green house is immediately to the right of the ivory house. | |
; 7 The Old Gold smoker owns snails. | |
; 8 Kools are smoked in the yellow house. |
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
(println "Hello") | |
(let [x 1 | |
y 2] | |
(print "foo") | |
(str 1 2 | |
3 4 5)) | |
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
(defproject uncomp-1 "0.1.0-SNAPSHOT" | |
:description "Example project showcasing uncomplicate power" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.9.0"] | |
[uncomplicate/neanderthal "0.18.0" :exclusions [[org.jcuda/jcuda-natives] | |
[org.jcuda/jcublas-natives]]]] | |
:main ^:skip-aot uncomp-1.core | |
:target-path "target/%s" |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
;; Connected to nREPL server - nrepl://localhost:58389 | |
;; CIDER 0.17.0snapshot (package: 20180319.1204), nREPL 0.2.13 | |
;; Clojure 1.9.0, Java 1.8.0_151 | |
;; Docs: (doc function-name) | |
;; (find-doc part-of-name) | |
;; Source: (source function-name) | |
;; Javadoc: (javadoc java-object-or-class) | |
;; Exit: <C-c C-q> | |
;; Results: Stored in vars *1, *2, *3, an exception in *e; | |
;; ====================================================================== |
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
(defproject uncomp-1 "0.1.0-SNAPSHOT" | |
:description "Example project showcasing uncomplicate power" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.9.0"] | |
[uncomplicate/neanderthal "0.18.0" :exclusions [[org.jcuda/jcuda-natives] | |
[org.jcuda/jcublas-natives]]]] | |
:main ^:skip-aot uncomp-1.core | |
:target-path "target/%s" |
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
;;; init.el --- Spacemacs Initialization File | |
;; | |
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors | |
;; | |
;; Author: Sylvain Benner <[email protected]> | |
;; URL: https://github.com/syl20bnr/spacemacs | |
;; | |
;; This file is not part of GNU Emacs. | |
;; | |
;;; License: GPLv3 |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
#lang racket | |
;; Code for the little schemer | |
(define (atom? x) | |
(and (not (pair? x)) | |
(not (null? x)))) | |
(define (lat? l) | |
(cond ((null? l) #t) |
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
Welcome to Racket v6.12. | |
racket@> | |
racket@> | |
racket@> | |
racket@> | |
racket@> | |
racket@> (display "hello") | |
helloracket@> (newline) | |
racket@> (println "wer") |