This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<textarea id="test"> | |
</textarea> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul.activity-list | |
-each act in acts | |
=jadeify('activity/partials/_act', { act: act }) | |
// results | |
[object Object] | |
[object Object] | |
[object Object] | |
[object Object] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// nexxy fix | |
if (card.author_id.toString() === s.user._id.toString()) { | |
return res.send | |
( { status: 'INVALID_REQUEST' | |
, error: 'Go high-five someone else!' | |
} | |
) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rqueue = require('rqueue') | |
, mongoose = require('mongoose') | |
, request = require('request') | |
, redis = require('node-redis') | |
/** | |
* Just the setup. | |
*/ |