- Proposal: SE-NNNN
- Authors: Vincent Esche
- Review Manager: TBD
- Status: Awaiting review
During the review process, add the following fields as needed:
| // Created by Matthew Johnson on 5/28/16. | |
| // Copyright © 2016 Anandabits LLC. All rights reserved. | |
| // | |
| // This is a minimalist implementation of a responder chain in pure Swift. | |
| // | |
| // It is not intended to demonstrate the best way to | |
| // implement event processing in Swift. | |
| // | |
| // The intent is to show how little code is necessary to acheive behavior | |
| // similar to Cocoa's responder chain in pure Swift. |
| import Foundation | |
| extension String { | |
| func hyphenated(languageCode: String) -> String { | |
| let locale = Locale(identifier: languageCode) | |
| return self.hyphenated(locale: locale) | |
| } | |
| func hyphenated(locale: Locale) -> String { |
| #!/bin/bash | |
| # Merge multiple repositories into one big monorepo. Migrates every branch in | |
| # every subrepo to the eponymous branch in the monorepo, with all files | |
| # (including in the history) rewritten to live under a subdirectory. | |
| # | |
| # To use a separate temporary directory while migrating, set the GIT_TMPDIR | |
| # envvar. | |
| # | |
| # To access the individual functions instead of executing main, source this |
| public protocol Diffable: Hashable { | |
| var primaryKeyValue: String { get } | |
| } | |
| public struct AnyDiffable: Diffable { | |
| private let _primaryKeyValue: () -> String | |
During the review process, add the following fields as needed:
| // based on https://gist.github.com/gre/1650294 | |
| // no easing, no acceleration | |
| export function linear( t ) { | |
| return t; | |
| } | |
| // accelerating from zero velocity | |
| export function easeInQuad( t ) { | |
| return t * t; |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <math.h> | |
| uint8_t a(double x) { | |
| return -(31.0 / 6.0 * pow(x, 3)) + (38.0 * pow(x, 2)) - (449.0 / 6.0 * x) + 144.0; | |
| } | |
| uint8_t b(double x) { | |
| return (3.0 / 2.0 * pow(x, 3)) - (16.0 * pow(x, 2)) + (113.0 / 2.0 * x) + 56.0; |
| #include <iostream> | |
| template <int N> | |
| struct n { static const int v = N; }; | |
| template <typename...Ts> | |
| struct l { }; | |
| template <typename T, typename TL> struct c; |
| // Created by Vincent Esche on 2/10/15. | |
| // Copyright (c) 2015 Vincent Esche. All rights reserved. | |
| #include <iostream> | |
| #include <cxxabi.h> | |
| struct fizz; | |
| struct buzz; | |
| struct fizz_buzz; |