Skip to content

Instantly share code, notes, and snippets.

View adrientetar's full-sized avatar

Adrien Tétar adrientetar

View GitHub Profile
from PyQt5.QtWidgets import QDialog, QPushButton, QVBoxLayout
import random
class FuzzDialog(QDialog):
def __init__(self, parent=None):
super().__init__(parent)
layout = QVBoxLayout(self)
fuzzBox = QPushButton("Fuzz", self)
fuzzBox.clicked.connect(self.glyphFuzzer)
layout.addWidget(fuzzBox)
From d8c4fd9e783107b4acc54a3c65af7948061825a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20T=C3=A9tar?= <adri-from-59@hotmail.fr>
Date: Fri, 9 Oct 2015 16:44:22 +0200
Subject: [PATCH] meta: glyphView tools refactoring (wip)
It introduces quite some bugs so I'm not pursuing this further just yet.
---
Lib/defconQt/glyphView.py | 980 ++----------------------------------
Lib/defconQt/objects/qtItems.py | 505 +++++++++++++++++++
Lib/defconQt/tools/__init__.py | 0
From 6cbf38f1ba18c08bc41b07deb036773f6ab80618 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20T=C3=A9tar?= <adri-from-59@hotmail.fr>
Date: Wed, 30 Sep 2015 23:40:44 +0200
Subject: [PATCH] fontInfo: add OS/2 table (wip)
---
Lib/defconQt/fontInfo.py | 301 ++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 298 insertions(+), 3 deletions(-)
diff --git a/Lib/defconQt/fontInfo.py b/Lib/defconQt/fontInfo.py
@adrientetar
adrientetar / FuzzWindow.py
Last active March 1, 2017 16:56
Little defconQt scripting examples
from PyQt5.QtWidgets import QDialog, QPushButton, QVBoxLayout
import random
class FuzzDialog(QDialog):
def __init__(self, parent=None):
super().__init__(parent)
layout = QVBoxLayout(self)
fuzzBox = QPushButton("Fuzz", self)
fuzzBox.clicked.connect(self.glyphFuzzer)
layout.addWidget(fuzzBox)
OptiPNG 0.6.4: Advanced PNG optimizer.
Copyright (C) 2001-2010 Cosmin Truta.
** Processing: 1Brackets1.png
1040x532 pixels, 3x8 bits/pixel, RGB
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 8468 bytes
Input file size = 14518 bytes
Trying:
(gdb) bt
#0 GDrawIsVisible (w=w@entry=0xffcc772200000000) at gdraw.c:148
#1 0x00007ffff69b6762 in GDrawRequestExpose (w=0xffcc772200000000, rect=0x0,
doclear=0) at gdraw.c:741
#2 0x00007ffff79a3b89 in CVMouseMoveRuler (cv=0x43ccf90, event=0x7ffffffc29f0)
at cvruler.c:654
#3 0x00007ffff7963d9c in CVMouseMove (cv=cv@entry=0x43ccf90,
event=event@entry=0x7ffffffc29f0) at charview.c:5338
#4 0x00007ffff7965257 in v_e_h (gw=0x3fbf460, event=0x7ffffffc29f0)
at charview.c:5651
==6055== Memcheck, a memory error detector
==6055== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==6055== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==6055== Command: fontforge
==6055==
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
Based on sources from 16:30 CEST 29-May-2014.
Based on source from git with hash:6df29dd747e216bf7878e465fbaa45fbcdc94154
@adrientetar
adrientetar / exo.sci
Created January 14, 2014 14:28
TP n°5 d'informatique.
A = [ones(3,4);1,0,ones(1,2);ones(1,4)];
B = [ones(1,5);zeros(3,5)];
C = [ones(3,1)*2,[1;2;3],-ones(3,3)];
D = [diag(1,2,3,4,5)];
function y = factorielle(n)
y = 1;
@adrientetar
adrientetar / tut.md
Last active January 2, 2016 18:18
Tutorial fixes to come
use std::io::buffered::BufferedReader;
use std::io::fs::File;
fn main() {
let pairs = read_int_pairs();
for &(a,b) in pairs.iter() {
println!("{:4.4d}, {:4.4d}", a, b);
}
}