Skip to content

Instantly share code, notes, and snippets.

@MSch
MSch / gist:285999
Created January 25, 2010 16:41
Mitschrift vom Steuerrecht Gastvortrag
Mag. jur. Köger, 40 Jahre Finanzverwaltung
www.bmf.gv.at
- SelbständigenBuch
- Findok (Finanzdokumentation)
Mögliche Organisationsformen:
- Einzelfirma
- Personengesellschaft
Anfang keine bezahlten Angestellten, alle die hakln sind beteiligt
h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
f activate link hints mode to open in current tab
F activate link hints mode to open in new tab
r reload
@polotek
polotek / pipeaccept.js
Created May 18, 2011 01:16 — forked from heapwolf/pipeaccept.js
accepting input from a pipe, nodejs
var data;
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
data += chunk;
});
process.stdin.on('end', function() {
@butaji
butaji / server.hs
Created May 29, 2011 20:27
Simple Haskell web server
import Control.Monad
import Data.Char
import System.IO
import Network
import Data.Time.LocalTime
data RequestType = GET | POST deriving (Show)
data Request = Request { rtype :: RequestType, path :: String, options :: [(String,String)] }
data Response = Response { version :: String, statuscode :: Int }
@michaelficarra
michaelficarra / qsort.coffee
Created May 1, 2012 00:50
CoffeeScript quicksort
qsort = (list) ->
return list if list.length <= 1
pivotPoint = medianOfThree list
pivot = list[pivotPoint]
list.splice pivotPoint, 1, []
[left, right] = partition list, (e) -> e < pivot
[(qsort left)..., pivot, (qsort right)...]
medianOfThree = (list) ->
return 0 if list.length < 3
@tuzz
tuzz / github.css
Last active July 17, 2024 06:55
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@afair
afair / tmux.cheat
Last active June 3, 2024 23:26
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@ttezel
ttezel / gist:4138642
Last active May 7, 2024 13:34
Natural Language Processing Notes

#A Collection of NLP notes

##N-grams

###Calculating unigram probabilities:

P( wi ) = count ( wi ) ) / count ( total number of words )

In english..

@tanepiper
tanepiper / HighResolutionTimer.js
Created December 5, 2012 13:47
A high resolution timer, set the tick duration (default 1s) and callback to be actioned on each tick - accurate to within ~1-5ms per tick and compensates automatically for drift over time.
var HighResolutionTimer = window.HighResolutionTimer = window.HighResolutionTimer || (function() {
var HighResolutionTimer = function(options) {
this.timer = false;
this.total_ticks = 0;
this.start_time = undefined;
this.current_time = undefined;
@pascalduez
pascalduez / doNotTrack.md
Last active October 27, 2017 09:05
Do Not Track

Do Not Track

Implementations across browsers and JavaScript access.

Chrome

window.navigator.doNotTrack

setting: "Send a ‘Do Not Track’ request with your browsing traffic"
return: [ "1" or null ]