Skip to content

Instantly share code, notes, and snippets.

View ryanapfel's full-sized avatar
🏠
Working from home

Ryan Apfel ryanapfel

🏠
Working from home
View GitHub Profile
@ryanapfel
ryanapfel / roulette.py
Created November 6, 2018 23:52
Roulette Python
#!/usr/bin/env python
rollcount = 0
print("Welcome to Roulette!")
print("You start with a budget of 500")
while rollcount < 100:
import random
landon = random.randint(0, 36)
LOB = []
budget = 500
valnum = 0
@ryanapfel
ryanapfel / README.md
Created February 14, 2018 19:03 — forked from jonathantneal/README.md
Fluid Aspect: A Sass mixin for creating intrinsic ratios

Fluid Aspect

fluid-aspect is a Sass mixin for creating intrinsic ratios in CSS. Intrinsic ratios allow elements to fill the width of their containing block and resize on the fly while maintaining their aspect ratio.

@include fluid-aspect($ratio, [$target]);
  • $ratio: An aspect ratio represented as two numbers separated by a space. Defaults to 1:1
  • $target: A selector targeting the element to be made fluid. Defaults to "> :first-child"