Skip to content

Instantly share code, notes, and snippets.

View garza's full-sized avatar
🤠

John David garza

🤠
View GitHub Profile
@garza
garza / setup.md
Created January 12, 2016 23:13 — forked from xrstf/setup.md
Nutch 2.3 + ElasticSearch 1.4 + HBase 0.94 Setup

Info

This guide sets up a non-clustered Nutch crawler, which stores its data via HBase. We will not learn how to setup Hadoop et al., but just the bare minimum to crawl and index websites on a single machine.

Terms

  • Nutch - the crawler (fetches and parses websites)
  • HBase - filesystem storage for Nutch (Hadoop component, basically)
@garza
garza / ibeacon.js
Last active August 29, 2015 14:07 — forked from johnnyman727/ibeacon.js
var tessel = require('tessel');
var blePort = tessel.port['A'];
var bleLib = require('ble-ble113a');
var data = new Buffer('0201061aff4c000215e2c56db5dffb48d2b060d0f5a71096e000000000c6','hex');
var ble = bleLib.use(blePort, function(err) {
if (err) return console.log("Error connecting to slave", err);
ble.setAdvertisingData(data, function (e2){
if (e2) console.log("Error set adv", e2);
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@garza
garza / jquery
Created August 8, 2012 15:10 — forked from rodi01/jquery
Animated Page Scroll with jQuery
$('.goToTop').click(function() {
$("html:not(:animated),body:not(:animated)").animate({ scrollTop: 0}, 500 );
return false;
});