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
javascript:var errors = jQuery('.console-output > span[style*="CD0000"]').clone(); jQuery('.console-output').empty(); jQuery('.console-output').append(errors); jQuery('.console-output > span').append("<br/>"); |
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
# Show the total faults that have occurred in production only between <start> & <stop> | |
# - sorted by: fault with most occurrences in the time period | |
# Last week | |
# https://app.honeybadger.io/projects/42287/faults/top?resolved=f&environment=production&start=2015-07-23&stop=2015-07-30&ignored=f&auth_token=<auth_token> | |
{ | |
"project_id": 1717, | |
"faults": [ | |
{ |
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 Simulado | |
SIMULADO = Net::HTTP.new('localhost', 7001) | |
JSON_HEADERS = {'Content-Type' => 'application/json', 'Accept' => 'application/json'} | |
def mock(response) | |
SIMULADO.post('/syncMock', response.to_json, JSON_HEADERS) | |
end | |
def last_request(method, path) | |
headers = JSON_HEADERS.merge('method' => method, 'path' => path) |
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
get_previous_thirty_days_labels_from = (now, callback)-> | |
previous_days = [] | |
for days_to_subtract in [0..29] | |
previous_days.unshift moment(now).subtract(days_to_subtract, 'day').format("DD") | |
callback(previous_days) |
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
{ | |
[ | |
{ "date": "2012-06-13" }, | |
{ "date": "2012-07-20" }, | |
{ "date": "2012-08-20" }, | |
{ "date": "2012-09-20" } | |
] | |
} |