Skip to content

Instantly share code, notes, and snippets.

@Txuritan
Txuritan / playground.rs
Created December 5, 2019 03:36 — forked from rust-play/playground.rs
Code shared from the Rust Playground
use std::{str::FromStr, convert::TryFrom };
fn main() {
println!(
"{:#?}",
tokenize("use myriad_mod::{Block, Item, Logger, Mod, Resource}")
);
}
fn tokenize(text: impl AsRef<str>) -> Vec<Token> {
from kivy.lang import Builder
from kivy.uix.button import Button
class RegisterUACButton(Button):
def __init__(self):
super(RegisterUACButton, self).__init__(**kwargs) # These
def btn_down(self):
self.bind(on_press=Builder.load_file('../register/register.kv'))
@Txuritan
Txuritan / merge-maps.kt
Last active December 18, 2017 18:09 — forked from cy6erGn0m/merge-maps.kt
Merge two maps with custom reduce function for Kotlin
fun main(args: Array<String>) {
var mapOne = mutableMapOf<String, Any>(
"_version_" to "1.10.2-1.0.0",
"tweaks" to hashMapOf<String, Any>(
"_comment_" to "General tweaks to make the game slightly better",
"greener" to hashMapOf(
"_comment_" to "Makes the game slightly greener (based off Quark)",
"value" to true
)
)
@Txuritan
Txuritan / index.html
Created March 12, 2017 20:15 — forked from anonymous/index.html
Tumblr Theme
<div class="navbar marginBottom">
<div class="button">
<div data-icon="ei-navicon" data-size="s"></div>
</div>
<div class="name">Txuritan</div>
<div class="search">
<div data-icon="ei-search" data-size="s"></div>
</div>
</div>

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>