Skip to content

Instantly share code, notes, and snippets.

View demoth's full-sized avatar
🎯
Refactoring full throttle!

demoth demoth

🎯
Refactoring full throttle!
View GitHub Profile
@Haloplasm
Haloplasm / PoBs.txt
Last active July 5, 2024 17:01
Haloplasm and Seik's PoBs
----------------------------------------------
3.24 PoBs [Always re-pull PoBs right before league start to have the most updated version]
----------------------------------------------
Aurabot:
https://pobb.in/s1XzEFf8M0wi
Inquitor Spark carry:
https://pobb.in/moAh2_q-syE-
Inquisitor Storm Brand carry:
@yuu-ito
yuu-ito / git-svn.md
Last active December 15, 2015 16:39
@kiy0taka
kiy0taka / tree.md
Created April 24, 2012 09:56 — forked from timyates/tree.md
A one-line tree in Groovy

One line Tree in Groovy

The other day, I saw Harold Cooper's One-line tree in Python via autovivication, and wondered if the same thing was possible in Groovy.

The answer is yes! But you need to define the variable tree before you can assign it to the self-referential withDefault closure, hence with Groovy, it's a two-line solution ;-)

Anyway, given:

def tree = { [:].withDefault{ owner.call() } }
<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03">
<CstmrCdtTrfInitn>
<GrpHdr>
<MsgId>ABC/090928/CCT001</MsgId>
<CreDtTm>2009-09-28T14:07:00</CreDtTm>
<NbOfTxs>3</NbOfTxs>
<CtrlSum>11500000</CtrlSum>
<InitgPty>
<Nm>ABC Corporation</Nm>