- Proposal: TBD
- Author: Erica Sadun, Chris Lattner, Xiaodi Wu, David Goodine
- Status: TBD
- Review manager: TBD
This proposal redesigns common unwrapping tasks:
// A URLSession extension that fetches data from a URL and decodes to some Decodable type. | |
// Usage: let user = try await URLSession.shared.decode(UserData.self, from: someURL) | |
// Note: this requires Swift 5.5. | |
extension URLSession { | |
func decode<T: Decodable>( | |
_ type: T.Type = T.self, | |
from url: URL, | |
keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .useDefaultKeys, | |
dataDecodingStrategy: JSONDecoder.DataDecodingStrategy = .deferredToData, | |
dateDecodingStrategy: JSONDecoder.DateDecodingStrategy = .deferredToDate |
extension UIView { | |
@objc func exerciseAmbiguityInLayoutRepeatedly() { | |
if self.hasAmbiguousLayout { | |
Timer.scheduledTimer(timeInterval: 0.5, | |
target: self, | |
selector: #selector(UIView.exerciseAmbiguityInLayout), | |
userInfo: nil, | |
repeats: true) | |
} | |
} |
// | |
// KeyboardInsettable.swift | |
// | |
// Created by Josh Avant on 9/11/18. | |
// | |
import Foundation | |
import UIKit | |
protocol KeyboardInsettable { |
command script import ~/.lldbscripts/break_unsatisfiable.py |
This proposal redesigns common unwrapping tasks:
I'm still holding out for this being a hoax, a big joke, and that they're going to cancel the kickstarter any minute. It'd be quite the cute "lessons learned" about anonymity scams. However, I will be treating it from here on out as a genuine scam. (As of May 2nd, the kickstarter has been cancelled, after the strangest attempt to reply to this imaginable. Good riddance.)
This absolutely ridiculous thing was brought to my attention by a friend and since it was late at night I thought I must be delirious in how absurdly over the top fake it seemed. So I slept on it, woke up, and found that it had gotten a thousand dollars more funding and was every bit as flabbergasting as I thought it was.
Since I realize that not everyone has spent their entire lives studying computers – and such people are the targets of such scams –
#!/bin/sh | |
# Create a RAM disk with same perms as mountpoint | |
# Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions | |
# Usage: sudo ./xcode_ramdisk.sh start | |
USERNAME=$(logname) | |
TMP_DIR="/private/tmp" | |
RUN_DIR="/var/run" |
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'forecast_io' | |
ForecastIO.api_key = 'xxxxxxxxxxxx' | |
forecast = ForecastIO.forecast(44.047889,-91.640439) | |
if ARGV[0] == "current" | |
print "#{forecast.currently.temperature.round}, #{forecast.currently.summary}" |
#The Shadow DOM Diaries
Feature design is hard, and takes time. With time, it doesn't matter how public and consistent you are with communication during design process. In the end, it all will look like a jumbled mess of emails and bug comments. That seems bad. To make things less bad, I decided to start writing these little docs. Here they are. I may add more. Or not. Whatevs.
Sometimes You Need to Build a Larger Thing First looks back at the road we've traveled.
Shadow DOM Evolution outlines the path forward.
Why Do We Only Allow Children in Insertion Points provides a glimpse into the reasoning behind current insertion point design.
TL;DR of Symbioz.
Notes: I only had luck with Ruby 1.9.3, not Ruby2, but I didn't dig into the Ruby2 problems too deeply. YMMV.
Installation on a Mac: