Skip to content

Instantly share code, notes, and snippets.

@josephsofaer
josephsofaer / jira.json
Last active February 19, 2021 21:57
Jira OpenAPI spec
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.1",
"info": {
"title": "The Jira Cloud platform REST API",
"description": "Jira Cloud platform REST API documentation",
"termsOfService": "http://atlassian.com/terms/",
"contact": { "email": "ecosystem@atlassian.com" },
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
@josephsofaer
josephsofaer / states.json
Created June 22, 2020 22:06
JSON List of US States
[
"Alabama",
"Alaska",
"Arizona",
"Arkansas",
"California",
"Colorado",
"Connecticut",
"Delaware",
"Florida",
@josephsofaer
josephsofaer / visits.json
Last active January 11, 2021 23:17
Joseph's Visits
[
{
"name": "Tea House",
"lat": "37.7993",
"long": "-122.4437"
},
{
"name": "Arizmendi Bakery",
"lat": "37.752576",
"long": "-122.420922"
@josephsofaer
josephsofaer / Empty CVV bug
Created January 30, 2013 22:46
Gist to reproduce issue when creating a transaction with a vault token and a cvv value
customer_response = Braintree::Customer.create(
:id => "12345",
:first_name => "Joseph",
:last_name => "Blank CVV Test",
:credit_card => {
:number => "4005519200000004",
:expiration_date => "04/2015",
}
)
@josephsofaer
josephsofaer / CanvasMethodOverride.rb
Created March 2, 2011 19:31
Rack Middleware to change MethodOverride to make RESTful routes work for Facebook's "POST for Canvas"
# New Rack::MethodOverride
# This deals with the issue of POST on Canvas:
# http://developers.facebook.com/docs/canvas/post/
# It re-writes POST requests to GET excluding ones
# with params: is_ajax = "true" or "authenticity_token"
#
# Put this file in your lib folder and add: -- require "CanvasMethodOverride" -- to environments.rb
require 'rack'