This file contains 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
<?xml version="1.0" encoding="UTF-8" ?> | |
<ExecutionLogModel> | |
<LogEvent level="INFO" time="2018-07-10T04:12:26Z" shapename="initializing..." shapetype="initializing..." shapelabel="" shapeextendedinfo=""> | |
<Message>Executing Process Performance Management- Past(Child)-STAGE (Continuation f_0_0)</Message> | |
</LogEvent> | |
<LogEvent level="INFO" time="2018-07-10T04:12:26Z" shapename="shape10" shapetype="Try/Catch" shapelabel="" shapeextendedinfo=""> | |
<Message>Executing Try/Catch Shape continuation as f_0_0 with 1 document(s).</Message> | |
</LogEvent> | |
<LogEvent level="INFO" time="2018-07-10T04:12:26Z" shapename="shape10" shapetype="Try/Catch" shapelabel="" shapeextendedinfo=""> | |
<Message>Shape executed successfully in 82 ms.</Message> |
This file contains 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
namespace "queue" do | |
desc "print out contents of checkpoint file (specify path)" | |
task "print-checkpoint", [:ckpfile] do |t, args| | |
bin = IO.read(args.ckpfile, mode: "rb") | |
# + Short.BYTES // version 16 bits | |
# + Integer.BYTES // pageNum 32 bits | |
# + Integer.BYTES // firstUnackedPageNum 32 bits | |
# + Long.BYTES // firstUnackedSeqNum 64 bits | |
# + Long.BYTES // minSeqNum 64 bits | |
# + Integer.BYTES // eventCount 32 bits |
This file contains 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
def enqueue(event) | |
q1 = SizedQueue.new(1) | |
tt = Thread.new(q1) do |q| | |
sleep 5 | |
q.push 42 | |
end | |
wt = Thread.new(q1) do |q| | |
@otherqueue.push event |
This file contains 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 "logstash/devutils/rspec/spec_helper" | |
require "logstash/filters/translate" | |
describe LogStash::Filters::Translate do | |
let(:config) { Hash.new } | |
subject { described_class.new(config) } | |
describe "exact translation" do |
This file contains 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
h = {description: 'blah', id: '1046d670-e9ff-012f-5d84-38f6b11b6fe1', images: [1,2,3], name: 'bob', owner_id: '1005bc90-e9ff-012f-5d84-38f6b11b6fe1', creating_user_id: '1005bb10-e9ff-012f-5d84-38f6b11b6fe1', summary: 'aasdasd', tags: [1,2,3], upc: 333222} | |
=> {:description=>"blah", :id=>"1046d670-e9ff-012f-5d84-38f6b11b6fe1", :images=>[1, 2, 3], :name=>"bob", :owner_id=>"1005bc90-e9ff-012f-5d84-38f6b11b6fe1", :creating_user_id=>"1005bb10-e9ff-012f-5d84-38f6b11b6fe1", :summary=>"aasdasd", :tags=>[1, 2, 3], :upc=>333222} | |
1.9.3p194 :002 > h[:digital_commodities] = [{asset_id: '1046e450-e9ff-012f-5d84-38f6b11b6fe1', commodity_id: '10552d90-e9ff-012f-5d84-38f6b11b6fe1', from_warehouse: false, meta_data_changed: false, meta_data: {}, tags: []}] | |
=> [{:asset_id=>"1046e450-e9ff-012f-5d84-38f6b11b6fe1", :commodity_id=>"10552d90-e9ff-012f-5d84-38f6b11b6fe1", :from_warehouse=>false, :meta_data_changed=>false, :meta_data=>{}, :tags=>[]}] | |
1.9.3p194 :003 > h[:public_copy_missing] = [1,2,3,4] |
This file contains 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
Regards the building of collections of documents for entity reporting. | |
Prerequisites: | |
Import of entities | |
Import of products | |
Import of users | |
Actions: | |
Import of historic sales | |
Import of joining/leaving mailinglists |
This file contains 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 WeightedMarkerClusters; | |
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
(function($, w) {}, WeightedMarkerClusters = (function() { | |
function WeightedMarkerClusters(jq_element, options) { | |
this.ele = jq_element; | |
this.opts = options; | |
this.markerCluster = null; | |
this.entity_id = this.ele.parent().find(".context").eq(0).data("entityId"); | |
this.map = this.ele.find(this.opts.map_selector).eq(0); | |
this.map.gmap3({ |
This file contains 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 RoleExtender | |
def new properties = {} | |
include_roles nil, properties | |
end | |
private | |
def include_roles roles, properties | |
instance = allocate() |
This file contains 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
irb(main):067:0> s2 = Supervisor2.new | |
=> #<Supervisor2:0x5fbdfdcf> | |
irb(main):068:0> s2.run | |
sleeping for 30 | |
=> [#<Thread:0x156b88f5 run>, #<Thread:0x3bf9ce3e run>] | |
irb(main):069:0> s2.stop | |
=> [#<Thread:0x156b88f5 dead>, #<Thread:0x3bf9ce3e run>] | |
irb(main):070:0> s3 = Supervisor3.new | |
=> #<Supervisor3:0x71def8f8> | |
irb(main):071:0> s3.run |
This file contains 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 LogTracker | |
def filter(&block) | |
cache.detect(&block) | |
end | |
def cache() | |
@cache ||= [] | |
end | |
def <<(hash) |
NewerOlder