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
ORG 200H | |
PUSH BC | |
PUSH AF | |
POP BC | |
LD (8000H), A | |
LD A, C | |
LD (8001H), A | |
POP BC | |
LD B, (8001H) |
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
package io.github.gedorinku.ktorapp | |
import io.ktor.application.Application | |
import io.ktor.http.HttpMethod | |
import io.ktor.http.HttpStatusCode | |
import io.ktor.server.testing.handleRequest | |
import io.ktor.server.testing.withTestApplication | |
import org.junit.Test | |
import kotlin.test.assertEquals |
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
package io.github.gedorinku.ktorapp | |
import io.ktor.application.Application | |
import io.ktor.application.call | |
import io.ktor.response.respondText | |
import io.ktor.routing.get | |
import io.ktor.routing.routing | |
/** | |
* Created by gedorinku on 2017/12/09. |
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
ktor { | |
deployment { | |
port = 8080 | |
} | |
application { | |
modules = [ io.github.gedorinku.ktorapp.AppKt.sampleApplication ] | |
} | |
} |
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
buildscript { | |
ext.kotlin_version = '1.2.0' | |
ext.ktor_version = '0.9.0' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
} |
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 android.content.Context | |
import android.net.Uri | |
import android.provider.MediaStore | |
import okhttp3.MediaType | |
import okhttp3.RequestBody | |
import okio.BufferedSink | |
import okio.Okio | |
fun createRequestBody(uri: Uri, context: Context): RequestBody { |
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
buildscript { | |
ext.kotlin_version = '1.1.1' | |
repositories { | |
jcenter() | |
maven { url = "http://files.minecraftforge.net/maven" } | |
} | |
dependencies { | |
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
} |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define int long long | |
#define PB push_back | |
#define PPB pop_back | |
#define MK make_pair | |
#define ALL(V) V.begin(), V.end() | |
typedef pair<int, int> pii; |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define int long long | |
#define PB push_back | |
#define PPB pop_back | |
#define MK make_pair | |
#define ALL(V) V.begin(), V.end() | |
typedef pair<int, int> pii; |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define int long long | |
#define PB push_back | |
#define PPB pop_back | |
#define MK make_pair | |
#define ALL(V) V.begin(), V.end() | |
typedef pair<int, int> pii; |
NewerOlder