Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Luis Gonzalez funkytaco

🎯
Focusing
Block or report user

Report or block funkytaco

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
@funkytaco
funkytaco / amazon-rekognition.md
Created Jul 19, 2019 — forked from alexcasalboni/amazon-rekognition.md
Amazon Rekognition - Python Code Samples
View amazon-rekognition.md

Amazon Rekognition - Python Code Samples

  1. Labels Detection
  2. Faces Detection
  3. Faces Comparison
  4. Faces Indexing
  5. Faces Search
@funkytaco
funkytaco / docker-compose.yml
Created Apr 11, 2018 — forked from slipo/docker-compose.yml
Super simple docker compose file giving you a private NEO network and neon-wallet-db ... see comments.
View docker-compose.yml
version: '3'
services:
neon-wallet-db:
container_name: "neon-wallet-db"
image: slipoh/neon-wallet-db:latest
environment:
- MONGOURL=mongodb:27017
- MONGOPASS=neo
- MONGOUSER=gas
- MONGOAPP=test
@funkytaco
funkytaco / gist:3102cd8d97c8b9d5a34cc79af19e5586
Last active Oct 14, 2017
unwrap couchdb _all_docs for vuetable-2
View gist:3102cd8d97c8b9d5a34cc79af19e5586
{
total_rows: 5,
offset: 0,
rows: [
{
id: 'b2303bd3712c4894922f3bd04900bb03',
key: 'b2303bd3712c4894922f3bd04900bb03',
value: {
rev: '1-3b717529ff0f515c2c5d8aa52a2c03ab',
},
View headerscalls.js
import axios from 'axios'
function api(user, pass) {
return axios.create({
'X-User':user,
'X-Password':pass
})
}
View headerscalls.js
import axios from 'axios'
function api(user, pass) {
return axios.create({
'X-User':user,
'X-Password':pass
})
}
View gist:017807c7bd5559637958f18fe662b7df
FROM debian:jessie
MAINTAINER Michael Mano <michael.mano26@gmail.com>
# Don't ask questions.
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
curl \
&& curl https://www.dotdeb.org/dotdeb.gpg | apt-key add - && \
curl -sL https://deb.nodesource.com/setup_7.x | bash - \
@funkytaco
funkytaco / test.sh
Created Sep 23, 2017 — forked from mikeclarke/test.sh
Simple bash script that uses Docker to build a test container, run tests inside the container, tag successful builds, and clean up after itself.
View test.sh
#!/bin/bash
sudo docker build -t $JOB_NAME/$BUILD_NUMBER .
DB_NAME="/$JOB_NAME-$BUILD_NUMBER-db"
DB_CONTAINER=$(sudo docker run -d -name $DB_NAME <private repository URL>/database-schema)
sudo docker run -link $DB_NAME:db -t $JOB_NAME/$BUILD_NUMBER nosetests
sudo docker tag $JOB_NAME/$BUILD_NUMBER <private repository URL>/${JOB_NAME}-master
sudo docker push <private repository URL>/${JOB_NAME}-master >/dev/null
sudo docker kill ...
sudo docker rm ...
sudo docker rmi ...
@funkytaco
funkytaco / uri.js
Created Jul 20, 2017 — forked from jlong/uri.js
URI Parsing with Javascript
View uri.js
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
View gist:9b3d0476e646f6886bb16f4c9f973041
#!/usr/bin/env node
/*
Use the Yahoo Finance CSV API to do some basic market research calculations.
- Background: http://greenido.wordpress.com/2009/12/22/yahoo-finance-hidden-api/
- Example URL: http://finance.yahoo.com/d/quotes.csv?s=GOOG+FB+AAPL&f=snj1pr
s: Symbol
n: Name
j1: Market Capitalization (in billions)
p: Price-per-share (at previous close)
View gist:b3371935b99c8c4055f935778e8b04ac
#!/usr/bin/env node
/*
Use the Yahoo Finance CSV API to do some basic market research calculations.
- Background: http://greenido.wordpress.com/2009/12/22/yahoo-finance-hidden-api/
- Example URL: http://finance.yahoo.com/d/quotes.csv?s=GOOG+FB+AAPL&f=snj1pr
s: Symbol
n: Name
j1: Market Capitalization (in billions)
p: Price-per-share (at previous close)
You can’t perform that action at this time.