Skip to content

Instantly share code, notes, and snippets.

//
// Transparent Triangle in Swift 4.2
// (c) 2019 by Jeff Algera
// MIT License
//
class TransparentTriangleView: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
isOpaque = false
@algera
algera / Jeffs-code.snippets
Last active September 11, 2020 05:49
React / Redux Code Snippets for Visual Studio Code
{
"Jeff's Component": {
"scope": "javascript",
"prefix": "jfcom",
"body": [
"import React from 'react'",
"// import PropTypes from 'prop-types'",
"import { Text, View } from 'react-native'",
"import styles from './index.styled'",
"",
@algera
algera / slugify.swift
Created September 19, 2018 14:12
Slugify routine in Swift 4.1
////
// Slugify
// A String extension that converts a text string into a valid URL
// Derived from https://github.com/paulyoung/Slugify/blob/master/Slugify/Slugify.swift
// By Jeff Algera - jeffalgera.com
////
extension String {
private static let allowedCharacters = NSCharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-")
@algera
algera / FromIdeatoAppStore.md
Last active July 31, 2017 06:55
From Idea to App Store