I hereby claim:
- I am c16a on github.
- I am c16a (https://keybase.io/c16a) on keybase.
- I have a public key ASCM39UscHEPlnIZMXZzwto7n-uaBg3_6Nrk7bKDyD1_7Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <dependency> | |
| <groupId>io.helidon.webserver</groupId> | |
| <artifactId>helidon-webserver-zipkin</artifactId> | |
| </dependency> |
| import io.helidon.webserver.Routing; | |
| import io.helidon.webserver.WebServer; | |
| public static void main(String[] args) { | |
| Routing routing = Routing.builder() | |
| .get("/hello", (req, res) -> res.send("Hello World")) | |
| .build(); | |
| WebServer.create(routing) | |
| .start(); |
| fun main() { | |
| async { | |
| print("Printing GeeksQuiz from thread") | |
| } | |
| } |
| use std::thread; | |
| fn main() { | |
| println!("Before thread"); | |
| // fill the vector | |
| let handle =thread::spawn(|| { | |
| println!("Printing GeeksQuiz from threads"); | |
| }) | |
| println!("After thread"); | |
| handle.join().unwrap(); |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <pthread.h> | |
| void *threadFunc(void *vargp) | |
| { | |
| printf("Printing GeeksQuiz from Thread \n"); | |
| return NULL; | |
| } | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='utf-8' /> | |
| <title>Animate a point</title> | |
| <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=yes' /> | |
| <script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.45.0/mapbox-gl.js'></script> | |
| <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.45.0/mapbox-gl.css' rel='stylesheet' /> | |
| <script src="https://cdn.pubnub.com/sdk/javascript/pubnub.4.21.2.js"></script> |
| UIAlertController* alert=[UIAlertController alertControllerWithTitle:@"Title" message:@"Message" preferredStyle:UIAlertControllerStyleAlert]; | |
| UIAlertAction* yesButton = [UIAlertAction actionWithTitle:@"Yes" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { | |
| NSLog(@"You pressed Yes, please button"); | |
| // call method whatever u need | |
| }]; | |
| UIAlertAction* noButton = [UIAlertAction actionWithTitle:@"No" | |
| style:UIAlertActionStyleDefault |
| package main | |
| import "database/sql" | |
| import ( | |
| "fmt" | |
| _ "github.com/go-sql-driver/mysql" | |
| "github.com/satori/go.uuid" | |
| "math/rand" | |
| "sync" | |
| ) |
| // Add this function to the end of AppDelegate.swift | |
| // Call this function in | |
| // func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool | |
| func applyFirstResponder() { | |
| let dummyField = UITextField() | |
| self.window?.addSubView(dummyField) | |
| dummyField.becomeFirstResponder() | |
| dummyField.resignFirstResponder() | |
| dummyField.removeFromSuperview() | |
| } |