Skip to content

Instantly share code, notes, and snippets.

View p4l1ly's full-sized avatar

Pavol Vargovčík p4l1ly

  • Slovakia
View GitHub Profile
@p4l1ly
p4l1ly / Bar.capnp
Created October 5, 2020 09:51
capnp-fail-example
@0x85ec97100b88c270;
enum Bar {
bar @0;
qux @1;
}
@p4l1ly
p4l1ly / Main.hs
Created May 18, 2020 11:36
example usage of the refactored Graphics.SVGFont
import Diagrams.Prelude hiding (text, width, height)
import Diagrams.Backend.SVG.CmdLine
import qualified Graphics.SVGFonts as F
import qualified Graphics.SVGFonts.Wrap as FW
myCircle :: Diagram B
myCircle = circle 1
main = mainWith diagram
@p4l1ly
p4l1ly / main.py
Created January 28, 2019 11:21
QML + Flask combination
import sys
import threading
from PySide2.QtCore import QObject, QUrl, Property, Signal
from PySide2.QtGui import QGuiApplication
from PySide2.QtQml import QQmlApplicationEngine
app = QGuiApplication(sys.argv)
engine = QQmlApplicationEngine()
@p4l1ly
p4l1ly / Cargo.toml
Last active October 23, 2018 11:54
A painful temporary hack to get a less painful **where** clause inheritance into rust. Using **where** clause generation by proc_macro.
[package]
...
build = "build.rs"
[dependencies]
...
proc_macros = { path = "proc_macros" }
...

Keybase proof

I hereby claim:

  • I am p4l1ly on github.
  • I am paly (https://keybase.io/paly) on keybase.
  • I have a public key ASANzMdrHPG2O2q4IHe5t_i9RcJWZ1auqrhKMD_vk5YUKAo

To claim this, I am signing this object: