This file contains 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
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt | |
index e391302..0f6aea2 100644 | |
--- a/src/gui/CMakeLists.txt | |
+++ b/src/gui/CMakeLists.txt | |
@@ -55,6 +55,19 @@ target_link_libraries(adonthell_gui | |
adonthell_rpg | |
) | |
+################################ | |
+# Unit tests |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Threading; | |
using System.Xml.Serialization; | |
using UnityEngine; |
This file contains 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
[[:black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black] [:black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black] [:black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black] [:black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black :black : |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
#include <libavformat/avformat.h> | |
#include <libavutil/channel_layout.h> | |
#include <libavutil/error.h> | |
#include <libavutil/avstring.h> | |
#include <libswscale/swscale.h> |
This file contains 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
#!/usr/bin/env pxi | |
(ns cli | |
"pxi cli.pxi --verbose --bar 42 --hello 'world!' | |
{:verbose true, :bar 42, :hello world!}" | |
(:require [pixie.string :as string])) | |
(defn- arg? | |
"Returns true if the string is an argument to an option" | |
[s] |
This file contains 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
(ns http-client | |
"Example: (http-client/GET \"54.225.205.17\" \"jsonplaceholder.typicode.com\" \"/posts/1\")" | |
(:require [pixie.io :as io] | |
[pixie.io.tcp :as tcp] | |
[pixie.streams :as stream] | |
[pixie.string :as string])) | |
(def CR 13) | |
(def LF 10) |
This file contains 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
defmodule Config do | |
defmacro __using__(_) do | |
quote do | |
import unquote(__MODULE__), only: :macros | |
end | |
end | |
defmacro cfg(key, type \\ :string) do | |
quote do | |
defp unquote(key)() do |
This file contains 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
defmodule Foo do | |
use Config | |
cfg :disable_foo?, :boolean | |
cfg :bar_delay, :integer | |
cfg :baz_name | |
cfg :blahs, {:list, :float} | |
cfg :blerks, {:set, :atom} | |
def print_stuff do |
This file contains 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
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa-stable" . "http://stable.melpa.org/packages/") t) | |
(add-to-list 'package-archives | |
'("melpa.org" . "http://melpa.org/packages/") t) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/") t) | |
(package-initialize) |
This file contains 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
(ns ping-pong | |
(:require [clojure.core.async :as async :refer [<!! >!!]])) | |
(defn ping [ch] | |
(println "Ping") | |
(>!! ch :ping) | |
(<!! (async/timeout 500))) | |
(defn pong [ch] | |
(println "Pong") |
OlderNewer