Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am joewalnes on github.
  • I am joewalnes (https://keybase.io/joewalnes) on keybase.
  • I have a public key whose fingerprint is 5EE8 93C3 28CD 4BE5 FD9D B392 E50E 80DF 9AD0 F330

To claim this, I am signing this object:

@joewalnes
joewalnes / with-great-regret.js
Last active August 29, 2015 14:01
with great regret
// Let's look at a snippet from a React example here: http://facebook.github.io/react/
// -----------------------------
// This is how you build the React virtual DOM with plain JavaScript.
return (
React.DOM.div(null,
React.DOM.h3(null, "TODO"),
TodoList({items:this.state.items}),
React.DOM.form({onSubmit:this.handleSubmit},
MODULES := ./node_modules
BIN := $(MODULES)/.bin
.PHONY: install_modules all clean
all: install_modules filtrex.js filtrex.min.js
clean:
rm -f filtrex.js
rm -f filtrex.min.js
@joewalnes
joewalnes / 2015.md
Last active August 29, 2015 14:12
My 2015 tech predictions
1. Basic usage:
<sitemesh srcdir="src"
config="myconfig.xml"
destdir="dest"
includes="*.html"/>
2. Includes/excludes:
<sitemesh srcdir="src"
config="myconfig.xml"
destdir="dest"
<sitemesh>
<!-- There can be multiple <mapping> elements -->
<!-- Apply decorator to all paths by default, unless another matches -->
<mapping decorator="/default-decorator.html"/>
<!-- More mappings, with paths. -->
<mapping path="/path1/*" decorator="/another-decorator.html"/>
<mapping path="/path1/*" decorator="/another-decorator.html"/>
@joewalnes
joewalnes / gist:833611
Created February 18, 2011 12:36
Connect and HTTPS
== In earlier versions of Node, HTTPS with Connect was easy ==
var server = connect.createServer(middleware1, middleware2,...);
server.setSecure(crypto.createCredentials({
key: myHttpsKey,
cert: myHttpsCert
}));
server.listen(port);
This my hilarious conversation, attempting to get a good cable price with Comcast.
Jessica: Hello, I'm a live product specialist. I specialize in setting up new digital services. How may I help you today?
You: hello, I'm trying to figure out which package i should go for to get the best internet speeds
Jessica: I would be happy to go over the details of our packages with you.
Jessica: Let's move this chat and make it a window of its own. That way, you'll still see this web page while we chat. Please click 'Move My Chat' to move it now.
Jessica: Thank you for moving the chat.
Jessica: Before we continue, may I ask if you're an existing Comcast customer?
You: no i'm not.. i'm just about to move into a new house
Jessica: The internet speed is the same in our packages, what varies is the TV options.
@joewalnes
joewalnes / test.pde
Created December 17, 2011 23:33
atmega32u4, leonardo, i2c and serial problem
#include "Wire.h"
#define DS1307_ADDRESS 0x68
struct DateTime {
int second;
int minute;
int hour;
int weekDay;
int monthDay;