- Obama / Healthcare
- ERB and HAML templates
- Matt Newton Metaprogramming
- T-Mobile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) : []; | |
} | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) : []; | |
} | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) : []; | |
} | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar SrchStrings | |
rule statement | |
expression | |
end | |
rule expression | |
or_expression / and_expression / not_expression / literal | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chat_name = 'chat_name' | |
var username_to_ignore = 'username_to_ignore' | |
$('[name="' + chat_name + '"]').bind('DOMSubtreeModified', function() { | |
var user = $('[name="[email protected]"] .nameBlock:visible').last().text(); | |
if (user == username_to_ignore) { | |
$('[name="[email protected]"] .nameBlock:visible').last().remove(); | |
$('[name="' + chat_name + '"] .msgText').last().remove(); | |
console.log('removed txt.'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Flower | |
class Stem | |
module Bits | |
LENGTH = 3 | |
WIDTH = 2 | |
OUTER_COLOR = 8 | |
INNER_COLOR = 8 | |
TOTAL = 21 # TODO compute this | |
end | |
attr_accessor :length, :width, :outer_color, :inner_color |
NewerOlder