New Computer Setup Hopefully this will be useful to me or someone else in the future…
Applications
- Zoom
- Slack
- VSCode
- Xcode
- Android Studio
- https://reactnative.dev/docs/environment-setup?platform=android
| /* eslint-env node */ | |
| import { TelemetryClient } from "@iracing-data/grpc-node"; | |
| import { DateTime, Duration } from "luxon"; | |
| export const isEndOfLine = (flags) => !!(flags & 1); | |
| export const isFreePass = (flags) => !!(flags & 2); | |
| export const isWavedAround = (flags) => !!(flags & 4); | |
| const main = async () => { | |
| const apiUrl = process.env.API_URL || "localhost:50051"; |
New Computer Setup Hopefully this will be useful to me or someone else in the future…
Applications
| # Build what's changed in the HEAD commit by default | |
| COMMIT_RANGE="$CIRCLE_SHA1" | |
| # If this is a PR, diff the changes over time against ther commit status | |
| # according to the Github API. | |
| # TODO: This should move to a Circle Orb cause OSS is sweet. | |
| if ! [[ -z ${CIRCLE_PULL_REQUEST+x} ]]; | |
| then | |
| GITHUB_USER=wellth-app | |
| GITHUB_REPO_NAME=react-components |
| import UIKit | |
| let CodeLocation = "index" | |
| let ModuleName = "<ProjectName>" | |
| @UIApplicationMain | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| func application( |
| import Apollo | |
| import Lunar | |
| let apollo: ApolloClient = { | |
| let cache = try! LunarCache() /// try! since any failure would be considered catastrophic | |
| let store = ApolloStore(cache: cache) | |
| let networkTransport: NetworkTransport = // Set up your network | |
| return ApolloClient( |
| import CoreData | |
| public final class LunarRecord: NSManagedObject { | |
| /// The primary key for the object. | |
| public let key: String | |
| /// The JSON string that represents the object. | |
| public let record: String | |
| } |
| public protocol NormalizedCache { | |
| /// Loads records corresponding to the given keys. | |
| /// - returns: A promise that fulfills with an array, with each index containing either the | |
| /// record corresponding to the key at that index or nil if not found. | |
| func loadRecords(forKeys keys: [CacheKey]) -> Promise<[Record?]> | |
| /// Merges a set of records into the cache. | |
| /// - returns: A promise that fulfills with a set of keys corresponding to *fields* that have | |
| /// changed (i.e. QUERY_ROOT.Foo.myField). These are the same type of keys as are |
| import GraphQL | |
| import JSONMapping | |
| /// Provides a GraphQL update mutation and variables | |
| protocol UpdateRequestProvider { | |
| var updateMutation: GraphQL.Mutation { get } | |
| var updateVariables: JSONObject { get } | |
| } | |
| import UIKit | |
| import ReactiveCocoa | |
| // MARK: - UIControl | |
| extension UIControl { | |
| func producerForEvent<T where T: UIControl>(controlEvent: UIControlEvents) -> SignalProducer<T, NoError> { | |
| return self.rac_signalForControlEvents(controlEvent) | |
| .toSignalProducer() | |
| .map { (object: AnyObject?) -> T? in |