See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
import 'package:flutter/material.dart'; | |
main() { | |
runApp(MaterialApp( | |
home: Scaffold( | |
body: SafeArea( | |
child: Stack( | |
children: <Widget>[ | |
const Lines(), | |
const IgnorePointer( |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
// 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> |
#!/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): |
#!/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" |
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.
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.
#pragma once | |
#include <string> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
class csvfile; | |
inline static csvfile& endrow(csvfile& file); | |
inline static csvfile& flush(csvfile& file); |
{ | |
"cmd": ["qmake -project && subl *.pro"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.cpp", | |
"shell": true, | |
"variants": [ | |
{ |
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/) |
#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; \ |