Skip to content

Instantly share code, notes, and snippets.

@myano
myano / supercombiner.sh
Created July 23, 2011 12:33 — forked from sbp/supercombiner.sh
Supercombiner pasteboard script for Linux
#!/bin/bash
python -c '
import sys, unicodedata
s = "u"
for i in xrange(1, 3000):
if unicodedata.category(unichr(i)) == "Mn":
s += unichr(i)
if len(s) > 100: break
sys.stdout.write(s.encode("utf-8"))
@joviniko
joviniko / scores.pl
Last active June 20, 2018 22:07
Funktionale Programmierung scores perlscript WS2013
#!/usr/bin/perl
# vim:set sw=4 sts=4 et smartindent:
# Hier die Anzahl der Aufgaben setzen
my $numOfUe = 8;
use strict;
use File::Basename;
my @files = `ls *.out` or die;
@luthfianto
luthfianto / dda.js
Created September 29, 2014 12:48
Digital Differential Analyzer in JavaScript
function dda(x0, y0, x1, y1)
{
const dx = x1 - x0,
dy = y1 - y0,
s = Math.abs(dx) > Math.abs(dy) ? Math.abs(dx) : Math.abs(dy),
xi = dx * 1.0 / s,
yi = dy * 1.0 / s
var x = x0,
y = y0,
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active July 20, 2024 14:39
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).