Skip to content

Instantly share code, notes, and snippets.

View bradodarb's full-sized avatar
🚐
Digital Nomad

Brad Murry bradodarb

🚐
Digital Nomad
View GitHub Profile
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"type" : "array",
"items" : {
"definitions" : {
"org.apache.camel.model.language.ConstantExpression" : {
"anyOf" : [ {
"type" : "string"
}, {
"type" : "object",
@ckimrie
ckimrie / signApiGatewayAngular2HttpRequest.ts
Last active January 6, 2019 11:33
How to use AWS Cognito to sign an http request to a custom AWS Api Gateway using IAMs Authorization.
//---- Angular 2 Http Service Example ----
import {Injectable} from "@angular/core";
import {Http, Headers} from "@angular/http";
const AWS = require("aws-sdk");
@Injectable()
export class ApiGatewayService {
constructor(private http:Http){
@PurpleBooth
PurpleBooth / README-Template.md
Last active October 31, 2025 20:49
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@alexis89x
alexis89x / broadcast-channel-es6.js
Last active July 23, 2024 06:31
Broadcast Channel API polyfill
/**
@class BroadcastChannel
A simple BroadcastChannel polyfill that works with all major browsers.
Please refer to the official MDN documentation of the Broadcast Channel API.
@see <a href="https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API">Broadcast Channel API on MDN</a>
@author Alessandro Piana
@version 0.0.6
*/
/*
#include <chrono>
#include <memory>
#include <string>
#include <atomic>
#include <thread>
#include <iostream>
#include <v8.h>
int main()
{