Skip to content

Instantly share code, notes, and snippets.

View krhoyt's full-sized avatar

Kevin Hoyt krhoyt

View GitHub Profile
@krhoyt
krhoyt / arduino-stomp.ino
Last active March 22, 2024 01:56
STOMP Implementation for Arduino Yun
// Libraries
#include <Bridge.h>
#include <YunClient.h>
// Defines
// Used for connectivity parameters
#define ENDPOINT "kaazing.kevinhoyt.com"
#define LOGIN " "
#define PASSCODE " "
#define PORT 61613
@krhoyt
krhoyt / web-component-template.js
Created February 8, 2024 16:57
Template attempting to show the many facets of a baseline web standards-based component. Not intended to function as a component.
export default class HoytTemplate extends HTMLElement {
constructor() {
super();
const template = document.createElement( 'template' );
template.innerHTML = /* template */ `
<style>
:host {
box-sizing: border-box;
display: inline-block;
@krhoyt
krhoyt / blockhash.js
Created May 31, 2017 19:44
Image Hashing in the Browser
// Original source:
// https://github.com/commonsmachinery/blockhash-js
// Update for local file reading
// Update (loosely) for ES6
// Removes dependencies from origina project
class Blockhash {
constructor() {
this.canvas = document.createElement( 'canvas' );
this.canvas.style.visibility = 'hidden';
this.canvas.style.position = 'absolute';
@krhoyt
krhoyt / index.html
Last active October 15, 2023 11:54
Canvas ImageData to Web Worker
<html>
<head>
<title>Image Processing Worker</title>
<style>
body {
align-items: center;
display: flex;
flex-direction: column;
@krhoyt
krhoyt / transcribe.env
Created November 15, 2022 23:38
AWS Transcribe with Python
AWS_ACCESS_KEY=_YOUR_ACCESS_KEY_
AWS_SECRET_KEY=_YOUR_SECRET_KEY_
AWS_REGION=_S3_REGION_
LOCAL_AUDIO=hello-world.m4a
S3_BUCKET=_S3_BUCKET_
S3_OBJECT=_PATH_TO_AUDIO_ON_S3_
SLEEP_TIME=5
TRANSCRIPTION_JOB=hello-world
@krhoyt
krhoyt / dog.cc
Created January 28, 2022 05:56
WebAssembly (C++) in a Web Worker
#include <iostream>
#include <string>
#include "dog.h"
#include "emscripten/bind.h"
using namespace emscripten;
using namespace std;
Dog::Dog( string n ): name( n ) {}
@krhoyt
krhoyt / firebase.php
Created December 6, 2014 19:29
Interact with Firebase from PHP.
<?php
// Constants
$FIREBASE = "_YOUR_FIREBASE_URL_";
$NODE_DELETE = "temperature.json";
$NODE_GET = "temperature.json";
$NODE_PATCH = ".json";
$NODE_PUT = "temperature.json";
// Data for PUT
@krhoyt
krhoyt / countdown.js
Last active November 14, 2020 20:32
Countdown clock component based on work of Chris Bongers. https://dev.to/dailydevtips1/vanilla-javascript-countdown-clock-49h7
export default class CountdownClock extends HTMLElement {
constructor() {
super();
const template = document.createElement( 'template' );
template.innerHTML = /* template */ `
<style>
:host {
align-items: center;
display: flex;

Advocacy Mission: What Is It? What Is It Not?

Executive Summary

You sell products to developers. By now, you should be acutely aware of the fact that those very developers are increasingly, if not directly, influencing decisions related to purchasing of software technology, such as cloud platforms, frameworks, and tools. Engaging with developers, and the developer community, is not a nice to have, it is a necessity for survival. Per RedMonk cofounder Stephen O'Grady, author of “The New Kingmakers”, developers are the most important, most valuable, constituency in business today, regardless of industry. Technologists are no longer content to be mere stage players. They are taking an active hand at direction.

With developers’ increased power over what technologies a company will be deploying, your business needs to position itself as a respected and trusted adviser to these developers.

Microsoft, Oracle, and SAP among others have been wrestling with these types of issues for years. Microsoft has

@krhoyt
krhoyt / configuration.js
Last active November 29, 2019 10:51
Get complete list of repos and their respective details for a given GitHub user. Sorted by last updated, ascending. Output to CSV file.
// Holds pertinent authentiation
module.exports = {
github: {
token: '__your__token__here__'
}
}