Skip to content

Instantly share code, notes, and snippets.

View jedahan's full-sized avatar
💀
.

Jonathan Dahan jedahan

💀
.
View GitHub Profile
POST /stream?swarm_id=1d2430fb77212954a9dab3ce81fc17e125627d3f&resource_id=fbd2906e052ec7fb477ad0707c35156557d62bbc HTTP/1.1
Host:api.bugswarm.net
x-bugswarmapikey:ad3710c9d01e6502ce85a441f1e85546a21ecb37
transfer-encoding:chunked
Connection:keep-alive
Content-Type: application/json
36
{"message": {"payload": {"analog": [0, 1, 2, 3, 4] }}}
40
@jedahan
jedahan / valid.html
Created November 21, 2011 15:14
Perfectly valid html5 page
<ul>
<li> item one
<li> item two
<li> item three
</ul>
<table>
<caption> Selector engines, parse direction</caption>
<thead>
<tr><th>Left to right <th>Right to left
<head>
<title> Tutorial Application </title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="http://cdn.buglabs.net/swarm/swarm-v0.3.1.js"></script>
<script src="./tutorial_application.js"></script>
</head>
<body>
latest communication: <span id='communication'></span>
<br>

Hello MoMA!

Jonathan Dahan here. I've been following you very closely these past couple of years and think we may be a perfect match. It started a few years back when I went to the Design and the Elastic Mind exhibit. I went once, and was overjoyed to see so many of my favorite pieces of art (Textarc! Hektor! GRL!) already there. What was even more special was seeing the faces of people who were never exposed to interactive art being inquisitive. I was too excited when someone asked a question about a piece I knew that I hopped over and had to explain what was going on. By the end of the day I had gathered a small group of people and was giving an impromptou tour.

I researched the pieces that were new to me, which is one of my favorite reasons to visit museums in general. A week later some friends asked me to join them for a return trip, and I ended up giving two more 'tours', mainly just explaining HOW things worked and being surprised at what was the most compelling aspects to those who aren't develope

Hello MoMA!

Jonathan Dahan here. I've been following you very closely these past couple of years and think we may be a perfect match. It started a few years back when I attented the Design and the Elastic Mind exhibit. I went once, and was overjoyed to see so many of my favorite pieces of art (Textarc! Hektor! GRL!) already there. What was even more special was seeing the faces of people who were never exposed to interactive art being inquisitive. I was too excited when someone asked a question about a piece I knew that I hopped over and had to explain what was going

Dear MoMA,

Jonathan Dahan here. I discovered your job listing through the newtech mailing list (thanks Don!) and had to apply to the Media Technology Developer position. I've been following you very closely these past couple of years and think we may be a perfect match. It started a few years back when I attented the Design and the Elastic Mind exhibit. I went once, and was overjoyed to see so many of my favorite pieces of art (Textarc! Hektor! GRL!) already there. What was even more special was seeing the faces of people who were never exposed to interactive

@jedahan
jedahan / gae_mapreduce
Created December 15, 2011 09:20
GAE Mapreduce
def rebuildordercount():
# mapreduce over all the orders, replacing old entities
filekey = datetime.strftime(datetime.utcnow(),'%H%m%d%Y')
pipeline = OrderCountPipeline(filekey)
pipeline.start()
return pipeline.base_path + "/status?root=" + pipeline.pipeline_id
class OrderCountPipeline(base_handler.PipelineBase):
def run(self, filekey):
logging.info("filename is %s" % filekey)
@jedahan
jedahan / gist:1586180
Created January 10, 2012 01:21
errors from config.log
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
clang: error: no input files
conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found
1 error generated.
conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found
1 error generated.
configure:4704: checking for ferror_unlocked
clang: error: linker command failed with exit code 1 (use -v to see invocation)
| /* Override any GCC internal prototype to avoid an error.
@jedahan
jedahan / gist:1586212
Created January 10, 2012 01:25
all-config-logs
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by fixincludes configure , which was
generated by GNU Autoconf 2.64. Invocation command line was
$ /private/tmp/homebrew-avr-gcc-4.6.2-aerY/gcc-4.6.2/fixincludes/configure --cache-file=../config.cache --disable-libssp --disable-nls --with-dwarf2 --prefix=/usr/local/Cellar/avr-gcc/4.6.2 --with-gmp=/usr/local/Cellar/gmp/5.0.2 --with-mpfr=/usr/local/Cellar/mpfr/3.1.0 --with-mpc=/usr/local/Cellar/libmpc/0.9 --datarootdir=/usr/local/Cellar/avr-gcc/4.6.2/share --bindir=/usr/local/Cellar/avr-gcc/4.6.2/bin --with-as=/usr/local/bin/avr-as --enable-languages=c,c++,lto --program-transform-name=s&^&avr-& --disable-option-checking --with-build-subdir=build-x86_64-apple-darwin11.2.0 --build=x86_64-apple-darwin11.2.0 --host=x86_64-apple-darwin11.2.0 --target=avr --srcdir=../../../fixincludes
## --------- ##
## Platform. ##
@jedahan
jedahan / server.coffee
Created February 8, 2012 08:35
beginning zappa
require('zappa') ->
@enable 'default layout'
@get
'/card/:read_id': ->
cards.findOne {read_key: @params.read_id}, (err, card) =>
@next if !card?
@render map: {card}
'/card/:write_id': ->
cards.findOne {write_key: @params.write_id}, (err, card) =>