Identifiers (variables, functions) cannot be named any of these: "implements", "interface", "let", "package", "private", "protected", "public", "static", and "yield"
OctalLiterals are not allowed.
//<editor-fold desc="Node Requires, gulp, etc"> | |
var gulp = require('gulp'), | |
autoprefixer = require('gulp-autoprefixer'), | |
clean = require('gulp-clean'), | |
concat = require('gulp-concat'), | |
csso = require('gulp-csso'), | |
debug = require('gulp-debug'), | |
footer = require('gulp-footer'), | |
gutil = require('gulp-util'), | |
gzip = require('gulp-gzip'), |
extension Sequence where Element: ExpressibleByIntegerLiteral { | |
private func abstractAverage<T>(sum: (T, T) -> T, div: (T, T) -> T) -> T where Element == T { | |
var i: T = 0 | |
var total: T = 0 | |
for value in self { | |
total = sum(total, value) | |
i = sum(i, 1) | |
} |
public protocol Dividable { | |
static func / (lhs: Self, rhs: Self) -> Self | |
} | |
extension Int : Dividable {} | |
extension Double : Dividable {} | |
extension Sequence where Element : Numeric & Dividable { | |
func average() -> Element { | |
var i: Element = 0 |
I suspect most developers are using the libdispatch inefficiently due to the way it was presented to us at the time it was introduced and for many years after that, and due to the confusing documentation and API. I realized this after reading the 'concurrency' discussion on the swift-evolution mailing-list, in particular the messages from Pierre Habouzit (who is the libdispatch maintainer at Apple) are quite enlightening (and you can also find many tweets from him on the subject).
My take-aways are:
import Combine | |
import SwiftUI | |
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *) | |
@propertyWrapper | |
public struct Model<Value>: DynamicProperty { | |
private final class _Box: ObservableObject { | |
let objectWillChange = ObservableObjectPublisher() | |
var value: Value { |
##Simply annoying Tweets
Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD
([a-z])/1{4}
Tweet w/ just a single hashtag: #omgthissucks
^ *#[^ ]+$
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Sindre Sorhus <http://sindresorhus.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
APP_NAME = 'My App' | |
TEAM_ID = 'XXXXXXXXXX' | |
desc 'Create a beta build' | |
task :build do | |
# Start with a clean state | |
build_dir = 'build' | |
system %(rm -rf #{build_dir}) | |
# Build |
NSVisualEffectMaterial constants, and the undocumented materials they coorespond to in various modes: | |
+----------------------+-------+----------+------+---------+ | |
| MATERIAL # | LIGHT | LIGHT EM | DARK | DARK EM | | |
+----------------------+-------+----------+------+---------+ | |
| | | | | | | |
| 0 - Appearance Based | 3 | 3 | 5 | 5 | | |
| | | | | | | |
| 1 - Light | 3 | 3 | 3 | 3 | | |
| | | | | | | |
| 2 - Dark | 4 | 4 | 4 | 4 | |