""
in tcl is like javascript""
{}
in tcl is like javascript``
[]
in tcl is like shell``
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 -bur foo/baz.txt bar/baz.txt | |
--- foo/baz.txt 2023-05-01 18:20:09.887623152 -0400 | |
+++ bar/baz.txt 2023-05-01 18:20:09.887623152 -0400 | |
@@ -1 +1 @@ | |
-norf | |
+qux |
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
linuxdeploy-x86_64.AppImage --appdir AppDir -e /bin/lowdown -d /home/risto/scripts/lowdown.desktop -i 256x256/lowdown.png -o appimage |
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
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<!-- | |
On void, see /etc/fonts/conf.d/30-metric-aliases.conf | |
Sets the google font Arimo for sans-serif, and adds an alias for Helvetica | |
--> | |
<fontconfig> | |
<alias> | |
<family>sans-serif</family> | |
<prefer><family>Arimo</family></prefer> |
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
package require Tk | |
eval [exec gnuplot << " | |
set term tk | |
set key fixed left top vertical Right noreverse enhanced autotitle box lt black linewidth 1.000 dashtype solid | |
set samples 50, 50 | |
set title \"Simple Plots\" | |
set title font \",14\" textcolor lt 1 norotate | |
set xrange \[ * : * \] noreverse writeback | |
set x2range \[ * : * \] noreverse writeback | |
set yrange \[ * : * \] noreverse writeback |
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
:- use_module(library(clpq)). | |
%% Amount of coffee to use for french press | |
coffee(CoffeeGrams, WaterOz) :- | |
{25 / 6 =:= CoffeeGrams / WaterOz}. |
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
var ws = require('ws'); | |
var client = new ws("ws+unix:///tmp/server.sock") | |
client.send('hello') |
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 let and a block statement allows you to create Ocaml-like inner modules | |
let Foo | |
{ | |
// This is in a closure, but the module itself is declarative -- it's not a class | |
let norf = 567 | |
// You can nest inner modules too | |
let Bar | |
{ | |
let exclaim = '!' |
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
?- TermStart = (X = 123), with_output_to(string(S), write_term(TermStart, [variable_names(['X'=X])])), | |
concat(S, ".", S2), open_string(S2, Stream), read_term(Stream, TermEnd, [variable_names(['X'=X])]). | |
TermStart = TermEnd, TermEnd = (X=123), | |
S = "X=123", | |
S2 = 'X=123.', | |
Stream = <stream>(0x55858662ae00). |
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
?- use_module(library(optparse)). | |
true. | |
?- ExampleOptsSpec = | |
[ [opt(mode ), type(atom), default('SCAN'), | |
shortflags([m]), longflags(['mode'] ), | |
help([ 'data gathering mode, one of' | |
, ' SCAN: do this' | |
, ' READ: do that' | |
, ' MAKE: fabricate some numbers' |