Skip to content

Instantly share code, notes, and snippets.

source D:/Config/vimfiles/.vimrc
inoremap <c-v> <c-r>
nmap <Space> <Action>(LeaderAction)
vmap <Space> <Action>(LeaderAction)
set ignorecase smartcase
vnoremap <c-n> "by/<c-r>b<cr><c-o>
nnoremap <c-n> viw"by/\<<c-r>b\><cr><c-o>
set notimeout
# This file is written in HOCON (Human-Optimized Config Object Notation) format.
# For more information about HOCON see
# https://github.com/lightbend/config/blob/master/HOCON.md
bindings {
b {
description: Buffer/Tabs Navigation...
bindings {
d {actionId: CloseContent, description: Close}
D {actionId: CloseAllEditors, description: Close All}
@Tarmean
Tarmean / writeClasspath.gradle
Created March 24, 2023 19:54
Gradle task to dump classpath. Useful to launch external tools such as jshell. Using a gradle task/plugin to launch said tools breaks some key inputs such as tab completion because gradle forces its own input handling on top.
task writeClasspath {
doLast {
Set pathSet = []
project.tasks.withType(JavaExec) {
pathSet.addAll(classpath.findAll { it.exists() })
}
project.subprojects.each {
it.tasks.withType(JavaExec) {
pathSet.addAll(classpath.findAll { it.exists() })
}
{-#Language LambdaCase #-}
{-#Language FlexibleContexts #-}
{-#Language TypeFamilies #-}
{-#Language ExistentialQuantification #-}
{-#Language RankNTypes #-}
{-#Language FlexibleInstances, MultiParamTypeClasses #-}
{-#Language UnboxedTuples, DataKinds, PolyKinds, UndecidableInstances #-}
{-#Language GeneralizedNewtypeDeriving, DeriveFunctor #-}
module Aoc19_2 where
import qualified Data.Vector.Unboxed.Mutable as U
backgroundcol;
bordercol;
foregroundcol;
highlightdicecol;
highlighttextcol;
currentheight;
name;
rawname;
category;
fulldescription;
Address Length Type String
.rdata:000000014148B508 00000021 C elements.templates.RemixTemplate
.rdata:0000000141679DB0 00000022 C elements.templates.StatusTemplate
.rdata:0000000141679E18 00000026 C elements.templates.StatusTemplate.new
.rdata:0000000141679E40 0000002B C elements.templates.StatusTemplate.toString
.rdata:0000000141679F50 00000022 C elements.templates.StatusTemplate
.rdata:000000014167A0F0 00000021 C elements.templates.SpellTemplate
.rdata:000000014167A158 00000025 C elements.templates.SpellTemplate.new
.rdata:000000014167A180 00000027 C elements.templates.SpellTemplate.clone
.rdata:000000014167A1A8 0000002A C elements.templates.SpellTemplate.toString
var quine_pieces = ~ var bs = '`'; var quot = '`'; var quine_pieces = `; var quine = (quine_pieces.split('`'))[0]; quine += bs + bs; quine += (quine_pieces.split('`'))[1]; quine += quot; quine += (quine_pieces.split('`'))[2]; quine += quot; for (i in 0...12) { quine += (quine_pieces.split('`'))[i] + '`'; } quine += (quine_pieces.split('`'))[12]; quine += quot; for (i in 3...12) { quine += (quine_pieces.split('`'))[i] + '`'; } quine += (quine_pieces.split('`'))[12]; for (equip_obj in self.equipment) { if (equip_obj.name == e.name) { self.equipment.remove(equip_obj); } } while (true) { var eq_name = ''; var is_unique = false; while(!is_unique) { eq_name = rand(getequipment()); is_unique = true; for (equip_obj in self.equipment) { if (equip_obj.name == eq_name) { is_unique = false; break; } } } giveequipment(eq_name| true| true); for (equip_obj in self.equipment) { if (equip_obj.name == eq_name) { if (equip_obj.script.indexOf('replacemewith') != -1 # equip_obj.script.indexOf('giveequipment') != -1 # equip_obj.c
function! CsvHack#SetupScrolllock()
if (exists("b:csvhack_scrolllock_win"))
return
endif
let b:csvhack_scrolllock_win = v:true
setlocal scrollbind
setlocal scrollopt=hor
setlocal nowrap
split
wincmd k
import Text.Printf
test :: IO ()
test = do
return ()
hyper possibleWins actualWins actualDraws = (winPerms * lossPerms) / totalPerms
where
winPerms = binomial possibleWins actualWins
WORD	PoS	PoSGold
Es	N	X
war	V	V
ein	X	X
klarer	X	X
,	X	X
kalter	X	X
Tag	N	N
Tag	N	X

im X X