Skip to content

Instantly share code, notes, and snippets.

View Huluk's full-sized avatar

Lars Hansen Huluk

  • Zurich, Switzerland
View GitHub Profile
@Huluk
Huluk / devilsdict
Last active June 30, 2020 21:16
The Devil's Dictionary by Ambrose Bierce, Unix Fortune file
ABASEMENT, n. A decent and customary mental attitude in the presence
of wealth or power. Peculiarly appropriate in an employee when
addressing an employer.
%
ABATIS, n. Rubbish in front of a fort, to prevent the rubbish outside
from molesting the rubbish inside.
%
ABDICATION, n. An act whereby a sovereign attests his sense of the
high temperature of the throne.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JES 18/19 – Storkow – Manĝoj</title>
</head>
<body>
<input type="file" id="file-input" />
<br />
@Huluk
Huluk / iter_sample.py
Last active October 7, 2016 07:08
TrustYou Application
"""
Programming task
================
Implement the method iter_sample below to make the Unit test pass. iter_sample
is supposed to peek at the first n elements of an iterator, and determine the
minimum and maximum values (using their comparison operators) found in that
sample. To make it more interesting, the method is supposed to return an
iterator which will return the same exact elements that the original one would
have yielded, i.e. the first n elements can't be missing.
@Huluk
Huluk / gist:5117702
Last active December 8, 2023 22:34
Open Files with Terminal Vim by default [mac, iterm]
If you want your terminal vim to open files you double click, follow the following steps (MacOS only):
1. Open Automator
2. Select Application
3. Copy the attached file
4. Save and set as default for opening files
Multiple files are opened in vim tabs.
If there is already a vim instance running, files are opened in it.