Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy Johnson jeremyj563

  • City of Davenport, Iowa
  • Davenport, Iowa
  • Twitter @jmjohnson85
View GitHub Profile
@apal21
apal21 / ES5 class.js
Last active Feb 10, 2022
Example for blog to show the difference between ES5 and ES6 javascript classes using inheritance and prototypes use cases.
View ES5 class.js
'use strict';
/**
* Person class.
*
* @constructor
* @param {String} name - name of a person.
* @param {Number} age - age of a person.
* @param {String} gender - gender of a person.
*/
@alexellis
alexellis / README.md
Last active Apr 8, 2022
OpenFaaS functions on knative
View README.md

Portability with knative

Three functions from the OpenFaaS store have been packaged as "knative serving" definitions. No change to the container or code is needed.

  • Inception - identify the content of images with machine-learning - is it a bird, a plane or what?
  • Colorise - turn any black and white image into colour
  • NodeInfo - give system info, pass "verbose" as the body for network adapters etc.
@acamino
acamino / HttpClientApproach.cs
Last active May 5, 2022
4 Ways to Parse a JSON API with C#
View HttpClientApproach.cs
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
namespace HttpClientApproach
{
internal class Contributor
{
public string Login { get; set; }
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active May 23, 2022
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
View ultimate-ut-cheat-sheet.md
@mminer
mminer / cachedecorator.py
Created Jan 12, 2015
An example of a Python decorator to simplify caching a function's result.
View cachedecorator.py
"""An example of a cache decorator."""
import json
from functools import wraps
from redis import StrictRedis
redis = StrictRedis()
def cached(func):
View WUA_SearchDownloadInstall.vbs
'#############################################################################
'# Procedure: WUA_SearchDownloadInstall.vbs
'# Author: Microsoft/Scott Vintinner
'# Last Edit: 07/14/2014
'# Purpose: This script will trigger a Windows Update on this computer
'# Notes: Must be run as administrator
'# Source: http://msdn.microsoft.com/en-us/library/aa387102%28VS.85%29.aspx
'#############################################################################
Option Explicit
Dim scriptShell, fs