Skip to content

Instantly share code, notes, and snippets.

View zavorka's full-sized avatar
🙈
LGTM

Roman Beránek zavorka

🙈
LGTM
  • Prusa Research, s.r.o.
  • Prague, CZ
View GitHub Profile
@zavorka
zavorka / replace-with-stage3.sh
Last active December 23, 2015 05:39 — forked from arantius/create-test-container.script
How To Install Gentoo Onto Any OpenVZ VPS
#!/bin/sh
set -e
if [ `whoami` != "root" ]; then
echo "This script must run as root!"
exit 1
fi
if [ ! -f /root/stage3-*.tar.bz2 ]; then
@zavorka
zavorka / Ring_array.hpp
Created August 13, 2016 11:01
Simple fixed-sized ring "buffer"
// Copyright (c) 2016 Roman Beránek. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@zavorka
zavorka / SaF_FFT.hpp
Last active September 6, 2016 18:10
SaF FFT
// Copyright (c) 2016 Roman Beránek. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
template <
bool Inv,
std::ptrdiff_t N_out
>
inline void
butterfly_radix4(gsl::span<cpx_t, N_out> output)
const noexcept {
auto const m = N_out/4;
auto const stride = (N_out > 0) ? N / N_out : 0;
// Copyright (c) 2016 Roman Beránek. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
--- a/qtconnectivity/src/bluetooth/osx/corebluetoothwrapper_p.h 2016-10-02 16:48:38.000000000 +0200
+++ b/qtconnectivity/src/bluetooth/osx/corebluetoothwrapper_p.h 2016-10-02 16:54:06.000000000 +0200
@@ -51,12 +51,8 @@
// We mean it.
//
-#ifndef QT_OSX_BLUETOOTH
-
#import <CoreBluetooth/CoreBluetooth.h>
@zavorka
zavorka / qt5-5.8.0-beta-webkit-cups.patch
Last active October 3, 2016 07:52
qt5-5.8.0-beta-webkit-cups.patch
--- a/qtwebengine/src/3rdparty/chromium/printing/backend/print_backend_cups.cc
+++ b/qtwebengine/src/3rdparty/chromium/printing/backend/print_backend_cups.cc
@@ -4,6 +4,7 @@
#include "printing/backend/print_backend_cups.h"
+#include <cups/ppd.h>
#include <dlfcn.h>
#include <errno.h>
#include <pthread.h>
@zavorka
zavorka / .clang-format
Last active October 31, 2017 10:24
ang-format
# ang-format, ver. 1.0, compatible with clang-format-3.8 and up
#
#
# "Cause we never go out of style. We never go out of style."
#
# -- Taylor Swift, 2014
#
# All these settings have been taken from the clang-format manual,
# Take a look at http://clang.llvm.org/docs/ClangFormatStyleOptions.html
--- a/chrome/browser/ui/libgtkui/gtk_util.cc 2016-12-09 00:02:19.000000000 +0100
+++ b/chrome/browser/ui/libgtkui/gtk_util.cc 2016-12-13 19:26:26.683726150 +0100
@@ -85,7 +85,7 @@
int modifier = 0;
if (event_flag & ui::EF_SHIFT_DOWN)
modifier |= GDK_SHIFT_MASK;
- if (event_flag & ui::EF_CONTROL_DOWN)
+ if (event_flag & ui::EF_COMMAND_DOWN)
modifier |= GDK_CONTROL_MASK;
if (event_flag & ui::EF_ALT_DOWN)

Keybase proof

I hereby claim:

  • I am zavorka on github.
  • I am curly (https://keybase.io/curly) on keybase.
  • I have a public key whose fingerprint is F795 DCFD 22CF E34D 486E F386 BBE5 8CAF 675B 8570

To claim this, I am signing this object: