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
Hello, | |
I have followed the instructions for installing this widget and wish to use this to display my data which would be over 1 hour at 1 minute intervals. The graph isn't updating and the average value never changes. | |
When I do a console.log to see what the variables dataset contain, I can see that there are only two elements in this array with values that bare no resemblance to my dataset. I have a dataset that contains 360 datapoints, 6 for every minute so I would expect to see the average being sum total of datapoints/360 and the sparklines chart to show those 360 datapoints. Is that the way the coffeescript code is supposed to work? Please correct me if I'm wrong. | |
I have the following timer.coffee file:- | |
`class Dashing.Timer extends Dashing.Widget |
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"=> { |
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
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
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
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
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
<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
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
#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) | |