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
syntax enable | |
filetype plugin indent on | |
call plug#begin('~/.vim/plugged') | |
Plug 'preservim/nerdtree' | |
Plug 'preservim/tagbar' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'vim-airline/vim-airline' | |
Plug 'frazrepo/vim-rainbow' |
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
```kotlin | |
import korlibs.time.* | |
import korlibs.korge.* | |
import korlibs.korge.scene.* | |
import korlibs.korge.tween.* | |
import korlibs.korge.view.* | |
import korlibs.image.color.* | |
import korlibs.image.format.* | |
import korlibs.io.file.std.* | |
import korlibs.korge.view.align.* |
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
https://docs.google.com/presentation/d/1ezGsmADO2Zec4WgGFv1lOmJCQO7xZZKIFqi4qKDpOuA/edit#slide=id.gc6f73a04f_0_14 |
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
miniGames: | |
MCdev: | |
spawnLocation: | |
world: games | |
x: -18.5 | |
y: 41.0 | |
z: 2.5 | |
yaw: 0.0 | |
pitch: 0.0 | |
1,-1Location: |
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 java.util.UUID | |
var isEqualsFunctionCalled = false | |
data class KeyObj(val uuid: UUID = UUID.randomUUID()) { | |
override fun equals(other: Any?): Boolean { | |
isEqualsFunctionCalled = true | |
return super.equals(other) |
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 java.util.UUID | |
import kotlin.system.measureTimeMillis | |
fun main() { | |
fun newRandomString() = UUID.randomUUID().toString() | |
val list = (0..100).map { newRandomString() }.toList() | |
val times = 100000 | |
val a = measureTimeMillis { | |
repeat(times) { | |
list.forEach { } |
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
inline fun <T> List<T>.fastForEach(callback: (T) -> Unit) { | |
var n = 0 | |
while (n < size) callback(this[n++]) | |
} | |
inline fun <T> Array<T>.fastForEach(callback: (T) -> Unit) { | |
var n = 0 | |
while (n < size) callback(this[n++]) | |
} |
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
miniGames: | |
테스트: | |
maxPlayers: 20 | |
maxStartPlayers: 1 | |
waitForStartTime: 100 | |
gameTime: 100 | |
repeatList: | |
- wait | |
- timer | |
repeats: |
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
<div> | |
<canvas id="myChart"></canvas> | |
</div> | |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
<script> | |
function getRandomInt(max) { | |
return Math.floor(Math.random() * max); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Hello</title> | |
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css"> | |
</head> | |
<body> |
NewerOlder