Skip to content

Instantly share code, notes, and snippets.

View AAlfare's full-sized avatar

Andreas Alfarè AAlfare

View GitHub Profile
<?php if(!defined('KIRBY')) exit ?>
title: Event
pages: false
files: true
fields:
title:
label: Title
type: text
course:
//: Playground - noun: a place where people can play
// From That Thing in Swift
// https://thatthinginswift.com
import UIKit
import XCPlayground
XCPlaygroundPage.currentPage.needsIndefiniteExecution = true
@AAlfare
AAlfare / remoteForm.json
Last active June 21, 2016 08:38
Remote Form Example
{
"title": "Benutzer editieren",
"responseUrl": "https://...",
"action": "POST",
"sections": [
{
"title": "Name",
"rows": [
{
"id": "first_name",
//
// ScrollingStackView.swift
// ScrollingStackView
//
// Created by Andreas Alfarè on 14.08.18.
// Copyright © 2018 Andreas Alfarè. All rights reserved.
//
import UIKit
@AAlfare
AAlfare / String+Typography.swift
Created October 11, 2018 07:30
String + various spaces
extension String {
// NARROW NO-BREAK SPACE
// Unicode: U+202F, UTF-8: E2 80 AF
static let narrowNoBreakSpace = "\u{202F}"
//MEDIUM MATHEMATICAL SPACE
//Unicode: U+205F, UTF-8: E2 81 9F
static let mediumMathematicalSpace = "\u{205F}"
//HAIR SPACE
@AAlfare
AAlfare / rectangular-dotnav.scss
Created June 10, 2020 08:46
Rectangular UIKit dot nav variable overrides
$global-color: #666;
$global-inverse-color: #fff;
$inverse-global-color: rgba($global-inverse-color, 0.7);
$global-link-color: #1e87f0;
$dotnav-item-width: 20px;
$dotnav-item-height: 3px;
$dotnav-item-border-radius: 0;
$dotnav-item-background: rgba($global-color, 0.6);
$dotnav-item-hover-background: $global-link-color;
//
// ContentView.swift
// Product
//
// Created by Andreas Alfarè on 12.03.21.
//
import SwiftUI
struct IdentifiableIndices<Base: RandomAccessCollection>
@AAlfare
AAlfare / styles.css
Created April 7, 2021 06:27
Snipcart CSS Overrides from their swag store
#snipcart .snipcart-cart-button,
#snipcart .snipcart-item-line__image {
border-radius: 8px
}
#snipcart .snipcart-modal__logo {
margin-left: auto;
margin-right: auto;
max-height: 40px
}