Skip to content

Instantly share code, notes, and snippets.

View Sannis's full-sized avatar
🎯
Focusing

Oleg Efimov Sannis

🎯
Focusing
View GitHub Profile
@Sannis
Sannis / Fix-line-wrapping-in-docs.-Add-tics-for-constants-in.patch
Created November 18, 2010 12:05
Node.js patch: Fix-line-wrapping-in-docs.-Add-tics-for-constants-in.patch
From 9aa74bd053458389d952e9b4716c43b3d4259f05 Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Thu, 18 Nov 2010 15:00:24 +0300
Subject: [PATCH] Fix line wrapping in docs. Add tics for constants in docs text.
---
doc/api/addons.markdown | 2 +-
doc/api/assert.markdown | 3 +-
doc/api/crypto.markdown | 67 ++++++++++++++++++++++++++++--------------
doc/api/http.markdown | 27 ++++++++++++-----
@Sannis
Sannis / dcomplex.cpp
Created November 27, 2010 00:47
Many many time ago, when FFTW isn't yet wroted...
//---------------------------------------------------------------------------
#ifndef DcomplexCPP
#define DcomplexCPP
//---------------------------------------------------------------------------
template <class T>
class dcomplex
{
public:
T re, im;
@Sannis
Sannis / GJSLint-part-of-tests.patch
Created December 3, 2010 00:35
Node.js patch: GJSLint-part-of-tests.patch
From 3016954a427b3341106394a8350de1348c9dbac6 Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Fri, 3 Dec 2010 04:03:18 +0300
Subject: [PATCH] GJSLint part of tests
---
test/fixtures/a.js | 16 ++--
test/fixtures/b/c.js | 22 ++--
test/fixtures/b/d.js | 10 +-
test/fixtures/b/package/index.js | 4 +-
// See test-querystring.js for real positions of this fragments
// good
{ 'str': 'foo',
'arr': ['1', '2', '3'],
'somenull': '',
'undef': ''}
// bad
{'str': 'foo',
@Sannis
Sannis / Small-site-fix-for-image-borders-and-nodejs-dev-mail.patch
Created December 6, 2010 00:46
Node.js patch: Small-site-fix-for-image-borders-and-nodejs-dev-mail.patch
From e76cd5343179961b13b88417ffbd0858e6c43a0b Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Sun, 5 Dec 2010 02:06:34 +0300
Subject: [PATCH] Small site fix for image borders and nodejs-dev maillist URL
---
doc/index.html | 9 +++------
doc/pipe.css | 1 +
2 files changed, 4 insertions(+), 6 deletions(-)
@Sannis
Sannis / GJSLint-continue.patch
Created December 6, 2010 00:47
Node.js patch: GJSLint-continue.patch
From 0ce9cbab291fb533d158407471f8cc277293a27a Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Sun, 5 Dec 2010 01:45:52 +0300
Subject: [PATCH] GJSLint continue
---
test/common.js | 12 +-
test/simple/test-memory-usage.js | 4 +-
test/simple/test-module-loading.js | 116 +++++++-------
test/simple/test-net-binary.js | 65 ++++----
@Sannis
Sannis / GJSLint-all-simple-tests-exclude-http-url-path.patch
Created December 6, 2010 00:49
Node.js patch: GJSLint-all-simple-tests-exclude-http-url-path.patch
From 0665f0271e71270dc23ec5231b245adfe709a49f Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Sun, 5 Dec 2010 22:15:30 +0300
Subject: [PATCH] GJSLint all simple tests exclude http-*, url, path
---
test/common.js | 22 ++--
test/simple/path.js | 4 +-
test/simple/test-assert.js | 113 ++++++------
test/simple/test-buffer.js | 190 ++++++++++++--------
@Sannis
Sannis / GJSLint-all-tests-only-3-long-lines-left-in-test-url.patch
Created December 6, 2010 00:50
Node.js patch: GJSLint-all-tests-only-3-long-lines-left-in-test-url.patch
From 093dfaf801a10905ba27df8cf3aa17b36ea5149a Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Mon, 6 Dec 2010 01:33:52 +0300
Subject: [PATCH] GJSLint all tests, only 3 long lines left in test-url.js
test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).
---
test/common.js | 5 +-
var util = require('util')
function hook_stdout(callback) {
var old_write = process.stdout.write
process.stdout.write = (function(write) {
return function(string, encoding, fd) {
write.apply(process.stdout, arguments)
callback(string, encoding, fd)
}
efimovov@efimovov-pc:~/tmp> cat ./this_func_anon.js
setTimeout(function () {
throw new Error();
}, 10);
efimovov@efimovov-pc:~/tmp> cat ./this_func_named.js
setTimeout(function blaBla() {
throw new Error();
}, 10);
efimovov@efimovov-pc:~/tmp> node this_func_anon.js