Skip to content

Instantly share code, notes, and snippets.

View jessicard's full-sized avatar
🍩
donut

Jessica Card jessicard

🍩
donut
View GitHub Profile
@jessicard
jessicard / keybase.md
Created March 6, 2014 21:47
keybase.md

Keybase proof

I hereby claim:

  • I am jessicard on github.
  • I am jessicard (https://keybase.io/jessicard) on keybase.
  • I have a public key whose fingerprint is 0194 252F 9116 C0CF 7ACC 2F5C 5835 5F4E 8B29 9BA2

To claim this, I am signing this object:

<%= form_tag charges_path do %>
<article>
<label class="amount">
<span>Amount: $5.00</span>
</label>
</article>
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="<%= Rails.configuration.stripe[:publishable_key] %>"
data-description="A month's subscription"
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
ENV["NOTIFICATION_CREDENTIAL_PUBLIC_KEY"] = ENV["NOTIFICATION_CREDENTIAL_PUBLIC_KEY"].gsub("\\n", "\n")
require 'rspec/rails'
require 'rspec/autorun'
require 'webmock/rspec'
require 'sidekiq/testing'
# Requires supporting ruby files with custom matchers and macros, etc,
@jessicard
jessicard / bugsnag-content-scripts.js
Last active August 29, 2015 14:10
Content Scripts
// In your extension's index.html you'll also need to include Bugsnag and disable auto-notification:
// <script src="bugsnag-2.min.js" data-apiKey="your-api-key" data-autoNotify="false">
// You can then add try/catch blocks in your content scripts, and pass any errors back up to your extension:
// Inside your content script
try {
// Some code in your content scripts
} catch(e) {
var exceptionObj = {stack: e.stack, message: e.message, name: e.name};
@jessicard
jessicard / _.md
Last active August 29, 2015 14:17
d3_test
@jessicard
jessicard / bugsnag-2.1.0.min.js
Last active September 28, 2015 21:59
Sourcemaps Example
!function(a){var b=window.Bugsnag;window.Bugsnag=a(window,document,navigator,b)}(function(a,b,c,d){function e(a,b){try{return"function"!=typeof a?a:(a.bugsnag||(a.bugsnag=function(c){if(b&&b.eventHandler&&(u=c),!w)return a.apply(this,arguments);try{return a.apply(this,arguments)}catch(d){throw k("autoNotify",!0)&&(v.notifyException(d),r()),d}},a.bugsnag.bugsnag=a.bugsnag),a.bugsnag)}catch(c){return a}}function f(b){var c=a.console;void 0!==c&&void 0!==c.log&&c.log("[Bugsnag] "+b)}function g(a,b){var c=[];for(var d in a)if(a.hasOwnProperty(d)&&null!=d&&null!=a[d]){var e=b?b+"["+d+"]":d,f=a[d];c.push("object"==typeof f?g(f,e):encodeURIComponent(e)+"="+encodeURIComponent(f))}return c.join("&")}function h(a,b){if(null==b)return a;a=a||{};for(var c in b)if(b.hasOwnProperty(c))try{a[c]=b[c].constructor===Object?h(a[c],b[c]):b[c]}catch(d){a[c]=b[c]}return a}function i(a,b){var c=new Image;c.src=a+"?"+g(b)+"&ct=img&cb="+(new Date).getTime()}function j(a){for(var b={},c=/^data\-([\w\-]+)$/,d=a.attributes,e=0;e<d.lengt
touch ~/Desktop/kittens.txt; echo "just kidding, puppies for life" > ~/Desktop/kittens.txt
ln ~/Desktop/kittens.txt ~/Desktop/hard
ln -s ~/Desktop/kittens.txt ~/Desktop/soft
ls -l ~/Desktop
echo "knuckle tat: dawg life" > hard