Skip to content

Instantly share code, notes, and snippets.

DocGist Example

DocGist is a tool that renders AsciiDoc documents fetched from GitHub gists or other sources. The rendering is performed in the browser using the asciidoctor.js library. The original use case for this was http://gist.neo4j.org/ which has additional features to create examples for the Neo4j graph database.

How To Use

@ssmiech
ssmiech / invisibleText.java
Last active August 29, 2015 13:57
How to read text from hidden divs
package selenium;
import java.sql.Driver;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Wait;
@dsyer
dsyer / .gitignore
Created October 26, 2011 16:28
Dave Syer: Demos for s2gx2011
target/
*/src/main/*/META-INF/
.access_token
.result
.classpath
.project
.DS_Store
.settings/
*.iml
*.iws
@zephiransas
zephiransas / .gitignore
Created December 28, 2011 01:26
Websocket Test
.classpath
.project
.settings/*
target
@esfand
esfand / tutorial.rst
Created February 9, 2012 18:49 — forked from mojavelinux/tutorial.asciidoc
JBoss Java EE workshop

JBoss Java EE workshop

This tutorial steps through creating, testing and deploying an application using the JBoss Java EE tools and runtimes. You can show up with nothing but Java and a passion to learn. By the end, you'll have a full application running in the cloud.

Here's the development stack we'll be using:

  • OpenShift Express
  • git
  • JBoss Forge
@esfand
esfand / gist:2260989
Created March 31, 2012 08:52 — forked from joliver/gist:1311195
NServiceBusCommitDispatcher
public sealed class NServiceBusCommitDispatcher : IPublishMessages
{
private const string AggregateIdKey = "AggregateId";
private const string CommitVersionKey = "CommitVersion";
private const string EventVersionKey = "EventVersion";
private const string BusPrefixKey = "Bus.";
private readonly IBus bus;
public NServiceBusCommitDispatcher(IBus bus)
{
@dlhartveld
dlhartveld / ObservableTest.java
Created February 28, 2013 15:16
A few simple test cases for the Observable from https://gist.github.com/dlhartveld/5057313. Uses JUnit and Mockito.
package com.hartveld.examples;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import java.util.function.Consumer;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
@esfand
esfand / .excludes
Created March 9, 2013 08:07 — forked from dwayne/.excludes
# Exclude files that don't need to be on the server
# Used by rsync when deploying code to the server
.excludes
.git
.gitignore
log/
tmp/
@esfand
esfand / .gitignore
Created December 31, 2013 14:00 — forked from dsyer/.gitignore
target/
*/src/main/*/META-INF/
.access_token
.result
.classpath
.project
.DS_Store
.settings/
*.iml
*.iws
@khris
khris / OAuth1.java
Created January 18, 2014 08:54
Alternative OAuth 1 implements for Twitter's hbc. It's compatible with joauth 6.0.+ so independent from Scala.
/**
* Original: https://github.com/twitter/hbc/blob/master/hbc-core/src/main/java/com/twitter/hbc/httpclient/auth/OAuth1.java
*
* It is compatible with scala-less joauth 6.0.+, but hbc is not
* compatible with Android. #EpicFail
*
* Licensed under the Apache License, Version 2.0 (the "License");
**/
/**