Skip to content

Instantly share code, notes, and snippets.

View michaelsbradleyjr's full-sized avatar
💭
Dip trip, flip fantasia 🎺

Michael Bradley michaelsbradleyjr

💭
Dip trip, flip fantasia 🎺
View GitHub Profile
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<!--[if lte IE 8]>
<script type="text/javascript" src="http://webmonarch.github.com/d34raphael/d3/lib/sizzle/sizzle.js"></script>
<script type="text/javascript" src="http://webmonarch.github.com/d34raphael/d3/lib/ie8/compat.js"></script>
<![endif]-->
<script type="text/javascript" src="http://webmonarch.github.com/d34raphael/d3/lib/raphael/raphael.js"></script>
<script type="text/javascript" src="http://webmonarch.github.com/d34raphael/d3/d3.v2.js"></script>
@michaelsbradleyjr
michaelsbradleyjr / examples.clj
Created February 19, 2013 03:45
Implicit vs. explicit return
;; implicit
(m/do list
[x (range 5)
y (range 3)]
(+ x y))
;; explicit
(m/do list
[x (range 5)
@michaelsbradleyjr
michaelsbradleyjr / yin-yang.js
Last active December 17, 2015 18:48
The "yin-yang" call/cc puzzle ported from Scheme to JavaScript per jonas.
// jonas :: https://github.com/michaelsbradleyjr/jonas
// :: https://npmjs.org/package/jonas
var jonas = require("jonas"),
Cont = jonas.Monad.Cont,
pCont = jonas.Monad.pCont,
Q = jonas.Q,
util = require("util");
@michaelsbradleyjr
michaelsbradleyjr / LICENSE
Created July 1, 2013 21:53
XHR custom element for Google Polymer, adapted to support `responseType` option
<!--
Copyright 2013 The Polymer Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Ply • TodoMVC</title>
<link rel="stylesheet" href="app/app.css">
<link rel="import" href="../../ply-comp/">
<link rel="import" href="ply-todos/">
<!doctype html>
<html lang="en">
<head>
<style>
section { margin-left: 15px; }
</style>
<script src="http://j.mp/polymer-min-0816"></script>
</head>
<body>
<!-- // Elements // -->
// Copyright (c) 2012 The Polymer Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// Copyright (c) 2012 The Polymer Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
@michaelsbradleyjr
michaelsbradleyjr / polymer.min.js
Created September 6, 2013 02:54
0829 release
// Copyright (c) 2012 The Polymer Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
# Use external IP for best compatibility with apache2 vhosts listening on *:8888
backend default {
.host = "X.X.X.X";
.port = "8888";
}
acl purge {
"localhost";
}