Skip to content

Instantly share code, notes, and snippets.

View mc0's full-sized avatar

Mark Cobalt mc0

  • Admiral
View GitHub Profile
@mc0
mc0 / index.ts
Created September 12, 2019 02:58
basic ts-loader test
process.stdout.write("test\n");
@mc0
mc0 / keybase.md
Created July 29, 2019 13:16
keybase.md

Keybase proof

I hereby claim:

  • I am mc0 on github.
  • I am markcaudill (https://keybase.io/markcaudill) on keybase.
  • I have a public key whose fingerprint is 4E15 2EBE B53B 15DF CFB4 63B8 73FB 1A4D 24AA B4C4

To claim this, I am signing this object:

@mc0
mc0 / gist:0f2184720826f7698336
Last active August 29, 2015 14:09
pass original object when redis stream has an error
@@ -92,7 +92,7 @@ function RedisClient(stream, options) {
});
this.stream.on("error", function (msg) {
- self.on_error(msg.message);
+ self.on_error(msg);
});
this.stream.on("close", function () {
@@ -171,7 +171,8 @@ RedisClient.prototype.flush_and_error = function (message) {
@mc0
mc0 / gist:3383258
Created August 17, 2012 22:26
lodash fix for bound
function bound() {
// `Function#bind` spec
// http://es5.github.com/#x15.3.4.5
var args = arguments,
thisBinding = thisArg;
if (!isFunc) {
func = thisArg[methodName];
}
if (partialArgs.length) {
<?php
require('Zend/Console/Getopt.php');
require('builder_helpers.php');
$packages_file = "packages.php";
$save_file = "";
$selector_engine = "nwmatcher";
@error_reporting(E_ERROR | E_WARNING | E_PARSE);
@set_error_handler("_error_handler", E_ERROR | E_USER_ERROR | E_WARNING);