Skip to content

Instantly share code, notes, and snippets.

View csrobinson86's full-sized avatar
🖥️
Javascript and or Ruby

Casey Robinson csrobinson86

🖥️
Javascript and or Ruby
View GitHub Profile
@csrobinson86
csrobinson86 / Accessible
Created April 23, 2024 09:33
Accessible Code Snippets
// Adding Aria Label - Linking Specific Content
<a href="#special-category-children-privacy" aria-label="Jump to section on Processing Special Category Data and Children’s Privacy">Processing Special Category Data and Children’s Privacy</a>
// Adding Aria Label - Phone Number
<a href="tel:+18888992253" aria-label="Call us at one eight eight eight eight nine nine two two five three">1-888-899-2253</a>
// Adding Aria Label - Email
<a href="mailto:sbinfo@stbaldricks.org" aria-label="Email St. Baldrick\'s Foundation">sbinfo@stbaldricks.org</a>
@csrobinson86
csrobinson86 / bt.js
Last active December 20, 2022 18:48
AMEX
/* This is our form submit function we utilize to process creditcard donations. Inside of the try/catch we make two calls
to two braintree methods .create and .request
1. submit() function in the try/catch calls the two braintree methods .create / .request
2. create() method is called inside braintreeClient promise and we pass in window.gon.braintree_token as the parameter
required by the create method for the authorization property
3. After create() function returns the value we pass that value as a parameter into braintreeCCRequest which calls the braintree
request method.
@csrobinson86
csrobinson86 / declaration-order.css
Last active June 21, 2019 00:19
Declaration Order
.block {
/* BOX-MODEL */
margin: 0;
padding: 0;
width: 0;
height: 0;
display: block;
/* POSITIONING */
position: absolute;
@csrobinson86
csrobinson86 / Ruby Syntax notes
Last active August 29, 2015 13:58
Ruby Syntax notes
# Primitive Data Types
Strings and numbers are known as primitive data types. Primitive data types are basically the smallest building blocks for Ruby programs.
Primitive data types define the characteristics of values.
#Boolean
Booleans are a primitive data type, just like Strings and Numbers. Booleans can have two values: true or false