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
<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
#!/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
#!/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
# 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" |
NewerOlder