Skip to content

Instantly share code, notes, and snippets.

(let [fs [+ - *]
cbd [c b d]
m (x a b c d)]
(for [f1 fs f2 fs f3 fs,
o-1 cbd o-2 cbd o-3 cbd]
(let [res (f1 (f2 (f3 m o-1) o-2) o-3)]
[(make res a) [f1 f2 f3] [o-1 o-2 o-3] res])))
2018-01-15 01:39:51.598 [nettyCallPool-4-3] ERROR ktor.application - 101 Switching Protocols: GET - /ws/0
java.lang.NoSuchMethodError: kotlinx.coroutines.experimental.channels.ActorKt.actor(Lkotlin/coroutines/experimental/CoroutineContext;ILkotlinx/coroutines/experimental/CoroutineStart;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/experimental/channels/SendChannel;
at io.ktor.websocket.WebSocketWriter.<init>(WebSocketWriter.kt:10)
at io.ktor.websocket.RawWebSocketImpl.<init>(RawWebSocketImpl.kt:18)
at io.ktor.websocket.WebSocketUpgrade.upgrade(WebSocketUpgrade.kt:37)
at io.ktor.server.netty.http1.NettyHttp1ApplicationResponse.respondUpgrade(NettyHttp1ApplicationResponse.kt:69)
at io.ktor.server.engine.BaseApplicationResponse.respondOutgoingContent$suspendImpl(BaseApplicationResponse.kt:62)
at io.ktor.server.engine.BaseApplicationResponse.respondOutgoingContent(BaseApplicationResponse.kt)
at io.ktor.server.netty.NettyApplicationResponse.respondOutgoingContent$suspendImpl(NettyApplicationResponse
@noncom
noncom / ExtFunInf.kt
Last active February 7, 2018 09:31
Kotlin extension function receiver type inference
fun Int.one(x: Int) = this + 1 + x
fun Int.two(x: Int) = this + 2 + x
fun Int.three(x: Int) = this + 3 + x
fun Int.noop(x: Int) = this + x
class Z(val action: Int.() -> Int)
@noncom
noncom / inheritance.kt
Created February 8, 2018 09:16
A thought on inheritance...
interface Data<T: Data> {
companion object {
abstract fun decode(encoded: Encoded): T
}
}
class Coords2D : Data<Coords2D> {
companion object {
fun decode(encoded: Encoded): Coords2D {
...
<!--//--><![CDATA[// ><!--
function codeTel2Txt( instr ) {
var intval = parseInt(instr,10);
var codeP1 = parseInt(((intval/10000)|0)%100,16);
var codeP2 = parseInt((intval%10000),16);
var codeText = ("000" + codeP1).slice(-3) + ',' + ("00000" + codeP2).slice(-5);
return codeText;
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id:$
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This source is available for distribution and/or modification
// only under the terms of the DOOM Source Code License as
// published by id Software. All rights reserved.
{
{
{"fun_1", {args ...}},
{"fun_2", {args ...}},
{"fun_3", {args ...}}
},
{
{"fun_1", {args ...}}, -- params
{"fun_2", {args ...}},
{"fun_3", {args ...}}
This file has been truncated, but you can view the full file.
1.15.1\forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar path /net/minecraft/client/gui/overlay/DebugOverlayGui$1.class
[15:44:55] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\alexm\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1\forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar path /net/minecraft/client/gui/overlay/BossOverlayGui.class
[15:44:55] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\alexm\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1\forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar path /net/minecraft/client/gui/NewChatGui.class
[15:44:55] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: C:\Users\alexm\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1\
This file has been truncated, but you can view the full file.
[23:08:48] [main/INFO]: ModLauncher running: args [--username, nomisincalaca, --version, forge-31.2.8, --gameDir, C:\Users\alexm\Twitch\Minecraft\Instances\MP 1.15.2 (1), --assetsDir, C:\Users\alexm\Twitch\Minecraft\Install\assets, --assetIndex, 1.15, --uuid, 81f5794fba52451d93ef250020fb314f, --accessToken, ????????, --userType, mojang, --versionType, release, --width, 1024, --height, 768, --launchTarget, fmlclient, --fml.forgeVersion, 31.2.8, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20200515.085601]
[23:08:48] [main/INFO]: ModLauncher 5.1.0+69+master.79f13f7 starting: java version 1.8.0_51 by Oracle Corporation
[23:08:48] [main/INFO]: Added Lets Encrypt root certificates as additional trust
[23:08:49] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8 Source=file:/C:/Users/alexm/Twitch/Minecraft/Instances/MP%201.15.2%20(1)/mods/MixinBootstrap-1.0.3.jar Service=ModLauncher Env=CLIENT
[23:08:50] [main/INFO]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]:
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 6/6/20 4:10 AM
Description: Manually triggered debug crash
java.lang.Throwable: null
at net.minecraft.client.KeyboardListener.func_204870_b(KeyboardListener.java:431) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1446) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:codechickenlib:IItemRenderer,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:904) [?:?] {re:classloading,pl:accesstransformer:B,xf:fml:codechickenlib:IItemRenderer,pl:runtimedistcleaner:A}