Skip to content

Instantly share code, notes, and snippets.

View sbenitezb's full-sized avatar
💭
Working

Sebastián Benítez sbenitezb

💭
Working
View GitHub Profile
http://ds9soft.com/contact
@sbenitezb
sbenitezb / save-lisp-tree-shake-and-die.lisp
Created June 18, 2023 21:33 — forked from burtonsamograd/save-lisp-tree-shake-and-die.lisp
A quick and dirty tree shaker for SBCL, giving about a 40% reduction in dump size.
;; -*- mode: lisp -*-
;;
;; A quick and dirty tree shaker for SBCL. Basically, it destroys the
;; package system and does a gc before saving the lisp image. Gives
;; about a 40% reduction in image size on a basic hello world test.
;; Would like to hear how it works on larger projects.
;;
;; Original idea from: https://groups.google.com/d/msg/comp.lang.lisp/6zpZsWFFW18/WMy4PyA9B4kJ
;;
;; Burton Samograd
@sbenitezb
sbenitezb / metadata.json
Created November 23, 2021 23:44
New Project
{"valueParameterInfo":[["Price",{"valueParameterFormat":{"contents":[6,"₳"],"tag":"DecimalFormat"},"valueParameterDescription":"The price of the item."}]],"slotParameterDescriptions":[["Payment deadline","The _**buyer**_ must pay the _price_ of the item by this time, otherwise the contract is cancelled."],["Complaint deadline","The _**buyer**_ can only complain until this deadline, otherwise the contract will assume the transaction went smoothly and pay the _**seller**_."],["Complaint response deadline","If the _**buyer**_ complained, the _**seller**_ must respond before this deadline, otherwise the contract will assume there was a problem with the transaction and refund the _**buyer**_."],["Mediation deadline","If the _**buyer**_ and the _**seller**_ disagree, the _**mediator**_ must weigh in before this deadline, otherwise the contract will assume there was a problem with the transaction and refund the _**buyer**_."]],"roleDescriptions":[["Buyer","The buyer of the item."],["Mediator","The mediator decides w
@sbenitezb
sbenitezb / metadata.json
Last active November 23, 2021 23:53
New Project
{"valueParameterInfo":[["payment",{"valueParameterFormat":{"tag":"DefaultFormat"},"valueParameterDescription":""}]],"slotParameterDescriptions":[],"roleDescriptions":[["payee",""],["payer",""]],"contractType":"O","contractShortDescription":"","contractName":"","contractLongDescription":"","choiceInfo":[]}
@sbenitezb
sbenitezb / gist:9458b9aadebb6494013147b8294571cb
Created September 16, 2021 18:56
Unwrap an optional into either one or the other SwiftUI View
//
// Optional+Extensions.swift
//
// Created by Sebastián Benítez on 16/09/2021.
//
import Foundation
import SwiftUI
public extension Optional {
@sbenitezb
sbenitezb / API.md
Last active January 28, 2016 02:46 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: