Skip to content

Instantly share code, notes, and snippets.

View kviktor's full-sized avatar
:shipit:

Viktor Kálmán kviktor

:shipit:
  • Budapest, Hungary
View GitHub Profile
@kviktor
kviktor / Makefile.Manjaro.config
Created April 12, 2020 18:25
Caffe Makefile.config files
# had 3.8.2 locally too so it's probably not always using the venv one (probably thats why didn't need --enabled-shared)
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
@kviktor
kviktor / Makefile.Manjaro.config
Created April 12, 2020 18:24
Caffe Makefile.config files, Manjaro has 3.8.2 locally too so it might be work
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
@kviktor
kviktor / app.qml
Last active October 10, 2020 14:36
QT SystemTrayIcon onActivated not working
import QtQuick 2.8
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
import Qt.labs.platform 1.0
import QtQuick.Dialogs 1.2
ApplicationWindow {
id: appWindow
width: 50
@kviktor
kviktor / advent2_1.py
Created December 2, 2016 10:02
advent 2016 day 2
# flake8: noqa
instructions = ["ULL", "RRDDD", "LURDL", "UUUUD", ]
idx = 5
commands = {
"U": -3,
"R": 1,
"L": -1,
"D": 3,
}
@kviktor
kviktor / torrent_add.py
Last active August 29, 2015 14:06
torrent \o/
import os
from random import randrange
from subprocess import call
def get_random_name():
return "%x.torrent" % randrange(pow(2, 30), pow(2, 40))
for f in os.listdir(u"."):
@kviktor
kviktor / html5video.js
Last active August 29, 2015 14:04
sg.hu html5video
var e_v='<div class="html5-video-wrapper"><video controls src="$1"></video><p><a href="$1">$1</a></p></div>';var t_v='<div class="html5-video-wrapper"><video autoplay loop src="$1"></video></div>';$(".forum-post .body").each(function(){if($(this).html().match(/\[video\](.*?)\[\/video\]/gi))$(this).html($(this).html().replace(/\[video\](.*gfycat\.com.*?)\[\/video\]/gi,t_v).replace(/\[video\](.*?)\[\/video\]/gi,e_v))})
@kviktor
kviktor / sg.html
Created April 27, 2014 20:03
no cache js
<body onload="var js = document.createElement('script');
var r = Math.floor((Math.random()*10000)+1);
js.src = 'http://domain.hu/topicbanlist_minified.js?r=' + r;
document.getElementsByTagName('head')[0].appendChild(js);">