Skip to content

Instantly share code, notes, and snippets.

View tiagodll's full-sized avatar

Tiago Dall'Igna tiagodll

View GitHub Profile
@sporto
sporto / sample.elm
Last active February 17, 2018 11:10
Pipelines
import Html exposing (text)
multBy x =
(*) x
biggerThan x =
(<) x
nums =
[1,2,3]
@tiagodll
tiagodll / pipe_sharp.cs
Last active June 24, 2019 16:02
adds pipe functionality to C#
using System;
namespace pipe_sharp
{
class Program
{
static void Main(string[] args)
{
var total = Pipe<int>
.Take(12)
@exocomet
exocomet / calendar.sql
Last active April 29, 2024 17:00
sqlite calendar table
-- sqlite
CREATE TABLE IF NOT EXISTS calendar (
d date UNIQUE NOT NULL,
dayofweek INT NOT NULL,
weekday TEXT NOT NULL,
quarter INT NOT NULL,
year INT NOT NULL,
month INT NOT NULL,
day INT NOT NULL
);