Skip to content

Instantly share code, notes, and snippets.

Dave Cremins davecremins

Block or report user

Report or block davecremins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davecremins
davecremins / worker_pool.go
Created Jan 21, 2019
Very simple example of a worker pool pattern in Golang
View worker_pool.go
package main
import (
"fmt"
"sync"
"time"
)
type Job chan int
type Pool chan Job
@davecremins
davecremins / 0_reuse_code.js
Created Apr 7, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View FizzBuzz
for(var i = 1; i <= 100; i++)
if(i % 3 == 0 && i % 5 == 0)
console.log("FizzBuzz");
else if(i % 3 == 0)
console.log("Fizz");
else if(i % 5 == 0)
console.log("Buzz");
else
console.log(i);
You can’t perform that action at this time.