type Customer {
id: ID!
email: String!
}| // | |
| // Clubhouse.swift | |
| // Playground | |
| // | |
| // Created by Nav Singh on 2/11/21. | |
| // | |
| import SwiftUI | |
| struct Clubhouse: View { |
| cask_args appdir: "/Applications" | |
| tap "homebrew/cask-fonts" | |
| brew "mas" | |
| #### LAPTOPS #### | |
| #cask "tripmode" | |
| #### LAPTOPS #### | |
| mas "Boop", id: 1518425043 |
| #!/bin/sh | |
| EMULATOR="cloud-firestore-emulator" | |
| EMULATOR_TARGET=$(find ~/.cache/firebase/emulators/ -type f -name "$EMULATOR*.jar" | sort -r | head -n1) | |
| if [ -z "$EMULATOR_TARGET" ]; then | |
| echo "Could not find the firestore emulator. Ending test run." | |
| exit 1 | |
| fi |
| // | |
| // CoreDataController.swift | |
| // | |
| // Created by Keith Harrison http://useyourloaf.com | |
| // Copyright (c) 2017 Keith Harrison. All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // | |
| // 1. Redistributions of source code must retain the above copyright |
| module Fastlane | |
| module Actions | |
| module SharedValues | |
| CREATE_MERGE_REQUEST_WEB_URL = :CREATE_MERGE_REQUEST_WEB_URL | |
| end | |
| class CreateMergeRequestAction < Action | |
| def self.run(params) | |
| require 'excon' |
こっちを参考 -> UbuntuにSwiftとPerfectLibをインストールする
$ sudo apt-get install nginx
| func fetchUserId() -> Observable<String> { | |
| return create{ (observer) -> Disposable in | |
| Client.fetchUserId() { [unowned self] | |
| (userId: String?, err: ErrorType?) -> Void in | |
| if let _ = err{ | |
| observer.on(Event.Error(err!)) | |
| } else { | |
| observer.on(Event.Next(userId)) | |
| observer.on(Event.Completed) | |
| } |
| /* How to Hook with Logos | |
| Hooks are written with syntax similar to that of an Objective-C @implementation. | |
| You don't need to #include <substrate.h>, it will be done automatically, as will | |
| the generation of a class list and an automatic constructor. | |
| %hook ClassName | |
| // Hooking a class method | |
| + (id)sharedInstance { |
NOTE: This guide has moved to https://github.com/bpierre/switch-to-vim-for-good
This guide is coming from an email I used to send to newcomers to Vim. It is not intended to be a complete guide, it is about how I switched myself.
My decision to switch to Vim has been made a long time ago. Coming from TextMate 1, I wanted to learn an editor that is Open Source (so I don’t lose my time learning a tool that can be killed), cross platform (so I can use it everywhere), and powerful enough (so I won’t regret TextMate). For these reasons, Vim has always been the editor I wanted to learn, but it took me several years before I did it in a way that works for me. I tried to switch progressively, using the Janus Vim distribution for a few months, then got back to using TextMate 2 for a time, waiting for the next attempt… here is what finally worked for me.
Original gist with comments: https://gist.github.com/bpierre/0a0025d348b6001394e0