Skip to content

Instantly share code, notes, and snippets.

agum onkey agumonkey

  • NONE
  • Dark side of the moon @ ['tkf8-2-1', 'ay21-3', '3263-827']
Block or report user

Report or block agumonkey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@agumonkey
agumonkey / fan.kt
Last active Mar 6, 2019
fantom type-ish in kotlin
View fan.kt
// fantom type-ish in kotlin
// class res
// class open:res
// class close:res
// class file<res>
// fun open file<close> -> file<open>
// fun close file<open> -> file<close>
// fun read file<open> -> file<open> list<string>
@agumonkey
agumonkey / hn-async.el
Last active Mar 6, 2019
HN async: port of a port of a script from a reddit that turns an HN article into an org-mode file
View hn-async.el
"
HN async: port of a port of a script from a reddit that turns an HN article into an org-mode file
@TODO: full eager graph walk of the json sub-structures
@TODO: full lazy walk at depth d
@TODO: org-mode overlay to intercept subtree unfolding as async GET
"
(setq lexical-binding t)
View impots-v2.js
var defaut = {
tranches: [
{lo:0, hi:9964, per:0},
{lo:9964, hi:27519, per:14},
{lo:27519, hi:73779, per:30},
{lo:73779, hi:156244, per:41},
{lo:156244, hi:999999999999, per:45}
]
}
@agumonkey
agumonkey / impots.js
Last active Feb 10, 2019
simulation naive impots 2019
View impots.js
// https://output.jsbin.com/cinefupoda/
// https://jsbin.com/voneyoraka/
var tranches = [
{lo:0, hi:9964, per:0},
{lo:9964, hi:27519, per:14},
{lo:27519, hi:73779, per:30},
{lo:73779, hi:156244, per:41},
@agumonkey
agumonkey / whiteboardCleaner.md
Created Feb 9, 2019 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!
View whiteboardCleaner.md

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@agumonkey
agumonkey / impots.el
Last active Feb 10, 2019
calcul les impots par tranche (fr_FR)
View impots.el
;; -*- lexical-binding: t -*-
(require 'dash)
;; (setq lexical-binding t)
;; from: https://impots.dispofi.fr/bareme-impot/calcul-impot-par-tranche
;; De 0€ à 9964€ 0%
;; De 9964€ à 27519€ 14%
;; De 27519€ à 73779€ 30%
@agumonkey
agumonkey / width.py
Created Feb 7, 2019
Trying to make a refill buffer/display .. functionally
View width.py
class Width:
def __init__(self, w):
self.l = []
self.w = w
def put(self, d):
self.l.append(d)
def __repr__(self):
"""
@agumonkey
agumonkey / cont.py
Created Feb 4, 2019
# ~continuations in python
View cont.py
# from: https://www.ps.uni-saarland.de/~duchier/python/continuations.html
# more: https://duckduckgo.com/html?q=continuations%20in%20python
def sumc(x,y,k):
k(x+y)
def mulc(x,y,k):
k(x*y)
def f(x,k):
@agumonkey
agumonkey / dom.py
Last active Feb 1, 2019
petit arbre html
View dom.py
from pprint import pprint as pp
from html.parser import HTMLParser
from collections import namedtuple
import requests
#######
# dom #
#######
You can’t perform that action at this time.