Skip to content

Instantly share code, notes, and snippets.

View austinaryain's full-sized avatar

Austin Aryain austinaryain

View GitHub Profile

Step 1. Take the overall length of the space between 2 newel posts and subtract 4”.

  • For this example, let’s say the space = 90”.
    • (So the calculation is 90-4=86”)

[FYI, 4” is the maximum allowed space between balusters.]

Step 2. Take the remaining length of the space after subtracting 4” and divide that number by the sum of 4+(the baluster width).

  • So if your balusters are 1.5” thick, that sum will be 4+1.5=5.5.
  • So the calculation is 86/5.5=15.66.
@austinaryain
austinaryain / escape-button.txt
Created April 2, 2019 01:32
Escape Button with Image
<button id="get-away"></button>
<style>
#get-away {
background: url('https://www.findingourvoices.net/uploads/1/2/4/3/124367089/escape_2_orig.png') no-repeat center;
width: 100%;
padding: 50px;
border: none;
shadow: none;
}
@austinaryain
austinaryain / INSTRUCTIONS.txt
Last active March 25, 2019 14:16
This is the code to past into the Embed Code element on a Weebly site to add an escape button.
If you need this to work on just one page follow these steps:
On the page you need the button scroll to the bottom of the page in the Weebly Editor and drag an 'Embed Code' element onto the page all the way at the bottom.
Then click on the element and click Edit Custom Html and paste all of the code from the "escape-button-weebly.txt" into the custom HTML box and publish the site.
If you want this to be a site-wide button and automatically appear on every page for your site you can use this method:
In the Weebly editor go to the Settings panel and click SEO.
Then copy and paste all of the code from the "escape-button-weebly.txt" into the 'Footer Code' box UNDER any other code you already have in there.
@austinaryain
austinaryain / HappyBirthday.cobc
Created January 1, 2019 21:13
Happy Birthday
IDENTIFICATION DIVISION.
PROGRAM-ID. LancesBirthday.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 TODAY.
02 YYYY PIC 9(4).
02 MMDD PIC 9(4).
01 LANCEBDAY.
02 YYYY PIC 9(4).
@austinaryain
austinaryain / lister.py
Last active July 9, 2018 03:36
Simple Example from a Python Facebook group question
from random import randint
def move_item(destination = [], *args):
# Get the item to move
item = allteams[randint(0, len(allteams) - 1)]
# Append the item to the new list while popping it out of the old list
destination.append( allteams.pop(allteams.index(item)))
# See the lists populate
print(list1)
print(list2)
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Autogenerated VS/MD solution and project files
ExportedObj/
*.csproj