This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2015 Heiko Schaefer <[email protected]> | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=5 | |
inherit cmake-utils eutils git-r3 | |
DESCRIPTION="Qt library to receive release information from the GitHub API" | |
HOMEPAGE="https://github.com/velnias75/QGitHubReleaseAPI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Copyright (C) 2016 Heiko Schaefer <[email protected]> | |
# | |
# This work is free. You can redistribute it and/or modify it under the | |
# terms of the Do What The Fuck You Want To Public License, Version 2, | |
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. | |
# | |
import ast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Simple time estimator for avconv, without any error checking | |
# | |
# Usage: timeleft.sh HH:MM:SS.nn SOURCE_FPS ENCODE_FPS TIME | |
# | |
# Notice: for fractional SOURCE_FPS multiply SOURCE_FPS to an integer | |
# and ENCODE_FPS by the same factor, | |
# i.e. ENCODE_FPS=24.92 and SOURCE_FPS=5 => 2492 500 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<stylesheet version="1.0" | |
xmlns="http://www.w3.org/1999/XSL/Transform" | |
xmlns:strings="http://exslt.org/strings" | |
xmlns:xspf="http://xspf.org/ns/0/"> | |
<output method="text" encoding="utf-8"/> | |
<variable name="apos">'</variable> | |
<param name="outdir" select="'/data1/var/tmp'"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function karatsuba($num1, $num2) { | |
if(($num1 < 10) || ($num2 < 10)) { | |
return $num1 * $num2; | |
} | |
$m = ceil((max(ceil(log10($num1)), ceil(log10($num2))))/2); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Recursive/iterative/native integer log2 algorithm comparison in Python | |
# | |
# (c) 2017 Heiko Schaefer <[email protected]> | |
# | |
import sys, time, math | |
# recursive | |
def log2r(a, b = 0): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* calculate binominal coefficient | |
* | |
* gcc -std=c99 -g0 -O3 -s bico.c -o bico -lm | |
* | |
* (c) 2017 by Heiko Schaefer <[email protected]> | |
* | |
*/ | |
#include <math.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* binominal coefficient constant template | |
* | |
* g++ --std=c++11 -g0 -O3 -s bicot.cpp -o bicot | |
* | |
* (c) 2017 by Heiko Schaefer <[email protected]> | |
* | |
*/ | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unsigned int ilog(unsigned int value, unsigned int base); | |
# (c) 2018 by Heiko Schaefer | |
.section .text | |
.globl ilog | |
.type ilog, @function | |
ilog: | |
pushl %ebp | |
movl %esp, %ebp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name OMDB - Suche in der DB | |
// @version 0.15 | |
// @description Userscript um Filme von omdb in der Datenbank https://rangun.de/index.php zu suchen | |
// @author Heiko Schäfer | |
// @homepage https://gist.github.com/velnias75/2eb5a3625640ada0007d3d2c0de09eb5 | |
// @updateURL https://gist.github.com/velnias75/2eb5a3625640ada0007d3d2c0de09eb5/raw/omdb.user.js | |
// @downloadURL https://gist.github.com/velnias75/2eb5a3625640ada0007d3d2c0de09eb5/raw/omdb.user.js | |
// @namespace https://rangun.de/db/ | |
// @match http://www.omdb.org/person/*/filmography |
OlderNewer