Skip to content

Instantly share code, notes, and snippets.

@haxscramper
haxscramper / languages-and-vms.md
Last active July 2, 2024 03:38
languages-and-vms
@marcorichetta
marcorichetta / postgresql-manjaro.md
Last active May 20, 2025 19:44
Install PostgreSQL on Manjaro and set it up for Django
@mashingan
mashingan / crud_web.nim
Last active June 11, 2023 00:45
Simplistic crud example using Jester and Nim
# This example using
# Nim: 0.18.0
# Jester: 0.2.1
# Using Jester >= 0.3.0 is preferrable if your Nim version > 0.18.0
# In case you're using Jester >= 0.3.0, look the syntax different
# in its example because it's not backward compatible
import db_sqlite, asyncdispatch, json, strformat, strutils, sequtils
import jester
@stedi67
stedi67 / elm.nim
Created July 20, 2018 09:58
karax using elm architecture
import patty
import strformat
import strutils
import sugar
include karax / prelude
include karax / kdom
include karax / kajax
type
@shreve
shreve / pdfmarks
Last active February 28, 2025 20:28
Example of adding PDF metadata (bookmarks / ToC) with Ghostscript
[ /Title (Elementary Differential Equations)
/Author (Edwards & Penney)
/DOCINFO pdfmark
[ /Title (Contents)
/Page 6
/OUT pdfmark
[ /Count -8
/Title (1. First-Order Differential Equations)
@mrb
mrb / Tiger.idr
Created October 24, 2014 15:04
A little straight line program interpreter I implemented from the "modern compiler implementation in ML" book by Appel
module Main
import Control.Monad.Writer
Id : Type
Id = String
data Binop = Plus | Minus | Times
mutual
@aksakalli
aksakalli / SimpleHTTPServer.cs
Last active July 12, 2025 01:31
SimpleHTTPServer in C#
// MIT License - Copyright (c) 2016 Can Güney Aksakalli
// https://aksakalli.github.io/2014/02/24/simple-http-server-with-csparp.html
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;