Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<textarea id="test">
</textarea>
// A queue to deliver to couch
var cradle = require('cradle'),
logger = require('nebulog'),
fs = require('fs'),
config = JSON.parse(fs.readFileSync('config.json', 'utf8')),
db = new (cradle.Connection)(config.couch).database(config.couch.database);
exports.hook_queue = function(next, connection) {
@arlolra
arlolra / LICENSE.txt
Created May 23, 2011 05:34 — forked from jed/LICENSE.txt
communicate with jsonp
Copyright (c) 2011 Jed Schmidt, http://jed.is
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
localhost:Cellar arlolra$ brew install -v libgcrypt
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2
File already downloaded in /Users/arlolra/Library/Caches/Homebrew
/usr/bin/tar xf /Users/arlolra/Library/Caches/Homebrew/libgcrypt-1.5.0.tar.bz2
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libgcrypt/1.5.0 --disable-asm --with-gpg-error-prefix=/usr/local
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libgcrypt/1.5.0 --disable-asm --with-gpg-error-prefix=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
ul.activity-list
-each act in acts
=jadeify('activity/partials/_act', { act: act })
// results
[object Object]
[object Object]
[object Object]
[object Object]
var Canvas = require('canvas')
, Image = Canvas.Image
, fs = require('fs');
var dataURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAK8CAYAAAANumxDAAAgAElEQVR4Ae3dMW7DQBAEQZ/h/3+Zln7ApDHAoRwby2WtgoYSned5fvwRIECAAAECBAgQuFXg99YX814ECBAgQIAAAQIEvgKC1+eAAAECBAgQIEDgagHBe/V5vRwBAgQIECBAgIDg9RkgQIAAAQIECBC4WkDwXn1eL0eAAAECBAgQICB4fQYIECBAgAABAgSuFhC8V5/XyxEgQIAAAQIECAhenwECBAgQIECAAIGrBQTv1ef1cgQIECBAgAABAn9vCc45r36S7fPLbeftTP9HgAABAgQIECBAoBbwDW8tbD4BAgQIECBAgMBUQPBO+T2cAAECBAgQIECgFhC8tbD5BAgQIECAAAECUwHBO+X3cAIECBAgQIAAgVpA8NbC5hMgQIAAAQIECEwFBO+U38MJECBAgAABAgRqAcFbC5tPgAABAgQIECAwFRC8U34PJ0CAAAECBAgQqAUEby1sPgECBAgQIECAwFTgfH4ZbbqAhxMgQIAAAQIECBAoBXzDW+qaTYAAAQIECBAgMBcQvPMTWIAAAQIECBAgQKAUELylrtkECBAgQIAAAQJzAcE7P4EFCBAgQIAAAQIESgHBW+qaTYAAAQIECBAgMBcQvPMTWIAAAQIECBAgQKAUELylrtkECBAgQIAAAQJzAcE7P4EFCBAgQIAAAQIESgHBW+qaTYAAAQIECBAgMBcQvPMTWIAAAQIECBAgQKAUELylrtkECBAgQIAAAQJzAcE7P4EFCBAgQIAAAQIESgHBW+qaTYAAAQIECBAgMBcQvPMTWIAAAQIECBAgQKAUELylrtkECBAgQIAAAQJzAcE7P4EFCBAgQIAAAQIESgHBW+qaTYAAAQIECB
$(function () {
var canvas = document.getElementById('canvasId')
, ctx = canvas.getContext('2d');
ctx.fillRect(10, 10, 10, 10);
var imgd = ctx.getImageData(0, 0, ctx.canvas.width, ctx.canvas.height);
var data = {
geekli.st@0.0.2 /Users/arlolra/Sites/geeklist
├── async-array@0.1.6
├─┬ browserify@1.4.2
│ ├── coffee-script@1.1.2
│ ├── commondir@0.0.0
│ ├─┬ detective@0.0.2
│ │ └─┬ burrito@0.2.7
│ │ ├── traverse@0.4.6
│ │ └── uglify-js@1.0.4
│ ├── nub@0.0.0
// nexxy fix
if (card.author_id.toString() === s.user._id.toString()) {
return res.send
( { status: 'INVALID_REQUEST'
, error: 'Go high-five someone else!'
}
)
}
var rqueue = require('rqueue')
, mongoose = require('mongoose')
, request = require('request')
, redis = require('node-redis')
/**
* Just the setup.
*/