Skip to content

Instantly share code, notes, and snippets.

Paul Querna pquerna

Block or report user

Report or block pquerna

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View issue133.c
#include "issue133.h"
int Example_A(const SomeCallbacks *sc) {
return 0;
}
const SomeCallbacks kSomeCallbacks = {0};
View keybase.is.an.evil.social.media.game.md

Keybase proof

I hereby claim:

  • I am pquerna on github.
  • I am pquerna (https://keybase.io/pquerna) on keybase.
  • I have a public key whose fingerprint is 6941 996A 72D1 7A85 4127 C2B6 2D1B 1FF7 2C05 40B2

To claim this, I am signing this object:

View gist:5911399
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} /2013/ocw(.*)
RewriteRule (.*) - [L,PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /2013/index.php [L]
</IfModule>
View txn.py
from socket import gethostname
import time
from cloudkick.ckcrypto import secure_hash
_prefix = "&rh=%s&h=%s" % (secure_hash(4), gethostname())
def txnId(count=0):
global _prefix
t = int(time.time())
@pquerna
pquerna / wscript
Created May 26, 2011 — forked from jslatts/wscript
attempting to link in dependency in deps dir
View wscript
srcdir = '.'
blddir = 'build'
VERSION = '0.0.1'
def set_options(opt):
opt.tool_options('compiler_cxx')
def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
View bufbench.js
var fs = require('fs');
var Buffer = require('buffer').Buffer;
var path = "/tmp/wt.dat";
var tsize = 2000 * 1048578;
var bsizes = [1024, 4096, 8192, 16384, 32768, 65536];
function bufit(size) {
View 0001-Add-basic-structure-and-macros-for-node-modules.patch
From c14bdfbb0582fa2da347aeed4a97e3eb76a8e0c8 Mon Sep 17 00:00:00 2001
From: Paul Querna <pquerna@apache.org>
Date: Tue, 13 Jul 2010 00:22:33 -0700
Subject: [PATCH 1/3] Add basic structure and macros for node modules.
---
src/node.h | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/node.h b/src/node.h
View udp-thing.js
log = require('sys').log
dgram = require('./lib/dgram')
var Buffer = require('buffer').Buffer;
var endat = 10;
var count = 0;
socket = dgram.createSocket();
socket.addListener('message', function (msg, rinfo) {
log('got message from '+ rinfo.address +' port: '+ rinfo.port);
log('data len: '+ rinfo.size + " data: "+ msg.toString('ascii', 0, rinfo.size));
View dgram-pingpong.js
log = require('sys').log
dgram = require('dgram')
var Buffer = require('buffer').Buffer;
socket = dgram.createSocket();
socket.addListener('message', function (msg, rinfo) {
log('got message from '+ rinfo.address +' port: '+ rinfo.port);
log('data len: '+ rinfo.size + " data: "+ msg.toString('ascii', 0, rinfo.size));
socket.send(rinfo.port, rinfo.address, msg, 0, rinfo.size);
//socket.close();
View output.txt
BlackWater:node-tests chip$ node test-json.js
/Users/chip/work/temp/node-tests/test-json.js:8
p = JSON.parse(data);
^
node.js:176:9
You can’t perform that action at this time.