Instantly share code, notes, and snippets.

View conten-asset.html
<div id="garden-app"></div>
<link rel="stylesheet" href="[LINK TO CDN]">
<script type="text/javascript" src="[LINK TO CDN]"></script>
View design_docke_template.md

Design Doc Title

Stakeholders

List stakeholders for project/feature.

Role Person
Dev Owner
Other Dev 1 (Engine)
View rrmdir.php
<?php
function rrmdir($path){
if (is_dir($path)) {
array_map( "rrmdir", glob($path . DIRECTORY_SEPARATOR . '{,.[!.]}*', GLOB_BRACE) );
@rmdir($path);
}
else {
@unlink($path);
}
}
View pod.yaml
# Create a pod containing the PHP-FPM application (my-php-app)
# and nginx, each mounting the `shared-files` volume to their
# respective /var/www/html directories.
kind: Pod
apiVersion: v1
metadata:
name: phpfpm-nginx-example
spec:
volumes:
View Chainable.swift
protocol Chainable: class {
var before: (()->())? { get set }
func before(_ callback: @escaping ()->()) -> Self
func invoke()
}
extension Chainable {
@discardableResult
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View Readme.md
View RouteParam.php
<?php
/**
* Created by PhpStorm.
* User: sune
* Date: 09/03/2017
* Time: 17.30
*/
namespace App\Support;
View gpg2qrcodes.sh
# Heavily depends on:
# libqrencode (fukuchi.org/works/qrencode/)
# paperkey (jabberwocky.com/software/paperkey/)
# zbar (zbar.sourceforge.net)
# Producing the QR codes:
# Split over 4 codes to ensure the data per image is not too large.
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp
split temp -n 4 IMG
for f in IMG*; do cat $f | qrencode -o $f.png; done