Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
- (void)touchesEnded: (NSSet *)touches withEvent: (UIEvent *)event { | |
for (UIView* view in self.view.subviews) { | |
if ([view isKindOfClass:[UITextField class]]) | |
[view resignFirstResponder]; | |
} | |
} |
// This is a comparison between Haskell and Groovy based on some simple problems found in the following | |
// Haskell Introduction: | |
// http://learnyouahaskell.com/starting-out#ready-set-go | |
// Ex 1. If we have two lists, [2,5,10] and [8,10,11] and we want to get the products of all the possible | |
// combinations between numbers in those lists, here's what we'd do. | |
/* HASKELL */ | |
[ x*y | x <- [2,5,10], y <- [8,10,11]] |
def osascript(script) | |
system 'osascript', *script.split(/\n/).map { |line| ['-e', line] }.flatten | |
end | |
osascript <<-END | |
tell application "Finder" | |
display dialog "Hello" | |
end tell | |
END |
# Change YOUR_TOKEN to your prerender token | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |
// on error the server sends JSON | |
/* | |
{ "error": { "data": { "message":"A thing went wrong" } } } | |
*/ | |
// create model classes.. | |
public class ErrorResponse { | |
Error error; | |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
# Create the Root CA private key | |
## ref> https://www.openssl.org/docs/manmaster/apps/genrsa.html | |
openssl genrsa -out myRootCA.key 4096 | |
# Generate the Root CA certificate signed with the private key | |
## ref> https://www.openssl.org/docs/manmaster/apps/req.html | |
openssl req -x509 -new -nodes -key myRootCA.key -days 3650 -out myRootCA.pem | |
# Country Name (2 letter code) [AU]:AU | |
# State or Province Name (full name) [Some-State]:NSW |
import 'package:flutter/material.dart'; | |
import 'dart:math' as math; | |
import 'dart:async'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { |
import 'dart:async'; | |
import 'package:simple_auth/simple_auth.dart'; | |
import "package:http/http.dart" as http; | |
import 'dart:convert' as convert; | |
enum AzureADEasyAuthType { aad, microsoftAccount, facebook, google, twitter } | |
class AzureADEasyAuthApi extends OAuthApi { | |
String siteUrl; | |
AzureADEasyAuthType authType; |