Skip to content

Instantly share code, notes, and snippets.

James Smith loopj

Block or report user

Report or block loopj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@loopj
loopj / fiddle.css
Last active Dec 2, 2018
AWS Instance Chart
View fiddle.css
html, body {
height: 100%;
padding: 0;
margin: 0;
}
#chart {
height: 100%;
}
View photon.json
{"p":6,"m":[{"s":16384,"l":"m","vc":30,"vv":30,"f":"b","n":"0","v":4,"d":[]},{"s":262144,"l":"m","vc":30,"vv":30,"f":"s","n":"1","v":8,"d":[]},{"s":262144,"l":"m","vc":30,"vv":30,"f":"s","n":"2","v":8,"d":[{"f":"s","n":"1","v":8,"_":""}]},{"s":131072,"l":"m","vc":30,"vv":28,"u":"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","f":"u","n":"1","v":3,"d":[{"f":"s","n":"2","v":8,"_":""}]},{"s":131072,"l":"f","vc":30,"vv":0,"d":[]}]}
View mapping.txt
com.bugsnag.android.AppData -> com.bugsnag.android.a:
com.bugsnag.android.Configuration config -> a
android.content.Context appContext -> b
java.lang.String packageName -> c
java.lang.String appName -> d
java.lang.Integer versionCode -> e
java.lang.String versionName -> f
java.lang.String guessedReleaseStage -> g
38:50:void toStream(com.bugsnag.android.JsonStream) -> a
53:56:java.lang.String getReleaseStage() -> a
@loopj
loopj / clearbit-popover.coffee
Created Apr 21, 2015
Clearbit "lead information" overlays
View clearbit-popover.coffee
#
# Clearbit Lead Information Popover
#
# Dependencies:
# - jQuery
# - Bootstrap (for popovers)
#
# Screenshot:
# http://i.imgur.com/wWmUeGZ.png
#
View test.cpp
// Works
class Something {
public:
void doSomething() {
uint8_t buffer[1024];
memcpy(buffer + bufferPosition, something);
bufferPosition += someSize;
memcpy(buffer + bufferPosition, something);
View Gemfile
source "https://rubygems.org"
gem "bugsnag-api"
@loopj
loopj / Rakefile
Created Oct 10, 2014
Load rake tasks from gems in rails 2.3
View Rakefile
# Rails 2.3 doesn't automatically load rake tasks from required gems
# Add the following code to your app's Rakefile to fix that
gem_tasks = []
Gem.loaded_specs.each do |name, spec|
next if %w{rake rails bundler activesupport rack actionpack actionmailer activerecord activeresource mysql2}.include?(name)
spec.load_paths.each do |load_path|
gem_tasks +=
Dir.glob("#{load_path}/**/tasks/*.rake")
end
end
@loopj
loopj / bugsnag_resque.rb
Last active Aug 29, 2015
Send bugsnag error reports asynchronously using resque, sidekiq, etc
View bugsnag_resque.rb
# Send Bugsnag error reports asynchronously using Resque
# Add this file to config/initializers/bugsnag_resque.rb
# A simple resque job
class BugsnagResqueJob
@queue = "bugsnag"
def self.perform(*args)
Bugsnag::Notification.deliver_exception_payload_without_resque(*args)
end
end
View keybase.md

Keybase proof

I hereby claim:

  • I am loopj on github.
  • I am loopj (https://keybase.io/loopj) on keybase.
  • I have a public key whose fingerprint is 0934 A3F0 929C 1EA3 520B 853E 7C99 463C 46ED 627C

To claim this, I am signing this object:

View gist:8059494
DEC 20, 2013 | 01:25PM EST
Nicole Williams replied:
Hi James,
Apologies about the delay in getting in touch! I’ve done testing on our end and wasn’t able to recreate similar errors with downtime and loading for Cloud.typography. If it’s not too much trouble, would you mind confirming if you’re still having issues?
Thanks in advance.
Kindest Regards,
You can’t perform that action at this time.