Important
These benchmark results are outdated.
Check out our blog post for the latest benchmark results.
- c5.xlarge AWS instance: 4 CPUs, 8 GB RAM
| #!/bin/bash | |
| CYAN="$(tput bold; tput setaf 6)" | |
| RESET="$(tput sgr0)" | |
| clear | |
| if command -v python3 > /dev/null 2>&1; then | |
| if [ $(python3 -c "print('ye')") = "ye" ]; then | |
| clear |
Important
These benchmark results are outdated.
Check out our blog post for the latest benchmark results.
| import Foundation | |
| struct Partial<Wrapped>: CustomStringConvertible, CustomDebugStringConvertible { | |
| enum Error<ValueType>: Swift.Error { | |
| case missingKey(KeyPath<Wrapped, ValueType>) | |
| case invalidValueType(key: KeyPath<Wrapped, ValueType>, actualValue: Any) | |
| } | |
| private var values: [PartialKeyPath<Wrapped>: Any?] = [:] |
| // LocationPickerViewController.swift | |
| class LocationPickerViewController: UITableViewController { | |
| ... | |
| override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | |
| didSelectLocation(locations[indexPath.row]) | |
| } | |
| } | |
| extension UIResponder { |
| declare var __DEV__: boolean; | |
| declare module 'react-native' { | |
| declare type Color = string | number; | |
| declare type Transform = | |
| { perspective: number } | | |
| { scale: number } | | |
| { scaleX: number } | |
This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| NEW_VER="0.33.1" | |
| POD_VER=`pod --version 2>/dev/null`|| POD_VER=`~/.rbenv/shims/pod --version 2>/dev/null` | |
| if [[ "$POD_VER" != *$NEW_VER ]]; then | |
| echo "error: WTF! You MUST upgrade cocoapods!!!" | |
| exit 1 | |
| fi |
A list of Sketch plugins hosted at GitHub, in no particular order.