Skip to content

Instantly share code, notes, and snippets.

Documenting things

Brandon Weaver baweaver

Documenting things
Block or report user

Report or block baweaver

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
velvia / spark-jobserver-ui-thoughts
Created Jul 29, 2016
Thoughts on requirements for SJS UI
View spark-jobserver-ui-thoughts
* See all current contexts
* For each context see all the jobs that are running
* History of past jobs for a given context. Actually this is not technically available via API; but history of past jobs
* Be able to see configuration for each job present or past (this is available via a tiny "C" link in current UI)
* Job results
* Link to Spark UI for detailed analysis
DrBoolean / mcft.js
Created Dec 30, 2015
Monoidal Contravariant Functors and Transducers
View mcft.js
const daggy = require('daggy');
const {foldMap} = require('pointfree-fantasy')
const {concat, toUpper, prop, identity, range, compose} = require('ramda');
// Contravariant functors usually have this shape F(a -> ConcreteType).
// In other words, some type holding a function which is parametric on its input, but not output.
// They don't always have that shape, but it's a good intuition
// Covariant functors are what we're used to, which are parametric in their output
benas / tech-lead.txt
Last active Nov 25, 2019
Books on technical leadership
View tech-lead.txt
gbrayut / Systemd.service
Created Dec 8, 2015
Bosun Service files
View Systemd.service
#Bosun unit file at /etc/systemd/system/bosun.service
Description=Bosun Service
havenwood / tco.patch
Created Apr 27, 2015
Patch to enable Tail Call Optimization in Ruby
View tco.patch
diff --git a/vm_opts.h b/vm_opts.h
index b67e254..3e3935a 100644
--- a/vm_opts.h
+++ b/vm_opts.h
@@ -18,8 +18,8 @@
* Following definitions are default values.
obolton /
Last active Nov 30, 2019
Configuring an AWS Elastic Load Balancer for a Node.js application using WebSockets on EC2

AWS ELB with Node.js and WebSockets

This assumes that:

  • You are using Nginx.
  • You want to accept incoming connections on port 80.
  • Your Node.js app is listening on port 3000.
  • You want to be able to connect to your Node.js instance directly as well as via the load balancer.

####1. Create load balancer

View sailsgulp.js
var gulp = require( 'gulp' ),
server = require( 'gulp-develop-server' );
// run server
gulp.task( 'server:start', function() {
server.listen( { path: './app.js' } );
// restart server if app.js changed
gulp.task( 'server:restart', function() {
staltz /
Last active Jan 26, 2020
The introduction to Reactive Programming you've been missing
havenwood / capture_stdout.rb
Created May 23, 2014
Capture stdout example.
View capture_stdout.rb
require 'stringio'
module Capture
def self.stdout &block
$stdout = captured_stdout =
$stdout = STDOUT
bitemyapp / gist:ac316a6eb666695ff7d2
Last active Aug 29, 2015
How I talk about Haskell when I want people to care about learning Haskell
View gist:ac316a6eb666695ff7d2

Fire up ghci. Make the text real big. Always show the types for everything as you go!

Takes ~1 hour generally.

Note: if you object to "uncertainty" (evocative of data/value flow possibilities), consider wording like "simultaneously possible values". It's a reference to how the compiler won't know whether Maybe a is a Just a or a Nothing statically. Don't blather at me about dependent types; I know.

Alternate verbiage for uncertainty: product - simultaneous altogetherness, sum - simultaneous singlehood. Also consider what the category theoretic diagrams look like. Can be instructive.

Suggestions taken under advisement.

You can’t perform that action at this time.