Skip to content

Instantly share code, notes, and snippets.

View benlau's full-sized avatar

Ben Lau benlau

View GitHub Profile
@alexellis
alexellis / job.yaml
Last active January 26, 2024 07:10
Use a Kubernetes Job and Kaniko to build an OpenFaaS function from Git
# Alex Ellis 2018
# Example from: https://blog.alexellis.io/quick-look-at-google-kaniko/
# Pre-steps:
# kubectl create secret generic docker-config --from-file $HOME/.docker/config.json
# Other potential optimizations (suggested by @errordeveloper)
# - Store "templates" in a permanent volume
# - Download source via "tar" instead of git clone

UISpecBook Proposal - RFC

UISpecBook is a development tool to browse and preview your GUI component library written by QML. Unlike qmlscene, it is embedded in your source tree. So it is able to support image provider and mock components.

RFC

  1. The design?
  2. The naming of project and components?
@oKcerG
oKcerG / ContactList.qml
Last active December 13, 2022 22:38
An experiment trying to recreate Google's Android contact list in QML
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQml 2.2
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.3
// DEMO VIDEO : https://gfycat.com/WarlikeImportantAmericanrobin
ApplicationWindow {
visible: true
# If there is no version tag in git this one will be used
VERSION = 0.1.0
# Need to discard STDERR so get path to NULL device
win32 {
NULL_DEVICE = NUL # Windows doesn't have /dev/null but has NUL
} else {
NULL_DEVICE = /dev/null
}