This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
@State private var input = "" | |
private var formatter: NumberFormatter | |
init () { | |
formatter = NumberFormatter() | |
formatter.numberStyle = .decimal | |
} | |
private func transform(string input: String) -> String { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InOut: ObservableObject { | |
@Published var input = "" | |
@Published private (set) var output = "output" | |
private var publisher: AnyCancellable? | |
init() { | |
publisher = $input.map({ | |
String($0.reversed()) | |
}).assign(to: \.output, on: self) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install curb --platform=ruby -- --with-curl-lib=/usr/local/curl/lib --with-curl-include=/user/local/opt/curl/include | |
current directory: /Users/below/.rvm/gems/ruby-2.6.3/gems/curb-0.9.10/ext | |
/Users/below/.rvm/rubies/ruby-2.6.3/bin/ruby -I /Users/below/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0 -r ./siteconf20191115-75374-1805yor.rb extconf.rb --with-curl-lib\=/usr/local/curl/lib --with-curl-include\=/user/local/opt/curl/include | |
checking for curl-config... yes | |
checking for curlopt_tcp_keepalive... no | |
checking for curlopt_tcp_keepidle... no | |
checking for curlopt_tcp_keepintvl... no | |
checking for curlinfo_appconnect_time... no | |
checking for curlinfo_redirect_time... no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running with gitlab-runner 12.4.1 (05161b14) | |
on OSX-02 6b7d979e | |
Using Shell executor... | |
Running on foo-agent02.local... | |
Fetching changes with git depth set to 10... | |
Reinitialized existing Git repository in /Users/jenkins/builds/6b7d979e/0/gitlab/FOO/Foo_iOS/.git/ | |
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 | |
fatal: the remote end hung up unexpectedly | |
fatal: early EOF | |
fatal: index-pack failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checking for jobs... received job=287179 repo_url=https://smarthome-wbench.psst.t-online.corp/gitlab/SMARTHOME/SmarthomeB2C_iOS.git runner=6b7d979e | |
Failed to requeue the runner: builds=1 runner=6b7d979e | |
Running with gitlab-runner 12.4.1 (05161b14) job=287179 project=31 runner=6b7d979e | |
on OSX-02 6b7d979e job=287179 project=31 runner=6b7d979e | |
Shell configuration: environment: [] | |
dockercommand: | |
- sh | |
- -c | |
- "if [ -x /usr/local/bin/bash ]; then\n\texec /usr/local/bin/bash --login\nelif [ | |
-x /usr/bin/bash ]; then\n\texec /usr/bin/bash --login\nelif [ -x /bin/bash ]; then\n\texec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This is more or less just a bash script for this tutorial: https://0xcc.re/building-xnu-kernel-macosx-sierrra-10-12-x/ | |
# So, huge thanks to Mikal Villa! I updated the tarballs for macOS 10.13 and added line 29. | |
# | |
function checkError { | |
if [ $? -ne 0 ] ; then | |
echo "Script failed" | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**** Hokay **** | |
I have an existing project, which includes a Watch App. The main App and the Watch extension share some code. | |
Now (for reasons I will gladly explain but I ask you so simply presume as valid for now) some code is moving into a framework. | |
The shared code in the App and in the Extension is depending on (i.e. using) the code in the Framework. | |
Said Framework should be different for the App and the Watch (i.e. it must show different behavior), this is why don't want to build a universal Framework (I don't even know if that is possible). For simplicity however, the Pricipal Class of both Frameworks should be the same, so that the shared code in the App and the Watch can access the Framework the same way. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15:41:57.007 [LIFECYCLE] [org.gradle.launcher.daemon.client.SingleUseDaemonClient] To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html. | |
15:41:57.017 [DEBUG] [org.gradle.launcher.daemon.client.DefaultDaemonStarter] Using daemon args: [/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java, -Xmx1536m, -Dfile.encoding=UTF-8, -Duser.country=DE, -Duser.language=de, -Duser.variant, -cp, /Users/below/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv/gradle-2.14.1/lib/gradle-launcher-2.14.1.jar] | |
15:41:57.023 [INFO] [org.gradle.launcher.daemon.client.DefaultDaemonStarter] Starting daemon process: workingDir = /Users/below/.gradle/daemon/2.14.1, daemonArgs: [/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java, -Xmx1536m, -Dfile.encoding=UTF-8, -Duser.country=DE, -Duser.language=de, -Duser.variant, -cp, /Users/below/.gradle/wrapper/dists/gradle-2.14.1-all/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error:Unable to find method 'org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V'. | |
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) | |
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. | |
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes. | |
12:33 Gradle sync failed: Cause: org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/Hostn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
let scheme : String! = "https" // "https" | |
let host = "example.com" // "example.com" | |
let urlString = "\(scheme)://\(host)" // "Optional("https")://example.com" // <-- WHAT? | |
let url = URL(string: urlString) // nil |