Skip to content

Instantly share code, notes, and snippets.

require 'spec_helper'
describe Hydra::Works::FullTextExtractionService do
describe "extract pdf file" do
before do
@myfile = Hydra::Works::GenericFile::Base.create
Hydra::Works::AddFileToGenericFile.call(@myfile, File.open(File.join(fixture_path, 'test4.pdf')), :original_file)
Hydra::Works::FullTextExtractionService.run(@myfile)
package com.tamr.features.register;
import cucumber.api.PendingException;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
/**
* Created by steve on 8/25/15.
var selectCtrl = function($element) {
var ctrl = this;
$element.on('click', function(e){
//use a method that I have to see in the docs for select the text in an input that I don't remember now, should be accesible
//$element
})
};
@jarmokivekas
jarmokivekas / 1087-grid.gpx
Last active August 25, 2015 19:35
quick python script for generating a coordinate grid for a given area
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="" version="1.1">
<trk>
<trkseg>
<trkpt lon="15.300000" lat="5.500000"></trkpt>
<trkpt lon="11.000000" lat="5.500000"></trkpt>
</trkseg>
<trkseg>
<trkpt lon="15.300000" lat="5.505000"></trkpt>
@bahamas10
bahamas10 / 0-output.txt
Last active August 25, 2015 19:36
dotted lookup performance
$ ./dotted-lookup.js a
new function begin
{ b: { c: 'hello' } }
new function end: 1ms
manual parsing begin
{ b: { c: 'hello' } }
manual parsing end: 0ms
$ ./dotted-lookup.js a.b
new function begin
@garethrees
garethrees / sed-delete-after-word.sh
Created August 25, 2015 19:38
sed: Delete After Word
#!/bin/sh
sed '
/ONE/ {
# append a line
N
# if TWO found, delete the first line
/\n.*TWO/ D
}' file
@elevine
elevine / The Technical Interview Cheat Sheet.md
Last active August 25, 2015 19:38 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@voidzero
voidzero / terminus-unicode.txt
Last active August 25, 2015 19:38
Unicode concealment symbols
This is a list of manually selected unicode symbols that might be usable as concealment symbols.
For example, they can be used with vim-haskellConcealPlus.
I have tested these with the font Terminus.
-- Int:
U+01B5 'Ƶ' latin capital letter z with stroke latin capital letter z bar
U+0224 'Ȥ' latin capital letter z with hook
U+0240 'ɀ' latin small letter z with swash tail
U+0290 'ʐ' latin small letter z with retroflex hook latin small letter z retroflex hook
$ PATH=$(pwd)/build:$PATH valgrind --read-var-info=yes --vgdb=yes --leak-check=full tests
==20285== Memcheck, a memory error detector
==20285== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==20285== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==20285== Command: tests
==20285==
Running "test_pool_alloc"...
Running "test_pool_realloc"...
Running "test_arraylist_append"...
Running "test_arraylist_append_many"...
@glowe
glowe / The Technical Interview Cheat Sheet.md
Last active August 25, 2015 19:39 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.