Skip to content

Instantly share code, notes, and snippets.

View sandwwraith's full-sized avatar

Leonid Startsev sandwwraith

View GitHub Profile
Subject: [PATCH] Cbor benchmarks
---
Index: benchmark/build.gradle
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/benchmark/build.gradle b/benchmark/build.gradle
--- a/benchmark/build.gradle (revision d3039fb81642908fff40285b9092cb424fdeded1)
+++ b/benchmark/build.gradle (date 1702397355468)
@sandwwraith
sandwwraith / TalkSamples.kt
Created July 23, 2019 16:23
Samples for kotlinx.serialization talk (WIP)
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import kotlinx.serialization.*
import kotlinx.serialization.CompositeDecoder.Companion.READ_DONE
import kotlinx.serialization.internal.HexConverter
import kotlinx.serialization.json.*
import kotlinx.serialization.protobuf.ProtoBuf
import org.junit.Test
/*
* Copyright (c) 2014, Oracle America, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
# Path to your oh-my-zsh installation.
export ZSH=/home/user/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="muse"
#ZSH_THEME="powerlevel9k/powerlevel9k"
#export TERM=xterm-256color
colorscheme monokain
set nu
set relativenumber
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
let scrollstep=300
set smoothscroll
let scrollduration=150
let blacklists = ["https://docs.google.com/*"]
imap <C-m> editWithVim