Skip to content

Instantly share code, notes, and snippets.

@abhibeckert
abhibeckert / lint.swift
Created June 22, 2018 01:31
Project File Linter
//
// main.swift
// Lint
//
// Created by Abhi Beckert on 18/6/18.
// Copyright © 2018 Abhi Beckert. All rights reserved.
//
import Foundation
@abhibeckert
abhibeckert / gist:2bfb6a884c7fdd3194af86bd28ef9c10
Created June 4, 2022 08:13
Rounded Corners SVG QR Code in PHP
<?php
/**
* This code generates an SVG QR code with rounded corners. It uses a round rect for each square and then additional
* paths to fill in the gap where squares are next to each other. Adjacent squares overlap - to almost completely
* eliminate hairline antialias "cracks" that tend to appear when two SVG paths are exactly adjacent to each other.
*
* composer require chillerlan/php-qrcode (tested with version 4.2)
*/