Skip to content

Instantly share code, notes, and snippets.

José Cabo Bloodsucker

Block or report user

Report or block Bloodsucker

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
@Bloodsucker
Bloodsucker / TerminatingBlocksFinder
Last active Aug 29, 2015
Bloque de código de un Filtro de Boilerpipe que busca el final de la sección releavante de una web y lo hace usando palabras del inglés
View TerminatingBlocksFinder
public boolean process(TextDocument doc)
throws BoilerpipeProcessingException {
boolean changes = false;
// long t = System.currentTimeMillis();
for (TextBlock tb : doc.getTextBlocks()) {
final int numWords = tb.getNumWords();
if (numWords < 15) {
final String text = tb.getText().trim();
@Bloodsucker
Bloodsucker / gist:3964007
Created Oct 27, 2012
Pestañas de Android modificado
View gist:3964007
//Basado en: http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/
/**
* Setup TabHost
*/
private void initialiseTabHost(Bundle savedInstanceState) {
mTabHost = (TabHost)findViewById(android.R.id.tabhost);
mTabHost.setup();
//****** tab1 start
You can’t perform that action at this time.