I hereby claim:
- I am crisfole on github.
- I am crisfole (https://keybase.io/crisfole) on keybase.
- I have a public key whose fingerprint is 6885 3746 B0D3 05BC D136 F0B2 7001 B279 1592 E9A6
To claim this, I am signing this object:
var accessToken = "READ_ACCESS_TOKEN"; | |
function fetchPage(accessToken, cb, page) { | |
if (page == null) { | |
page = 1; | |
} | |
var url = "https://api.rollbar.com/api/1/items/?access_token={0}&page={1}&status=active", | |
items = []; | |
$.ajax({ |
using System; | |
using System.Windows.Forms; | |
using Valetude.Rollbar; | |
namespace MyCompany.Whatever | |
{ | |
internal static class Program | |
{ | |
/// <summary> | |
/// The main entry point for the application. |
class MyClass | |
attr_reader :a:, :b | |
def initialize(a, b) | |
@a, @b = a,b | |
end | |
def process | |
rescue => e | |
rollbar.error(e) |
class DemoController < ApplicationController | |
around_action :rollbar_scope_setup | |
private | |
def rollbar_scope_setup | |
Rollbar.scoped(setup_your_custom_stuff_here) { yield } | |
end | |
end |
require 'rollbar' | |
Rollbar.configure do |config| | |
config.access_token = "MY ACCESS TOKEN" | |
config.enabled = should_i_send_to_rollbar? | |
end | |
begin | |
run_my_script ARGV | |
rescue e | |
Rollbar.error e |
source 'https://rubygems.org' | |
gem 'cuba' | |
gem 'rollbar' |
require 'rollbar' | |
class DeepException < StandardError | |
def initialize(msg) | |
super "'#{msg}' from the deep" | |
end | |
end | |
class ShallowException < StandardError | |
def initialize(msg) |
<?php | |
function isEnabled() { | |
return SHOULD_BE_ENABLED; | |
} | |
function reportMessage(msg) { | |
if (isEnabled()) { | |
Rollbar::report_message(msg); | |
} |
function transform(payload) { | |
if (payload.data.body.trace) { | |
payload.data.body.trace.frames.forEach(function(frame) { | |
frame.orig_filename = frame.filename; | |
frame.filename = "www.mysite.com/js/" + frame.filename.split("/").pop(); | |
}); | |
} | |
payload.data.client[is_ios ? "iOS" : "javascript"] = "Cordova"; | |
} |
I hereby claim:
To claim this, I am signing this object: