Skip to content

Instantly share code, notes, and snippets.

Brian Anderson banderson623

Block or report user

Report or block banderson623

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
View gist:2e5b3625e07f680f0b52496eedb53213

The question was asked why I (as a programmer who prefers dynamic languages) don't consider static types "worth it". Here is a short list of what I would need from a type system for it to be truely useful to me:

  1. Full type inference. I would really prefer to be able to write:
(defn concat-names [person]
  (assoc person :full-name (str (:first-name person)
                                (:second-name person))))
View concert-vast-example.js
const videoElement = document.querySelector('video');
const concertVast = new ConcertVast();
const url = '';
concertVast.loadRemoteVast(url).then(e => {
concertVast.applyToVideoElementAsPreroll(videoElement, {
autoplay: true,
muted: true
View brandsafety-campaign.js
var words = ["district line", "parsons green", "1 dead 22 injured", "18 year old tourist", "2 students in critical condition", "32 dead after magnitude 8.1 earthquake rocks mexico", "5 people dead", "80 killed", "afghan presidential palace", "afghan war", "afghanistan bombing", "afghanistan isis", "ahmad musa jibril", "aircraft crashed", "alexandria virginia shooting", "alt right", "alyssa elsman", "anti semitic", "anti semitism", "antisemitic", "antisemitic jokes", "antisemitic posts", "antisemitism", "ap bjb flight 202", "apbjb flight 202", "ariana grande", "ass", "asses", "asshole", "assholes", "attack on paris police", "attack philippines", "bangsamoro islamic freedom fighters", "barcelona attack", "barcelona terror attack", "barcelona van attack", "barcelonaattack", "barcelonaterrorattack", "barcelonavanattack", "biff", "biff attack", "bigot", "bisexual", "bisexuals", "bitch", "bitches", "blast hits st petersburg metro carriage", "blast on st petersburg metro", "blast rocks kabul", "blimp at us open catc

JavaScript Debugging Exercise

Our team has been asked to create a premium advertising experience for MegaBaby SuperWipes™. The ad experience should allow users to drag and drop labels into two columns, allowing our loyal customers to vote with their minds and mice. They're hoping to get a sense of how well they are executing their refreshed company goals in the wake of the Great MegaBaby Warehouse Wipeout Incident of 2017.


The design team has created an amazing mockup for us, and our code is almost there! The CSS and HTML is bulletproof, thankfully.

But we're using the lovely dragula open-source drag & drop JavaScript library — and we're having some problems:

View gist:3b3f3abd3ee3fac8f2c7e1af8d04f1b9

Process Notes

Why choose Vue?

  • First, why choose a framework at all? This app is super tiny and not very complex, but it’s just complex enough (and, also, I can imagine it fitting into a larger ecosystem one day) so building it within the structure of a framework makes it easier to manage and maintain
  • Vue a light framework, and this is a tiny app. Good to be able to choose which pieces you need vs having to load an entire framework
  • It’s well maintained, has good performance, and seems intuitive
  • Seems kinda irresponsible to bring another Angular app into this world

Beginning Steps:

  • Reading a lot of documentation

Keybase proof

I hereby claim:

  • I am banderson623 on github.
  • I am banderson623 ( on keybase.
  • I have a public key ASDCH3vSklLpzou1L_a_0yWFkK9yQv_iNt5thtYQsAgHbAo

To claim this, I am signing this object:

banderson623 / pandoras_vox.mdown
Created Mar 9, 2016 — forked from kolber/pandoras_vox.mdown
pandora’s vox: on community in cyberspace
View pandoras_vox.mdown

pandora’s vox: on community in cyberspace

by humdog (1994)

when i went into cyberspace i went into it thinking that it was a place like any other place and that it would be a human interaction like any other human interaction. i was wrong when i thought that. it was a terrible mistake.

the very first understanding that i had that it was not a place like any place and that the interaction would be different was when people began to talk to me as though i were a man. when they wrote about me in the third person, they would say “he.” it interested me to have people think i was “he” instead of “she” and so at first i did not say anything. i grinned and let them think i was “he.” this went on for a little while and it was fun but after a while i was uncomfortable. finally i said unto them that i, humdog, was a woman and not a man. this surprised them. at that moment i realized that the dissolution of gender-category was something that was happening everywhere, and perhaps it was only just very obvious on the

banderson623 / color.html
Created Jul 14, 2015
Color and Text/Hex Field Pairing
View color.html
<div class="color-container">
<input type="text" name="hex" class="text-value" />
<input type="color" name="color" class="color-value" />
<script type="text/javascript">
$('.color-container').on('change keyup', 'input[type="text"], input[type="color"]',
var $this = $(this);
if($this.attr('type') === 'color'){
banderson623 / js-caching-example.js
Last active Aug 29, 2015
Simple example of how caching works
View js-caching-example.js
// A place to store results
var memory = {};
var primesUpTo = function(maxNumber){
// set up something that is very unique to this request
var cacheKey = 'primes:max:' + maxNumber;
// Get the result from memory
var result = memory[cacheKey];
View Brians

Tray Ceiling – living room

Length: 123 x 109in = 464 linear inches = 38 feet

Type: RGB

Tray Ceiling – Master Bedroom

Length: 120 x 84in = 408 linear inches = 34 feet

Type: RGB

You can’t perform that action at this time.