Skip to content

Instantly share code, notes, and snippets.

View gregmatthewcrossley's full-sized avatar

Greg Matthew Crossley gregmatthewcrossley

View GitHub Profile
@gregmatthewcrossley
gregmatthewcrossley / webflow-code-reformatter-and-highlighting-footer.html
Last active November 11, 2024 18:47
Add this to the footer of your Webflow site to add proper code hightlighting to your blog posts, pages, etc.
{
"id": "evt_1G5vYCGm1uh2zPKxsb87bJV3",
"object": "event",
"api_version": "2019-12-03",
"created": 1580223624,
"data": {
"object": {
"id": "cs_live_sptnxxxxxxx",
"object": "checkout.session",
"billing_address_collection": null,
Stripe::Checkout::Session.create(
{:payment_method_types=>["card"],
:success_url=>
"http://localhost:3000/storefronts/16/transactions?payment_succeeded_on=1572283523&wait_for_confirmation_of_cc_payment_success_for_order=269",
:cancel_url=>"http://localhost:3000/storefronts/16/transactions",
:mode=>"payment",
:customer=>"cus_G4lUliJ4PEnJvq",
:client_reference_id=>"V410OrderTransaction::Payment 240",
:line_items=>
[{:name=>"Beginner Trading (Meredeth Barabich)",
@gregmatthewcrossley
gregmatthewcrossley / scout-assessment-postman-project.json
Created September 22, 2019 02:01
Greg's suggested update of the ScoutRFP Coding Assessment Postman Project
{
"info": {
"_postman_id": "51c6dce1-3634-4d5a-b038-a8ffb11261fd",
"name": "RoR Interview",
"description": "Set of actions prepared for RoR Backend candidates to complete task",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Tasks",
@gregmatthewcrossley
gregmatthewcrossley / new_session.rb
Created September 18, 2019 14:57
New Stripe Session using Setup Mode
Stripe::Checkout::Session.create {
:payment_method_types=>["card"],
:client_reference_id=>"V410OrderTransaction::Payment 168",
:line_items=>
[{:name=>"Hat (Waitlist Addition for Nadine Villarreal)",
:description=>"Special Deluxe Hat - Size: Large",
:amount=>0,
:currency=>"CAD",
:quantity=>1}],
:success_url=>