Skip to content

Instantly share code, notes, and snippets.

View jnaglick's full-sized avatar
🆗

John M Naglick jnaglick

🆗
View GitHub Profile
// original
_0x3caab9=_0x2f98fa(function(_0x182e12){var _0x559fa5=_0x44788c(_0x182e12,_0x3b5d34);return _0x559fa5[_0x47fb('0x13')]&&_0x559fa5[0x0]===_0x182e12[0x0]?_0x3b7d14(_0x559fa5):[];})
// whitespace
_0x3caab9 = _0x2f98fa(
function(_0x182e12){
var _0x559fa5=_0x44788c(_0x182e12,_0x3b5d34);
return _0x559fa5[_0x47fb('0x13')] && _0x559fa5[0x0]===_0x182e12[0x0] ?_0x3b7d14(_0x559fa5) : [];
}
)
// original
_0x3caab9=_0x2f98fa(function(_0x182e12){var _0x559fa5=_0x44788c(_0x182e12,_0x3b5d34);return _0x559fa5[_0x47fb('0x13')]&&_0x559fa5[0x0]===_0x182e12[0x0]?_0x3b7d14(_0x559fa5):[];})
// whitespace
_0x3caab9 = _0x2f98fa(
function(_0x182e12){
var _0x559fa5=_0x44788c(_0x182e12,_0x3b5d34);
return _0x559fa5[_0x47fb('0x13')] && _0x559fa5[0x0]===_0x182e12[0x0] ?_0x3b7d14(_0x559fa5) : [];
}
)
// original
_0x3caab9=_0x2f98fa(function(_0x182e12){var _0x559fa5=_0x44788c(_0x182e12,_0x3b5d34);return _0x559fa5[_0x47fb('0x13')]&&_0x559fa5[0x0]===_0x182e12[0x0]?_0x3b7d14(_0x559fa5):[];})
// whitespace
_0x3caab9 = _0x2f98fa(
function(_0x182e12){
var _0x559fa5=_0x44788c(_0x182e12,_0x3b5d34);
return _0x559fa5[_0x47fb('0x13')] && _0x559fa5[0x0]===_0x182e12[0x0] ?_0x3b7d14(_0x559fa5) : [];
}
)
@jnaglick
jnaglick / snippet.js
Created November 19, 2019 18:12 — forked from textita/snippet
const express = require('express')
const expressLayouts = require('express-ejs-layouts');
const path = require('path');
const session = require('express-session')
const bodyParser = require('body-parser')
const cookieParser = require('cookie-parser')
const validator = require('validator');
const db = require('./db');
const rangeCheck = require('range_check');
const app = express()
```
Set ((( ))
; p,
BKS -< Iy :: Uni::IO
)
BKS Iyengar <- [[ o] :0,..]
```
@jnaglick
jnaglick / gist:77aa9d92be34f96ee816
Last active December 19, 2015 06:25
PEG grammar
grammar SrchStrings
rule statement
expression
end
rule expression
or_expression / and_expression / not_expression / literal
end
@jnaglick
jnaglick / gist:095da14ed3cafb7bf320
Created October 10, 2014 20:57
hipchat-ignore.js
var chat_name = 'chat_name'
var username_to_ignore = 'username_to_ignore'
$('[name="' + chat_name + '"]').bind('DOMSubtreeModified', function() {
var user = $('[name="115195_econify@conf.hipchat.com"] .nameBlock:visible').last().text();
if (user == username_to_ignore) {
$('[name="115195_econify@conf.hipchat.com"] .nameBlock:visible').last().remove();
$('[name="' + chat_name + '"] .msgText').last().remove();
console.log('removed txt.');
@jnaglick
jnaglick / stephens_shitlist.md
Last active August 29, 2015 14:01
Stephen's Shitlist

Stephen's Shitlist

  • Obama / Healthcare
  • ERB and HAML templates
  • Matt Newton Metaprogramming
  • T-Mobile
@jnaglick
jnaglick / hipchat-bot.js
Last active August 29, 2015 14:01
HipChat Bot
var userCmds = {
'make me a sandwich': {'type': 'say', action: 'make your own stupid sandwich!'}
};
botFunction = function() {
var m = $('.msgText').last().text();
var msg = null
if (userCmds[m]) {
@jnaglick
jnaglick / configurable.rb
Created April 29, 2014 20:02
metaprogramming wrappers
module ConfigurableMethods
def configure_methods(methods_to_configure) # {:method_name => :method_override_name, ...}
Class.new(self) do
methods_to_configure.each do |method_name, method_override_name|
class_exec do
alias_method method_name, method_override_name
end
end
end
end