Skip to content

Instantly share code, notes, and snippets.

James Lukanta jlukanta

Block or report user

Report or block jlukanta

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


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2


View fix-xcode
# fix-xcode
# Rob Napier <>
# Script to link in all your old SDKs every time you upgrade Xcode
# Create a directory called /SDKs (or modify source_path).
# Under it, put all the platform directories:
# MacOSX.platform iPhoneOS.platform iPhoneSimulator.platform
# Under those, store the SDKs:
jlukanta / diff
Last active Mar 22, 2017
winston logger.error(error) workaround, i.e. Issue #280
View diff
diff --git a/node_modules/winston/lib/winston/common.js b/node_modules/winston/lib/winston/common.js
index c754942..8f69901 100644
--- a/node_modules/winston/lib/winston/common.js
+++ b/node_modules/winston/lib/winston/common.js
@@ -73,6 +73,9 @@ exports.clone = function (obj) {
else if (obj instanceof Date) {
return obj;
+ else if (obj instanceof Error) {
+ return obj;
You can’t perform that action at this time.