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
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
```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
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
#[test] | |
fn compilation_success() { | |
use std::marker::PhantomData; | |
pub struct MyState<T> { | |
_marker: PhantomData<T>, | |
} | |
pub struct MyStruct; |
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
/// A const reimplementation of the [`transmute`](core::mem::transmute) function, | |
/// avoiding problems when the compiler can't prove equal sizes. | |
/// | |
/// # Safety | |
/// Treat this the same as [`transmute`](core::mem::transmute), or (preferably) don't use it at all. | |
#[inline(always)] | |
#[cfg_attr(not(feature = "internals"), doc(hidden))] | |
pub const unsafe fn const_transmute<A, B>(a: A) -> B { | |
if mem::size_of::<A>() != mem::size_of::<B>() { | |
panic!("Size mismatch for generic_array::const_transmute"); |
OlderNewer