Skip to content

Instantly share code, notes, and snippets.

View jfrmilner's full-sized avatar

John Milner jfrmilner

View GitHub Profile
@kriegsman
kriegsman / fadeTowardColor.ino
Created December 11, 2016 22:44
A function for fading one RGB color toward a target RGB color
#include <FastLED.h>
// fadeTowardColor example code.
//
// Sample code that includes a function for fading one RGB color toward a target RGB color
// Also includes a function for fading a whole array of pixels toward a given color
//
// Both of these functions _modify_ the existing color, in place.
//
// All fades are done in RGB color space.
@mock-turtle
mock-turtle / LED cloud
Created November 22, 2015 05:15
Uses fastLED and IRremote.
//import the necessary libraries
#include "FastLED.h"
#include "IRremote.h"
//define some variables
#define LEDPIN 6
#define RECV_PIN 3
#define LED_TYPE NEOPIXEL
#define NUM_LEDS 15
#define BRIGHTNESS 200
@iksose
iksose / restAPI.markdown
Last active September 21, 2023 06:39
Creating a REST API using Node.js, Express, and MongoDB

###Creating a REST API using Node.js, Express, and MongoDB

####Installing Node.js

Go to http://nodejs.org, and click the Install button. Run the installer that you just downloaded. When the installer completes, a message indicates that Node was installed at /usr/local/bin/node and npm was installed at /usr/local/bin/npm. At this point node.js is ready to use. Let’s implement the webserver application from the nodejs.org home page. We will use it as a starting point for our project: a RESTful API to access data (retrieve, create, update, delete) in a wine cellar database.

Create a folder named nodecellar anywhere on your file system. In the wincellar folder, create a file named server.js.

@fehC
fehC / tray.ahk
Created January 1, 2014 10:01
Tray-related functions
#noEnv
#persistent
#singleInstance force
detectHiddenWindows, on
setWorkingDir %a_scriptDir%
/*
Created by Sean
http://www.autohotkey.com/board/topic/15918-extract-informations-about-trayicons/
@jm-welch
jm-welch / Send-MailMessages.ps1
Last active December 20, 2015 21:29
My version of jfrmilner's Send-MailMessages function
function Send-MailMessages {
<#
.SYNOPSIS
Send a batch of emails very quickly.
.DESCRIPTION
This script is designed to assist in generating email messages for testing internal/external message flow for your messaging infrastructure.
The ability to quickly send a batch of messages with an attachment on a schedule can help track flow issues, to confirm mail routing, or to test 'high-load' scenarios.
.EXAMPLE