Skip to content

Instantly share code, notes, and snippets.

View zanza00's full-sized avatar

Simone Picciani zanza00

View GitHub Profile
@ruizb
ruizb / advanced-example.md
Last active September 26, 2023 20:21
Reader monad example using fp-ts

The following section is not part of monet.js documentation, but I think it's worth showing how we can compose readers using fp-ts.

Reader composition

Let's say we have the following piece of code:

interface Dependencies {
  logger: { log: (message: string) => void }
 env: 'development' | 'production'
@greenkey
greenkey / ddl_audit.sql
Last active February 6, 2018 14:21
Oracle DDL audit - made simple
CREATE TABLE ddl_log (
operation VARCHAR2(30),
obj_owner VARCHAR2(30),
obj_name VARCHAR2(30),
obj_type VARCHAR2(30),
sql_text CLOB,
attempt_by VARCHAR2(30),
attempt_dt DATE,
user_name VARCHAR2(50),
@staltz
staltz / introrx.md
Last active May 10, 2024 12:08
The introduction to Reactive Programming you've been missing
@millermedeiros
millermedeiros / sample-hasher_crossroads.html
Created July 27, 2011 16:28
Using hasher together with crossroads.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>example crossroads + hasher</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
<ul>