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
Asking amazon.titan-tg1-large "Who invented the Erlang programming language and in what year?" with temperature=0.0 | |
Erlang was developed by Ericsson in the year 1986. | |
(1278 ms) ---------- | |
Asking amazon.titan-tg1-large "Who invented the Erlang programming language and in what year?" with temperature=0.8 | |
Erlang was created by Ericsson in the year 1986. |
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
The cargo ship Manilla Voyager is carrying Lemons from Fiji to Paris. The cargo of Lemons poses a danger to the ship because they are poisonous, according to the U.S. Coast Guard. | |
Lemons are a member of the nightshade family and have been used as a food additive since the 1800s. In recent years, they have gained popularity for their flavor and health benefits. | |
The Coast Guard is working to determine how many lemons were on board the ship and what their origin is. They will release the information as soon as it is available. | |
In a study published in the Proceedings of the National Academy of Sciences, researchers found lemons in nearly two-thirds of fish caught off the coast of New Zealand. | |
Lemons are grown in California and shipped to Europe by sea, where they are processed into limes, which are used to make margaritas and tequila. |
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 plk | |
(ns chunk.core | |
(:require [goog.date.UtcDateTime] | |
[planck.core :refer [*in* line-seq]] | |
[planck.io :as io])) | |
; | |
; Partition image files into folders based on timestamp. | |
; | |
; This script takes a list of images produced by a webcamera with motion detection |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Copyright (c) 2008 Rich Hickey. All rights reserved. | |
; The use and distribution terms for this software are covered by the | |
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
; which can be found in the file CPL.TXT at the root of this distribution. | |
; By using this software in any fashion, you are agreeing to be bound by | |
; the terms of this license. | |
; You must not remove this notice, or any other, from this software. | |
; | |
; Original Clojure JVM code :- https://gist.github.com/michiakig/1093917 |
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 ants.core) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Copyright (c) 2008 Rich Hickey. All rights reserved. | |
; The use and distribution terms for this software are covered by the | |
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
; which can be found in the file CPL.TXT at the root of this distribution. | |
; By using this software in any fashion, you are agreeing to be bound by | |
; the terms of this license. | |
; You must not remove this notice, or any other, from this software. |
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
dataset = | |
[ | |
[lang: "C", loc: 79, t: {4, :s}, mem: {40, :MB}], | |
[lang: "Python", loc: 11, t: {4, :s}, mem: {150, :MB}], | |
[lang: "Ruby", loc: 9, t: {17, :s}, mem: {3, :GB}], | |
[lang: "Elixir", loc: 11, t: {120, :s}, mem: {700, :MB}], | |
[lang: "Elixir ETS", loc: 17, t: {40, :s}, mem: {730, :MB}], | |
[lang: "Elixir Regex", loc: 17, t: {70, :s}, mem: {730, :MB}], | |
[lang: "Elixir String.split", loc: 11, t: {30, :s}, mem: {730, :MB}], | |
[lang: "Elixir String.split pre-compiled", loc: 17, t: {29, :s}, mem: {730, :MB}], |
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 Chess960 do | |
@moduledoc """ | |
Generate all 960 starting positions for Chess960 | |
https://en.wikipedia.org/wiki/Chess960#Starting_position_requirements | |
Run with | |
elixir chess960.exs | |
""" |
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/local/bin/elixir | |
defmodule TheLittleSchemer do | |
defmodule Toys do | |
@moduledoc "Chapter 1" | |
@doc """ | |
The Law of Null? | |
The primitive null? is defined only for lists. |
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 roman-numerals.roman) | |
(def digits {\I 1 | |
\V 5 | |
\X 10 | |
\L 50 | |
\C 100 | |
\D 500 | |
\M 1000}) |
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/local/bin/planck -cp | |
(ns accrete | |
(:require [cljs-time.core :as t] | |
[cljs-time.format :as f] | |
[clojure.string :refer [join]])) | |
(def this-year (-> (t/now) (t/year))) | |
(defn day-of-year [] |
NewerOlder