Skip to content

Instantly share code, notes, and snippets.

View jabberabbe's full-sized avatar
🚀

Tito Sacchi jabberabbe

🚀
View GitHub Profile
@jabberabbe
jabberabbe / 08b.clj
Last active December 8, 2021 19:28
AoC 2021/08b versione horror
(ns aoc.2021.08a
(:require
[clojure.string :as str]
[clojure.set :as set]
[clojure.pprint :as pprint]))
; (defn prdbg [x & xs] (do (println xs) (pprint/pprint x) x))
(defn prdbg [x & xs] x)
(def segments #{\a \b \c \d \e \f \g})
@jabberabbe
jabberabbe / coso.hs
Created October 4, 2021 20:15
tito fighting against the Haskell lexer
module Coso where
testOk1 = [1, 2, 3, 4]
testOk2 =
[ 1
, 2
, 3
]

Keybase proof

I hereby claim:

  • I am jabberabbe on github.
  • I am tauroh (https://keybase.io/tauroh) on keybase.
  • I have a public key ASCwjSPBDnS4i_6Cr1fi3zBTkyhfMZ1QXJyk8QlmC581Zgo

To claim this, I am signing this object:

@jabberabbe
jabberabbe / motoArmonico.m
Created November 10, 2019 09:49
Pendolo con MATLAB
function [t, theta] = motoArmonico(tMax, theta0)
[t, vars] = ode45(@armonico, [0 tMax], [0 theta0]);
theta = vars(:,2); % la prima colonna è la derivata prima
end
function dthdt = armonico(~,th) % questo è per il moto armonico semplice
dthdt(1) = th(2);
dthdt(2) = -th(1);
dthdt = dthdt(:);
end
module Boundingcap
( computeCap,
theoreticCap2
) where
import qualified Data.Vector.Generic as V
import Debug.Trace
import Numeric.LinearAlgebra as LA
for = flip map
From a4b9cec9f00ba31e8b48c379296d2bb1d4bb3638 Mon Sep 17 00:00:00 2001
From: Tito Sacchi <tito.sakki@gmail.com>
Date: Mon, 14 Jan 2019 14:16:12 +0100
Subject: [PATCH 1/2] Fix #1369 (Use file extension to detect shell)
The precedence order that is used to determine the shell
is the following:
1. ShellCheck directive
2. Shebang
3. File extension