This file contains hidden or 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
package com.apurebase.kgraphql.integration | |
import com.apurebase.kgraphql.KGraphQL | |
import org.junit.jupiter.api.Test | |
class GitHubIssuesBugTest { | |
data class SearchHit(val spanData: Span) | |
data class Tag(val key: String, val type: String, val value: String) | |
data class LogPoint(val timestamp: Int, val fields: List<LogPointField>) | |
data class LogPointField(val key: String, val value: String) |
This file contains hidden or 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 SchemaException29 { | |
data class UUID(val id: Int?) | |
data class TimeEntry(val id: UUID, val name: String) | |
val schema = defaultSchema { | |
query("get") { | |
resolver { -> | |
TimeEntry(UUID(25), "Name") | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html class="<?= $params['html_class'] ?>" lang="<?= $intl->getLocaleTag() ?>"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<?= $view->render('head') ?> | |
<!--[if lte IE 8]><script src="<?= $view->url()->getStatic('theme:js/ie/html5shiv.js')?>"></script><![endif]--> | |
<link rel="stylesheet" href="<?= $view->url()->getStatic('theme:css/main.css') ?>" > | |
<!--[if lte IE 8]><link rel="stylesheet" href="<?= $view->url()->getStatic('theme:css/ie8.css') ?>" ><![endif]--> |
This file contains hidden or 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
// PUT | |
PUT /api/todo HTTP/1.1 | |
Host: 194.239.172.19 | |
Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NasdfiJ9.eyJ1c2VybmFtZSI6ImplZ2d5IiwicGFzc3dvcmQiOiIkMmEkMTAkNGhLeE1vVEduRzZQNVBjZ2pJU1dpZVo3RHkuOVJuVi8yMFA4N2tQcHA3bktNNDZVeG8yTHEiLCJfaWQiOiI1NzJlNDc0YWNiODkyZjliNzc5Y2Y3YjciLCJfX3YiOjB9.qKeUdL-ch9G6RE_eYaaNvutvXOICSqCabRt4zOTTtcI | |
Cache-Control: no-cache | |
Postman-Token: 25361856-b09c-1ff8-d23e-e04c37e61c94 | |
Content-Type: application/x-www-form-urlencoded | |
id=5738af6f7aa648d916d1be66&archived=true |
This file contains hidden or 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 com.google.gson.JsonArray; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; | |
import java.util.ArrayList; | |
/** | |
* Created by Jógvan 21/05-2016 19:28. | |
* | |
* Using this library: http://www.java2s.com/Code/JarDownload/json-simple/json-simple-1.1.1.jar.zip |
This file contains hidden or 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
GET /api/todo HTTP/1.1 | |
Host: 194.239.172.19 | |
Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cewybmFtZSI6ImplZ2d5IiwicGFzc3dvcmQiOiIkMmEkMTAkNGhLeE1vVEduRzZQNVBjZ2pJU1dpZVo3RHkuOVJuVi8yMFA4N2tQcHA3bktNNDZVeG8yTHEiLCJfaWQiOiI1NzJlNDc0YWNiODkyZjliNzc5Y2Y3YjciLCJfX3YiOjB9.qKeUdL-ch9G6RE_eYaaNvutvXOICSqCabRt4zOTTtcI | |
Cache-Control: no-cache | |
Postman-Token: b0763115-8c41-b33c-0562-98a23f76761f |
This file contains hidden or 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
//: Playground - noun: a place where people can play | |
import UIKit | |
func removeTodo(t: String, hasChildren: () -> Bool, ifAcceptedCh: (success: Bool) -> Void){ | |
if t == "Kids"{ | |
if hasChildren() { | |
ifAcceptedCh(success: true) |