Skip to content

Instantly share code, notes, and snippets.

View vinceyoumans's full-sized avatar

vincent youmans vinceyoumans

View GitHub Profile
@vinceyoumans
vinceyoumans / error.txt
Created February 24, 2020 12:32
Error message from Arduino compile for SeeedStudio package
this is an error message from using
any sugestion on how to resolve?
Arduino: 1.8.7 (Mac OS X), Board: "Seeeduino Stalker V3"
/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/vincentyoumans/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/vincentyoumans/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/vincentyoumans/Documents/Arduino/libraries -fqbn=Seeeduino:Seeeduino_Stalker:stalker -ide-version=10807 -build-path /var/folders/z2/4tjgj0hx69n2wvxs_43cc0km0000gn/T/arduino_build_636544 -warnings=all -build-cache /var/folders/z2/4tjgj0hx69n2wvxs_43cc0km0000gn/T/arduino_cache_414025 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/vincentyoumans/Library/Arduino15/packages/Seeeduino/tools/a
@vinceyoumans
vinceyoumans / Dockerfile
Created December 11, 2018 21:27
for the golang compile to a docker container
############################
# STEP 1 build executable binary
############################
FROM golang:alpine AS builder
# Install git.
# Git is required for fetching the dependencies.
RUN apk update && apk add --no-cache git
COPY . $GOPATH/src/dock/v01
WORKDIR $GOPATH/src/dock/v01
# Fetch dependencies.
version: '3.6'
services:
postgre:
image: postgres:11.1-alpine
ports:
- "5432"
environment:
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'password'
POSTGRESS_DB: 'db_amex01'
docker run --name vyamex01 c7e6ae8e14bb
So everything is compiling.
BUT... when I do a
docker run --name amex01c 8c0ac9dab807
Can not get a response from a web page.
I changed the go code to just respond to /
Also, the go code runs out side of a container.
go run main.go works fine.
So I suspect I need to open up a port to make this work?
{"a":[{"b":{"title":"NACS-100","INDEX":"A01B01C01D01","DEAD_END":"","Q01 - Ischemic Symptoms":"Asymptomatic (No ischemic symptoms)","Q02 - Anti-ischemic Medical Therapy:":"No Therapy","Q03 - Non-invasive Test Results:":"No non-invasive testing performed","Q04 - PRIOR CABG":"No Previous CABG","Q01":"A01","Q02":"B01","Q03":"C01","Q04":"D01","E01 PRIMARY":"","E01 CABG":"","E01 PCI":"","E02 PRIMARY":"20-Asymptomatic","E02 CABG":"","E02 PCI":"","E03 PRIMARY":"","E03 CABG":"","E03 PCI":"","E04 PRIMARY":"","E04 CABG":"","E04 PCI":"","E05 PRIMARY":"","E05 CABG ":"","E05 PCI":"","E05a PRIMARY":"","E05a CABG":"","E05a PCI":"","E05b PRIMARY":"22-Asymptomatic","E05b CABG":"","E05b PCI":"","E05c PRIMARY":"23-Asymptomatic","E05c CABG":"","E05c PCI":"","E06 PRIMARY":"","E06 CABG":"","E06 PCI":"","E06a PRIMARY":"48-Asymptomatic","E06a CABG":"","E06a PCI":"","E06b PRIMARY":"","E06b CABG":"","E06b PCI":"","E06c PRIMARY":"","E06c CABG":"","E06c PCI":"","E07 PRIMARY":"49-Asymptomatic","E07 CABG":"","E07 PCI":"","E07a PRIMARY":""
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Users/vyoumans/anaconda2/lib/python2.7/copy.py", line 52, in <module>
import weakref
File "/Users/vyoumans/anaconda2/lib/python2.7/weakref.py", line 14, in <module>
from _weakref import (
ImportError: cannot import name _remove_dead_weakref
Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:8102/ws
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
@vinceyoumans
vinceyoumans / my-login.html
Created July 14, 2017 18:03
Polymer authentication demo... Not working for me.. .but I did some experimentation.
<link rel="import" href="my-app.html">
<link rel="import" href="bower_componenets/polymerfire/firebase-auth.html">
<link rel="import" href="bower_componenets/paper-button/Paper-button.html">
<dom-module id="my-login">
<template>
<firebase-auth
id="auth"
@vinceyoumans
vinceyoumans / gist:d21e3db708fe93dd4a5df2e3594d2f21
Created March 11, 2017 20:46
Google map does not refresh after scroll event in VAADIN GRID DETAILS
<!--
On initial Display, the SHow Details click event shows a goog map. Background and markers.
But after scrolling out of Grid details, then back in... or opening up a new Grid Detail...
The background blanks out but marker remains.
THus I suspect there needs to be a redraw/ invalidate event for when the map is viewed.
-->
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/vaadin-grid/vaadin-grid.html">
<link rel="import" href="../bower_components/google-map/google-map.html">
<link rel="import" href="shared-styles.html">
@vinceyoumans
vinceyoumans / gist:0403190d47b612a2df2c51a7d1128297
Last active March 2, 2017 15:48
polymer starter app fragment with vaadin grid 2.0 dev ... trying to bind to Firebase query data
<!--
This is a fragment from a Polymer Starter app, I am trying to integrate Vaadin-grid with row-details from a Firebase Query.
The FB query is working, and displays the correct number of rows
But I do not understand how to bind the Firebase datasource to the Vaadin-grid.
Perhaps someone could give me a clue?
-->
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="shared-styles.html">