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
| package isf; | |
| public interface CLJTestInterface { | |
| public static String staticGreet(String s) { | |
| return "static:" + s; | |
| } | |
| public static String staticGreetToAlias(String s) { | |
| return "static with alias:" + 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
| (refer-clojure :exclude [destructure]) | |
| (def ^:private reduce1 @#'clojure.core/reduce1) | |
| (defn- emit-get | |
| [gmap bk local defaults] | |
| (if (contains? defaults local) | |
| (list `get gmap bk (defaults local)) | |
| (list `get gmap bk))) |
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
| (import [clojure.lang RT]) | |
| (set! *warn-on-reflection* true) | |
| (let [nf (Object.)] | |
| (defn get-throwing [m k] | |
| (let [v (RT/get m k nf)] | |
| (if (identical? v nf) | |
| (throw (ex-info "Missing key" {:key k})) | |
| v)))) |
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
| #include <assert.h> | |
| #include <ctype.h> | |
| #include <math.h> | |
| #include <ncurses.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define NCOL 26 // max number of columns (A..Z) | |
| #define NROW 50 // max number of rows | |
| #define CW 9 // column display width |
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
| 'juxt.core lexicon | |
| ## stack functions | |
| 'dup λ |a -- a a| ; | |
| 'pop λ |a -- | ; | |
| 'dip λ |a q -- (q apply a)| | |
| apply |
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
| ============================================================ | |
| CORVO | |
| ============================================================ | |
| /this is a work in progress/ | |
| A strategic 2-player card game combining tactical hand | |
| building and combination-based shedding. | |
| Required Materials: |
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
| (defn eval-expr [expr env] | |
| (cond (symbol? expr) (env expr) | |
| (and (seq? expr) (= 'lambda (first expr))) | |
| (let [[_ [a] body] expr] | |
| (fn [arg] | |
| (eval-expr body (fn [x] (if (= a x) | |
| arg | |
| (env x)))))) |
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
| package fogus.rete; | |
| import java.lang.management.ManagementFactory; | |
| import java.lang.management.RuntimeMXBean; | |
| import java.lang.ref.WeakReference; | |
| import java.util.concurrent.CompletableFuture; | |
| import java.util.concurrent.ExecutionException; | |
| import java.util.concurrent.ThreadFactory; | |
| public class Tester { |
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
| You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI. | |
| Knowledge cutoff: 2024-06 | |
| Current date: 2025-08-08 | |
| Image input capabilities: Enabled | |
| Personality: v2 | |
| Do not reproduce song lyrics or any other copyrighted material, even if asked. | |
| You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor. | |
| Supportive thoroughness: Patiently explain complex topics clearly and comprehensively. | |
| Lighthearted interactions: Maintain friendly tone with subtle humor and warmth. |
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
| (defn dynamic-require [& args] | |
| (let [p (promise) | |
| n *ns*] | |
| (.start | |
| (Thread. | |
| (fn [] (deliver p (binding [*ns* n] (apply require args)))))) | |
| @p)) |
NewerOlder