Skip to content

Instantly share code, notes, and snippets.

View Aldaviva's full-sized avatar
🆒
This user is COOL

Ben Hutchison Aldaviva

🆒
This user is COOL
View GitHub Profile
@Aldaviva
Aldaviva / QuotesResource.java
Created September 8, 2013 17:11
JAX-RS API documentation generation from Javadoc using Aldaviva/harbor. Build with "mvn site"
package vc.bjn.quotes.api.resource;
import vc.bjn.quotes.data.entity.Quote;
import vc.bjn.quotes.data.repo.QuotesRepository;
import vc.bjn.quotes.data.repo.Repository;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
@Aldaviva
Aldaviva / Description.md
Last active December 16, 2015 07:59
Film Quotation Completion

Given a film, an incomplete quotation from the film, and multiple-choice completions for the quotation, which completion is from the film?

Film: RoboCop
Question: Come quietly or there will be ______.
Possible answers: fisticuffs, a strongly worded letter, trouble, an altercation
Best answer: trouble

Letterboxd poses these questions as captchas for their sign-up flow.

This solution makes unauthenticated requests to Google's Ajax Search service, which is deprecated and throttled, so a real attack would require a different method of scoring results (like a paid API account, a different search engine, or a botnet).

@Aldaviva
Aldaviva / LICENSE.txt
Created November 9, 2012 02:43 — forked from 140bytes/LICENSE.txt
ieDownloadBarWidth -- 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Ben Hutchison <aldaviva.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE