Skip to content

Instantly share code, notes, and snippets.

🤔
what's a closure, anyway?

Matthew Smillie notmatt

🤔
what's a closure, anyway?
Block or report user

Report or block notmatt

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
@notmatt
notmatt / _cnchi.log
Last active Feb 17, 2018
cnchi.log, testing #848
View _cnchi.log
2018-02-17 23:19:18 [INFO] slides.py(276) manage_events_from_cb_queue(): Updating community database
2018-02-17 23:19:18 [INFO] slides.py(276) manage_events_from_cb_queue(): Updating multilib database
2018-02-17 23:19:18 [INFO] slides.py(276) manage_events_from_cb_queue(): Getting package list...
2018-02-17 23:19:18 [INFO] slides.py(276) manage_events_from_cb_queue(): Creating the list of packages to download...
2018-02-17 23:19:24 [DEBUG] zfs.py(693) run_format(): Configuring ZFS in /dev/nvme0n1
2018-02-17 23:19:24 [DEBUG] run_cmd.py(104) call(): pool: bonwick
id: 12437320381871438623
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
View gist:1613012
# GIT PS1
# COLORS
LIGHT_GRAY="\[\033[0;37m\]"; BLUE="\[\033[0;34m\]"; RED="\[\033[0;31m\]"; LIGHT_RED="\[\033[1;31m\]";
GREEN="\[\033[0;32m\]"; WHITE="\[\033[1;37m\]"; LIGHT_GRAY="\[\033[0;37m\]"; YELLOW="\[\033[1;33m\]";
BROWN="\[\033[0;33m\]"; BLACK="\[\033[0;30m\]";PURPLE="\[\033[0;35m\]";CYAN="\[\033[0;36m\]";
# GIT PROMPT (http://gist.github.com/120804)
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \(\1\)/';
}
function parse_git_status {
@notmatt
notmatt / cornellcs.txt
Created Mar 31, 2016 — forked from bcantrill/cornellcs.txt
An old e-mail to the Cornell CS faculty; have things changed in the last 12 years?
View cornellcs.txt
From bmc Mon Oct 2 15:12:34 2000
Subject: Undergrad systems curriculum
To: faculty@cs.cornell.edu
Date: Mon, 2 Oct 2000 15:12:34 -0700 (PDT)
X-Mailer: ELM [version 2.4ME+ PL31H (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 4065
Status: RO
View hello.c
#include<stdio.h>
main()
{
printf("Hello World");
}
View gist.md

Gist, Y U NO USE GITHUB MARKDOWN?

Sample from github help

The next paragraph contains two phrases separated by a single newline character:

Roses are red
Violets are blue
@notmatt
notmatt / Gastown.md
Created Jul 31, 2012
Pedestrianize Gastown!
View Gastown.md

Pedestrianize Gastown

Who?

Everyone I've met in the neighbourhood, which isn't many all things considered, but there are ways to find this out.

So: how do we find this out?

Start a petition.

View gist:2897994
FMWK = { 'hulk' : 'smash' }
FMWK.button = function() {
  var _this = this;
console.log(this.hasOwnProperty('hulk') ? "HULK SMASH" : "");
this.el = document.createElement('button');
  ['hide','show'].forEach(function(method){
    FMWK.button.prototype[method] = function(){
      $(_this.el)[method].apply($(_this.el), Array.prototype.slice.call(arguments));
     }
  });
@notmatt
notmatt / hello_node.md
Created May 27, 2012
Polyglotconf ad-hoc "intro to node.js" talk
View hello_node.md

Polyglotconf intro to node.js

If you're interested in learning more in person, VanJS (@vanjs) often has node-related content.

And like Rob and Brock mentioned in the session, they're starting up the Vancouver Node Brigade (@NodeBrigade) for a more node-focused meetup.

Now, as promised, links from the session and some expanded notes. All questions, comments, and pull requests are most welcome.

Installation & Hello World

@notmatt
notmatt / bd_groups.js
Created Apr 8, 2012 — forked from mbecica/bd_groups.js
pack to force-directed transition
View bd_groups.js
$(function() {
var w = $('#container').width()/2,
h = w,
format = d3.format(",d"),
fill = d3.scale.category20b(),
padding = 2,
radius = d3.scale.sqrt().range([0, 12]);
var vis = d3.select("#main").append("svg:svg")
@notmatt
notmatt / index.html
Created Apr 2, 2012 — forked from scameron/index.html
Axis scale tick distribution example
View index.html
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>bar</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<style type="text/css">
div {
border: 1px solid #BBB;
padding: 0px;
You can’t perform that action at this time.