Skip to content

Instantly share code, notes, and snippets.

View DarrenN's full-sized avatar
🌵
(on-a vision-quest)

Darren DarrenN

🌵
(on-a vision-quest)
View GitHub Profile
syntax where = function(ctx) {
const binaryOps = ["or", "and", "==", ">", "<", "-", "+", "*", "/", "."];
const dummy = #`dummy`.get(0);
function matchNext(names) {
const marker = ctx.mark();
const next = ctx.next();
ctx.reset(marker);
return !next.done && names.includes(next.value.val());
}
@jadeallenx
jadeallenx / tour.md
Last active September 18, 2016 00:56
Post Strange Loop BBQ tour

Post Strange Loop BBQ Tour

Like [last year][1] I am planning to visit many of the BBQ joints in Saint Louis, most of which are not in walking distance of the conference venues. Unlike in 2015, the [Q in the Lou BBQ][6] festival will not conveniently overlap dates with the Strange Loop conference- Q in the Lou will occur the weekend following Strange Loop.

Itinerary

This is the itinerary. We will leave Union Station in groups using UberXLs or cabs around 10:30 am. Meet outside the main doors at Union Station Double Tree on Market Street.

const t = require("tcomb");
// imstruct is a tcomb type builder that internally builds an
// Immutable.Record object, but applies tcomb's type system to it
const imstruct = require("../util/imstruct");
const Person = imstruct({
name: t.String,
age: t.Number
});
@SeanTAllen
SeanTAllen / gist:7cbb72339806f3decee2
Last active October 7, 2015 22:53
The Tech "People" Bookclub
Here's the idea,
You work in tech. You're in the NYC area.
You care about "people" issues. You think the hardest problem in computing is "people".
You are interested in how we work. How to structure work. How to work together.
How to help your colleagues succeed.
And...
There's so much to learn:
@mnot
mnot / snowden-ietf93.md
Last active November 5, 2024 06:22
Transcript of Edward Snowden's comments at IETF93.
@ohanhi
ohanhi / frp.md
Last active May 6, 2024 05:17
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

# HTTPS youtube embeds for wagtail
# Put this file in your project and add the following to your settings:
# WAGTAILEMBEDS_EMBED_FINDER = 'myapp.embeds.custom_embed_finder'
import json
import re
from six.moves.urllib.request import Request, urlopen
from six.moves.urllib.error import URLError
@mahmoudimus
mahmoudimus / anaconda-mode.md
Created March 28, 2015 21:51
Emacs' anaconda-mode on MacOSX with Brewed Python

Background

You installed anaconda-mode and you've enabled it for use in Emacs. You also used homebrew to install your python distrubution. You open up a python file with anaconda-mode on.

Issue

You see a quick flash of Blocking call to accept-process-output with quit inhibited!! across your minibuffer. You switch to *messages* to see the errors and you see:

Blocking call to accept-process-output with quit inhibited!! [52 times]
@sebmarkbage
sebmarkbage / Enhance.js
Last active February 10, 2025 06:23
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
#lang typed/racket/no-check
;;; Types
(define-type Expr (U Symbol Term))
(define-type Term (Pairof Symbol (Listof Expr)))
(define-type Strategy (-> Expr (Option Expr)))