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
#test.py | |
class Test: | |
def __init__(self, members): | |
self.members = members | |
def printMembers(self): | |
print('Printing members of Test class...') | |
for member in self.members: print('\t%s ' % member) | |
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
#test.py | |
class Test: | |
def __init__(self, members): | |
self.members = members | |
def printMembers(self): | |
print('Printing members of Test class...') | |
for member in self.members: print('\t%s ' % member) | |
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 'json' | |
require 'logger' | |
LOGGER = Logger.new('list.log') | |
def get_data(url) | |
output = %x(curl -ss "#{url}") | |
output_hash = JSON.parse(output) | |
return output_hash | |
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
<tbody> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th>Client</th> | |
<th>Check</th> | |
<th>Output</th> | |
<th>Occurrences</th> | |
<th>Datacenter</th> |
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
DECLARE FundingId INT | |
@FundraiserID = 12345 | |
SELECT F.FundraiserName AS CharityName | |
,FRS.FundraiserRevenueStreamName AS AppealName | |
,CASE | |
WHEN EC.EventContributionId IS NULL THEN 'Direct Donations' | |
ELSE 'Fundraising Pages' | |
END AS DonationCategory | |
,CASE D.DonationSourceId |
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 'tiny_tds' | |
require 'active_record' | |
require 'activerecord-sqlserver-adapter' | |
require 'logger' | |
ActiveRecord::Base.pluralize_table_names = false | |
ActiveRecord::Base.establish_connection( |
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
def aws_s3_config | |
@endpoint_region == 'us-east-1' ? @endpoint_region = 's3.amazonaws.com' : @endpoint_region = 's3-'+@endpoint_region+'.amazonaws.com' | |
@logger.info("Registering s3 output", :bucket => @bucket, :endpoint_region => @endpoint_region) | |
AWS.config( | |
:access_key_id => @access_key_id, | |
:secret_access_key => @secret_access_key, | |
:s3_endpoint => @endpoint_region |
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
body: { | |
"query"=> { | |
"filtered"=> { | |
"filter"=> { | |
"bool"=> { | |
"must"=> [ | |
{"term"=> {"status"=> 500}}, | |
{"term"=> {"type"=> "iis6"}}, | |
"range"=> { | |
"@timestamp"=> { |
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
Hi, | |
Hoping that someone could help.... | |
This is my query: | |
body: { | |
"query"=> { | |
"filtered"=> { | |
"filter"=> { |
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
{ | |
"query"=> { | |
"filtered"=> { | |
"filter"=> { | |
"bool"=> { | |
"must"=> [ | |
{"term"=> {status=> 500}}, | |
{"term"=> {"type"=> "iis6"}}, | |
"range"=> { | |
"@timestamp"=> { |
NewerOlder