こっちを参考 -> UbuntuにSwiftとPerfectLibをインストールする
$ sudo apt-get install nginx
こっちを参考 -> UbuntuにSwiftとPerfectLibをインストールする
$ sudo apt-get install nginx
/* 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 { |
Wil Turner, Brook Callhan: Speakers
##3 Main components/concepts that enable UI Testing:##
#!/bin/sh | |
# | |
# Script for Xcode and Carthage | |
# ------------------------------ | |
# | |
# Dismisses changes to all the frameworks except the given frameworks in the iOS build folder. | |
# This is used to undo the changes done to the framework build after `carthage update` command. | |
# | |
# |
extension NSURL { | |
func getKeyVals() -> Dictionary<String, String>? { | |
var results = [String:String]() | |
var keyValues = self.query?.componentsSeparatedByString("&") | |
if keyValues?.count > 0 { | |
for pair in keyValues! { | |
let kv = pair.componentsSeparatedByString("=") | |
if kv.count > 1 { | |
results.updateValue(kv[1], forKey: kv[0]) | |
} |
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' |
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) | |
} |
// | |
// Clubhouse.swift | |
// Playground | |
// | |
// Created by Nav Singh on 2/11/21. | |
// | |
import SwiftUI | |
struct Clubhouse: View { |
#!/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 |