Skip to content

Instantly share code, notes, and snippets.

#I'm suprised this isn't mentioned anywhere
Here's what I had to do to run the Netty Examples
1. Import the entire Netty project
2. Disable the option Use '--release' option for cross-compilation' (Java 9 and later) in IDEA's Preferences, section Compiler... https://stackoverflow.com/questions/46477989/intellij-doesnt-see-some-non-public-jdk-9-classes-during-compilation
3. First compile common subproject https://groups.google.com/g/netty/c/lELvv7aylQs
@cdennison
cdennison / main.java
Created December 10, 2020 02:27
sample vertx
package com.example.starter;
import io.vertx.core.Launcher;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
public class CustomLauncher extends Launcher {
@Override
public void beforeStartingVertx(VertxOptions options) {
Here's the book after doing this:
curl -L https://git.io/JJ5yS | bash -- /dev/stdin "--toc --toc-depth=2"
@cdennison
cdennison / testandcover.sh
Last active May 14, 2021 07:16
Golang test all packages and combine cover profiles
#!/bin/bash
# https://gist.github.com/cdennison/cba009cf297aa2a92759278b5c578ae4
# This script tests multiple packages and creates a consolidated cover profile that's almost identical to coveralls/goveralls
# https://github.com/mattn/goveralls
#
# Inspired by
# https://github.com/getlantern/flashlight-build/blob/devel/testandcover.bash
function die() {

class Document: def init(self, name): self.name = name

def show(self):
    raise NotImplementedError("Subclass must implement abstract method")

class Pdf(Document): def show(self): return 'Show pdf contents!'

class Document:
def __init__(self, name):
self.name = name
def show(self):
raise NotImplementedError("Subclass must implement abstract method")
class Pdf(Document):
def show(self):
return 'Show pdf contents!'
@cdennison
cdennison / test.md
Last active February 23, 2016 13:36
test