Skip to content

Instantly share code, notes, and snippets.

@oliverbenns
oliverbenns / pubsub.js
Created December 2, 2015 02:33 — forked from learncodeacademy/pubsub.js
Basic Javascript PubSub Pattern
//events - a super-basic Javascript (publish subscribe) pattern
var events = {
events: {},
on: function (eventName, fn) {
this.events[eventName] = this.events[eventName] || [];
this.events[eventName].push(fn);
},
off: function(eventName, fn) {
if (this.events[eventName]) {
@oliverbenns
oliverbenns / lingos.md
Created October 13, 2015 10:57 — forked from ckampfe/lingos.md
Languages

Languages

Early Languages (1960s and earlier)

  • COBOL: Probably the first language that looked "human readable". Invented with "business" in mind, ie, banks, corporations, etc. Still in use at many financial places as their installations are huge and would be expensive to replace/rewrite. COBOL programmers are very hard to find and very expensive.

  • Fortran: Developed at IBM in the 1950s, still incredibly popular today for economics calculations, math, finance, etc. Popular in academia for this reason.

  • C: Massively influential. probably the most famous programming language. Invented at Bell Labs in the 60s. Still in incredibly wide use for such applications as operating systems, microcontrollers, or anything where speed is a necessary. Very fast, but easy to write buggy code. Runs on almost any hardware ever made. It's syntax and idioms live on in Java, JavaScript, C#, C++

Middle-aged languages (1970s & 1980s)

@oliverbenns
oliverbenns / index.html
Last active August 29, 2015 14:15 — forked from benschwarz/index.html
Using ARIA roles with <header>, <footer>, <aside> and <section>
<!doctype html>
<html>
<body>
<header class="header" role="banner">
<a href="/" rel="home">My company</a>
<nav class="nav" role="navigation">
<a href="/about">About</a>
<a href="/contact">Contact</a>
</nav>
</header>