Skip to content

Instantly share code, notes, and snippets.

Bill de hÓra dehora

Block or report user

Report or block dehora

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dehora on github.
  • I am dehora ( on keybase.
  • I have a public key ASCMcCHXvRlJKpB5ioCcRqJBvT0NT2XNZh4VR8JnJCnf0Qo

To claim this, I am signing this object:

dehora /
Created Apr 9, 2018
fix pycharm console start crash with anaconda
subl /Users/bdehora/Library/Application\ Support/JetBrains/Toolbox/apps/PyCharm-P/ch-1/181.4445.28/
class PyDevIPCompleter(IPCompleter):
def __init__(self, *args, **kwargs):
""" Create a Completer that reuses the advanced completion support of PyDev
in addition to the completion support provided by IPython """
IPCompleter.__init__(self, *args, **kwargs)
# Use PyDev for python matches, see getCompletions below
View DnsCache.scala
package services
import org.slf4j.LoggerFactory
object DnsCache {
private val logger = LoggerFactory.getLogger("DnsCache")
package spike;
import java.util.concurrent.TimeUnit;
import nakadi.Cursor;
import nakadi.LoggingStreamObserverProvider;
import nakadi.LoggingStreamOffsetObserver;
import nakadi.NakadiClient;
import nakadi.Response;
import nakadi.StreamConfiguration;
import nakadi.StreamProcessor;
dehora /
Last active Nov 8, 2016
Handle leap seconds with DateTimeFormatter
package foo;
import java.time.Instant;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
import java.time.temporal.TemporalQuery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package org.zalando.fahrschein.domain;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.Collections;
import org.junit.Test;
import static org.junit.Assert.assertFalse;


  • What are you trying to do? No jargon. What is the problem? Why is it hard?

  • How is it done today, and what are the limits of current practice?

  • What's new in your approach and why do you think it will be successful?

  • Who cares?

View kafka-msg.txt
| Size (int32) |
| ApiKey (int16) | ApiVersion (int16) |
| CorrelationId (int32) |
| ClientId (str, 0..)
dehora /
Created Jun 17, 2016
BaseHTTPServer with cors
#! /usr/bin/env python
from SimpleHTTPServer import SimpleHTTPRequestHandler
import BaseHTTPServer
class CORSRequestHandler (SimpleHTTPRequestHandler):
def end_headers (self):
self.send_header('Access-Control-Allow-Origin', '*')
dehora /
Last active Apr 20, 2020
SWIM protocol resources
You can’t perform that action at this time.