Skip to content

Instantly share code, notes, and snippets.

Florian Zemke Zemke

Block or report user

Report or block Zemke

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
@Zemke
Zemke / HelloWorldResourceTest.java
Last active Apr 27, 2018
CXF REST Service Unit Test
View HelloWorldResourceTest.java
package de.tracx.pkp.rest.service;
import java.io.IOException;
import org.apache.cxf.endpoint.Server;
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
import org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
@Zemke
Zemke / beautiful-soup.py
Last active Mar 30, 2018
Takes an HTML file or a path to recursively associate input fields and labels using `id` and `for` attributes.
View beautiful-soup.py
import os
import re
import sys
from typing import IO
from bs4 import BeautifulSoup
from bs4.element import Tag
if len(sys.argv) == 2:
argv_path = sys.argv[1]
@Zemke
Zemke / src-backup.sh
Created Nov 17, 2017
Copy uncommitted changes to /d/src-backups. Requires my `git s` alias.
View src-backup.sh
DIR=$(date +%s); mkdir -p /d/src-backups/$DIR && cp $(git s | sed 's/A//' | sed 's/M//' | sed 's/ *//' | grep pkp) /d/src-backups/$DIR
You can’t perform that action at this time.