Skip to content

Instantly share code, notes, and snippets.

View eswizardry's full-sized avatar
🎯
What's up?

Bancha Rajainthong eswizardry

🎯
What's up?
View GitHub Profile
import 'package:flutter/material.dart';
main() {
runApp(MaterialApp(
home: Scaffold(
body: SafeArea(
child: Stack(
children: <Widget>[
const Lines(),
const IgnorePointer(
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active October 21, 2025 08:14
Conventional Commits Cheatsheet
@chris-marsh
chris-marsh / qtextdocument_printing.cpp
Created October 15, 2017 09:59
Qt Paginated Printing
// QTextDocument printing example written by David Faure for EADS
// Compared to QTextDocument::print, it allows to add a page header and footer.
#include <QPrinter>
#include <QPainter>
#include <QProgressDialog>
#include <QApplication>
#include <QTextDocument>
#include <QTextTableCell>
#include <QTextCursor>
@1kastner
1kastner / reflect.py
Last active August 19, 2025 21:37 — forked from huyng/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from http.server import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@enzinier
enzinier / install_font_adobe_source_code_pro.sh
Created March 4, 2017 03:38
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
@dfontana
dfontana / CmderZSH.md
Last active April 22, 2025 10:13
My setup guide for installing Cgywin, Mintty, Cmder, and ZSH.

What's this?

Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.

The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.

Why is this here?

For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.

What exactly is covered?

  • Installing and setting up cmder
@rudolfovich
rudolfovich / csvfile.h
Last active March 30, 2025 18:07
CSV file generator
#pragma once
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
class csvfile;
inline static csvfile& endrow(csvfile& file);
inline static csvfile& flush(csvfile& file);
@tushortz
tushortz / Qt.sublime-build
Last active March 23, 2021 23:13
Qt Build System for Sublime text on Linux
{
"cmd": ["qmake -project && subl *.pro"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.cpp",
"shell": true,
"variants": [
{
@Univan-Ahn
Univan-Ahn / CMakeLists.txt
Last active October 7, 2024 11:09
Moving from QMake to CMake for Qt5 projects
cmake_minimum_required(VERSION 2.8.11)
project(Qt5App)
#
# Qt5 support
#
# general overview:
# * [Modern CMake with Qt and Boost](http://www.kdab.com/modern-cmake-with-qt-and-boost/)
# * [Using CMake with Qt 5](http://www.kdab.com/using-cmake-with-qt-5/)
@Rolias
Rolias / PropertyHelper.h
Last active September 27, 2023 21:58
Qt Auto Property Macros
#pragma once
#include <QObject>
//See Gist Comment for description, usage, warnings and license information
#define AUTO_PROPERTY(TYPE, NAME) \
Q_PROPERTY(TYPE NAME READ NAME WRITE NAME NOTIFY NAME ## Changed ) \
public: \
TYPE NAME() const { return a_ ## NAME ; } \
void NAME(TYPE value) { \
if (a_ ## NAME == value) return; \
a_ ## NAME = value; \