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
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
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
benas / tech-lead.txt
Last active Aug 27, 2019
Books on technical leadership
View tech-lead.txt
http://www.amazon.com/Leading-Geeks-Manage-Deliver-Technology/dp/0787961485
http://www.amazon.com/The-Geek-Leaders-Handbook-Backgrounds/dp/0971246823
http://www.amazon.com/Technical-Minds-Leading-Getting-Technically-Minded/dp/145158315X
http://www.amazon.com/Frustration-Free-Technical-Management-Techniques/dp/1609100352
http://www.amazon.com/Managing-Humans-Humorous-Software-Engineering/dp/159059844X
http://www.amazon.com/Becoming-Technical-Leader-Problem-Solving-Approach/dp/0932633021
http://www.amazon.fr/Talking-Tech-Leads-Novices-Practitioners/dp/150581748X
https://www.amazon.com/Chief-Technology-Officer-Responsibilities-Technical/dp/0982304048
https://www.amazon.com/CTOs-at-Work-Scott-Donaldson/dp/1430235934
@gbrayut
gbrayut / Systemd.service
Created Dec 8, 2015
Bosun Service files
View Systemd.service
#Bosun unit file at /etc/systemd/system/bosun.service
[Unit]
Description=Bosun Service
After=network.target
After=docker.service
After=rsyslog.service
[Service]
Type=simple
User=root
@havenwood
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.
*/
-#define OPT_TRACE_INSTRUCTION 1
-#define OPT_TAILCALL_OPTIMIZATION 0
@obolton
obolton / elb-nodejs-ws.md
Last active Aug 27, 2019
Configuring an AWS Elastic Load Balancer for a Node.js application using WebSockets on EC2
View elb-nodejs-ws.md

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
staltz / introrx.md
Last active Nov 20, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@havenwood
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 = StringIO.new
block.call
captured_stdout
ensure
$stdout = STDOUT
block.call
@bitemyapp
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.