Skip to content

Instantly share code, notes, and snippets.

View CyberFerret's full-sized avatar

Devan CyberFerret

View GitHub Profile
@CyberFerret
CyberFerret / hn-feeder.js
Created March 8, 2017 06:15
Example of Node.js app to replicate Hacker News Firebase feed into RethinkDB
var firebase = require('firebase');
var r = require('rethinkdb');
firebase.initializeApp({
"appName" : "HN News Feed",
"databaseURL" : "https://hacker-news.firebaseio.com/"
});
var rdbconn = null;
@CyberFerret
CyberFerret / raceapp.erb
Created March 13, 2017 03:22
Face recognition demo - ERB index
<html>
<head>
<title>Face Recognition Test</title>
<link href="css/camera.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Face Recognition Test</h1>
<div id='camera'>
<div id='placeholder'>
<p>Your browser does not support a camera!</p>
@CyberFerret
CyberFerret / faceapp.js
Created March 13, 2017 04:23
Face recognition demo - App js file
$(document).ready(function() {
if (window.JpegCamera) {
var camera; // placeholder
// Add the photo taken to the current Rekognition collection for later comparison
var add_to_collection = function() {
var photo_id = $("#photo_id").val();
if (!photo_id.length) {
@CyberFerret
CyberFerret / faceapp.rb
Created March 13, 2017 04:26
Face recognition demo - Main .rb file
# faceapp.rb
require 'rubygems'
require 'bundler'
Bundler.require
require 'sinatra'
# Load up all our secrets
Dotenv.load
# Set up our AWS authentication for all calls in this app

Keybase proof

I hereby claim:

  • I am cyberferret on github.
  • I am cyberferret (https://keybase.io/cyberferret) on keybase.
  • I have a public key ASCA01QxzfQ5LarGkrXraj8akjkssJQr_1PUfp8t24oIBgo

To claim this, I am signing this object:

@CyberFerret
CyberFerret / index.html
Created August 1, 2018 01:40
LocalCurrencyPricing sample of index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">