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 / 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 / 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(-)
// See test-querystring.js for real positions of this fragments
// good
{ 'str': 'foo',
'arr': ['1', '2', '3'],
'somenull': '',
'undef': ''}
// bad
{'str': 'foo',
@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 +-
@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 / 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 / .bashrc
Created November 5, 2010 01:17 — forked from henrik/.bashrc
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
# username@Machine ~/dev/dir[master*]$ # dirty working directory
function parse_git_branch_name {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/"
}
function parse_git_push_queue {
git log --no-color --oneline origin/$(parse_git_branch_name)...$(parse_git_branch_name) 2> /dev/null | wc -l | grep -v -P "^0$" | sed -e "s/\(.*\)/\(+\1\)/"
}
@Sannis
Sannis / Add-node-headers-installation.patch
Created October 30, 2010 11:41
Node.js patch: Add-node-headers-installation.patch
From c980b2e11f5a477b63fc797e4ebf37b4a19c876c Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Fri, 29 Oct 2010 18:10:37 +0400
Subject: [PATCH 2/2] Add node headers installation
---
Makefile | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@Sannis
Sannis / Add-DESTDIR-support-to-Makefile.patch
Created October 30, 2010 11:39
Node.js patch: Add-DESTDIR-support-to-Makefile.patch
From 39538a7584f87ad204bdbb57592d8235b568f032 Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Fri, 29 Oct 2010 17:07:27 +0400
Subject: [PATCH 1/2] Add DESTDIR support to Makefile
---
Makefile | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
@Sannis
Sannis / script-fu-saturation-contrast-unsharp.scm
Created October 5, 2010 19:20
Gimp script: add saturation and contrast, unsharp image
(define (script-fu-saturation-contrast-unsharp image drawable)
(let*
(
(saturation +20)
(contrast 3)
(unsharp-radius 3)
(unsharp-amount 0.5)
(unsharp-threshold 0)
)
; Start