- Introduction to Functional Programming Johannes Weiß - https://vimeo.com/100786088
- ReactiveCocoa at MobiDevDay Andrew Sardone - https://vimeo.com/65637501
- The Future Of ReactiveCocoa Justin Spahr-Summers - https://www.youtube.com/watch?v=ICNjRS2X8WM
- Enemy of the State Justin Spahr-Summers - https://www.youtube.com/watch?v=7AqXBuJOJkY
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - https://developer.apple.com/videos/play/wwdc2014/229/
- Functioning as a Functionalist Andy Matuschak - https://www.youtube.com/watch?v=rJosPrqBqrA
- Controlling Complexity in Swift Andy Matuschak - https://realm.io/news/andy-matuschak-controlling-complexity/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Jeany Meza on 2020/03/04. | |
// Copyright © 2020 pestalozzitech. All rights reserved. | |
// | |
import UIKit | |
import UIComponents | |
public class TemplateViewController: UIViewController { | |
public init() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from "fs" | |
import Axios from "axios" | |
async function main() { | |
let image = __dirname + "/image.jpg" | |
const stats = fs.statSync(image) | |
const upload = fs.createReadStream(image, { highWaterMark: 1024 * 5 }) // 5 kb/op | |
console.log("file size: ", stats.size / 1024, "KB") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from "fs" | |
import express from "express" | |
app.post("/test-upload", async (req, res) => { | |
const mimetype = req.headers["content-type"] | |
const filename = req.headers["filename"] | |
prettyPrint({ mimetype, filename }) | |
if (!mimetype || typeof mimetype !== "string") return res.status(403).send() | |
if (!filename || typeof filename !== "string") return res.status(403).send() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
struct API { | |
static let baseURL = "https://shopicruit.myshopify.com/admin/" | |
enum GET { | |
case customCollections | |
case collects(collection_id: String) | |
case products(product_ids: [String]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CoreLocation | |
extension CLLocationCoordinate2D { | |
func boundingBox(radius: CLLocationDistance) -> (max: CLLocationCoordinate2D, min: CLLocationCoordinate2D) { | |
// 0.0000089982311916 ~= 1m | |
let offset = 0.0000089982311916 * radius | |
let latMax = self.latitude + offset | |
let latMin = self.latitude - offset | |
// 1 degree of longitude = 111km only at equator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"europe": { | |
"va": "vatican city", | |
"ch": "switzerland", | |
"ad": "andorra", | |
"ee": "estonia", | |
"is": "iceland", | |
"am": "armenia", | |
"al": "albania", | |
"cz": "czech republic", |
NewerOlder