- Transpose: transpose an array of two-value maps in a
source
field into an unordered key/value map, optionally storing the result in atarget
instead of overwriting (e.g., from[{"key":"this","value":"that"}]
to{"this" => "that"}
) - Untranspose: transpose an unordered key/value map in a
source
field into an array of two-value maps, optionally storing the result in atarget
instead of overwriting (e.g., from{"this" => "that"}
to[{"key":"this","value":"that"}]
) - Flatten Structure: transforms the deeply nested structure of an event or a
source
field into a flat key-value map by joining nested keys on a configurableseparator
, optionally storing the result in atarget
field
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
Mr. Kilmer, | |
Thanks for your response and pardon my delay in getting back to you as | |
I collected my thoughts. | |
I appreciate you wanting to take thoughtful time for debate and | |
consideration on this very serious topic, but I can't help but be a | |
little underwhelmed at your commitment to improving the situation. | |
You voted 'no' on the Amash amendment. OK, the author of the PATRIOT |
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
# encoding: utf-8 | |
require 'json' | |
# For when someone puts JSON in your JSON | |
# (because MurderingRampage™) | |
class JasonVoorhees | |
def self.load(*args) | |
self.new(JSON).load(*args) | |
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
require 'fiddle' | |
module IAmAHorriblePerson | |
def unset flag | |
value = _wrap self | |
flags = 8.times.map { |i| value[i] }.pack('C8').unpack('Q').first | |
[flags & ~flag].pack('Q').unpack('C8').each_with_index { |n,i|value[i] = n } | |
end | |
def class= k |
Chances are your head's spinning right now. That accusation of bias caught you off guard, you got kind of defensive, and now all hell has broken loose. You're feeling attacked on all sides. You're a good person at heart, and having all these people treat you like the antichrist is pretty upsetting.
You need to say something, but you're probably not in the best headspace to write copy right now. So to help you along, here's my 100% guaranteed-or-you-money-back scandal defusement apology template:
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
0</* :hello | |
@ECHO Hello, batch! | |
@cscript /nologo /E:jscript %~f0 %* | |
@goto :EOF | |
*/0; | |
WScript.Echo('Hello, jscript!'); |