Skip to content

Instantly share code, notes, and snippets.

//uhh here's an example since it's hard to explain
public static <T> void invokeOnChildElements(Element elem, T subject, BiConsumer<Element, T> consumer) {
NodeList nodes = elem.getChildNodes();
for ( int i = 0; i < nodes.getLength(); i++) {
if (nodes.item(i) instanceof Element) {
Element subjectElem = ((Element) nodes.item(i));
consumer.accept(subjectElem, subject);
}
}
I'm a risk analyst for a major insurance firm, so when my wife and I were planning a birthday party for our seven-year-old, Crispin, my mind naturally turned to liabilities. We'd settled on the theme of a "backyard carnival", complete with a swing set, a trampoline, merry-go-round, and a giant Slip `n Slide. So I carefully inspected the equipment for safety. It all seemed sound.
We have a home on a bluff overlooking the ocean. As it happened, on the day of the party our neighbors were trimming their fichus trees. We heard the sound of their wood chipper buzzing occasionally from the other side of our tall hedge. It was a little irritating, but not disruptive.
The party started off wonderfully. A clown we'd hired made balloon animals, Crispin eagerly opened his presents, and all the children enjoyed cake and fruit punch. The weather was mild, the skies clear. It seemed a perfect day.
Then we brought out the Slip `n Slide.
The problem with water slides is what we in the trade call "distributed water deficie
.
├── README.md
├── chapter 1 - getting started
│   ├── E1-5_1
│   │   ├── E1-5_1.cc.out
│   │   ├── E1-5_1.cpp
│   │   ├── Sales_item.h
│   │   ├── Sales_item.h.gch
│   │   ├── a.out
│   │   ├── infile
-- Logs begin at Sun 2018-06-17 15:22:25 EDT, end at Wed 2018-06-20 21:33:44 EDT. --
Jun 19 22:01:41 arch-host kernel: Error parsing PCC subspaces from PCCT
Jun 19 22:01:41 arch-host kernel: ACPI Error: Needed type [Reference], found [Integer] (ptrval) (20180313/exresop-69)
Jun 19 22:01:41 arch-host kernel: ACPI Error: AE_AML_OPERAND_TYPE, While resolving operands for [Store] (20180313/dswexec-427)
Jun 19 22:01:41 arch-host kernel: ACPI Error: Method parse/execution failed \_PR.CPU0._PDC, AE_AML_OPERAND_TYPE (20180313/psparse-516)
Jun 19 22:06:59 arch-host kdeinit5[11712]: js: Refused to load the image 'https://www.google.com/ads/ga-audiences?v=1&aip=1&t=sr&_r=4&tid=UA-5784146-31&cid=481968251.1529460420&jid=1518881503&_v=j68&z=1598989321' because it violates the following Content Security Policy directive: "img-src 'self' https://d2d1dxiu3v1f2i.cloudfront.net https://i.imgur.com https://d2mv8tnci56s9d.cloudfront.net https://profile-images.scdn.co https://aci.scdn.co https://graph.facebook.com https:/
[Background]
Color=0,0,0
[BackgroundFaint]
Color=15,19,21
[BackgroundIntense]
Color=10,13,15
[Color0]
struct list_node
{
int item;
list_node *next;
};
#include <iostream>
#include "list_node.h"
list_node *generate_list(unsigned amount)
{
list_node list;
list_node *list_ptr = &list;
list.item = amount;
if (amount > 0)
{
#include <iostream>
#include "list_node.h"
list_node *generate_list(unsigned amount)
{
list_node list;
list_node *list_ptr = &list;
list.item = amount;
if (amount > 0)
{
[ 0.000000] microcode: microcode updated early to revision 0x23, date = 2018-01-18
[ 0.000000] Linux version 4.16.13-2-ARCH (builduser@bpiotrowski) (gcc version 8.1.1 20180531 (GCC)) #1 SMP PREEMPT Fri Jun 1 18:46:11 UTC 2018
[ 0.000000] Command line: BOOT_IMAGE=/ROOT/boot/vmlinuz-linux root=UUID=0382669f-43c1-4f4a-865c-3107ec834efa rw rootflags=subvol=ROOT quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'