This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
- ReactSwift by @ColinEberhardt
- https://github.com/ColinEberhardt/ReactSwift
| # use the latest ubuntu environment (18.04) available on travis | |
| dist: bionic | |
| language: go | |
| # You don't need to test on very old versions of the Go compiler. It's the user's | |
| # responsibility to keep their compiler up to date. | |
| go: | |
| - 1.16.x |
This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
| #!/usr/bin/env bash | |
| # fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" | |
| } | |
| check_run package.json "npm prune && npm install" |
| !/bin/sh | |
| SAVEIFS=$IFS | |
| IFS=$(echo -en "\n\b") | |
| FILES=($(git ls-files -m | grep ".*\.swift$" | grep -v ".*R.generated.swift$")) | |
| if [[ ${FILES[@]} ]]; then | |
| export "SCRIPT_INPUT_FILE_COUNT"="${#FILES[@]}" | |
| for i in "${!FILES[@]}"; do | |
| export "SCRIPT_INPUT_FILE_$i"="${FILES[$i]}" | |
| done |
I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.
There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:
:vs **/*<partial file name><Tab>| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| "os/signal" | |
| evdev "github.com/gvalkov/golang-evdev" | |
| screen "github.com/nathany/bobblehat/sense/screen" |
| import Foundation | |
| import WebKit | |
| final class WebCacheCleaner { | |
| class func clean() { | |
| HTTPCookieStorage.shared.removeCookies(since: Date.distantPast) | |
| print("[WebCacheCleaner] All cookies deleted") | |
| WKWebsiteDataStore.default().fetchDataRecords(ofTypes: WKWebsiteDataStore.allWebsiteDataTypes()) { records in |
| import UIKit | |
| // MARK: - Specification | |
| protocol ViewType { | |
| associatedtype ViewModel: ViewModelType | |
| var viewModel: ViewModel { get } |
| class ViewControllerTest: XCTestCase { | |
| var systemUnderTest: ViewController! | |
| override func setUp() { | |
| super.setUp() | |
| //get the storyboard the ViewController under test is inside | |
| let storyboard: UIStoryboard = UIStoryboard(name: "Main_iPhone", bundle: nil) |