Skip to content

Instantly share code, notes, and snippets.

View gabrielbissey's full-sized avatar

gabrielbissey

  • BESL
  • Colorado Springs, Colorado
View GitHub Profile
easy_string = """\nA neutron star is the result of a __1__. __1__e are the
cataclysmic deaths of __2__ of greater mass than our own. Another result
of __1__e are __3__. __3__ come from __2__ of even greater mass than those
that create neutron stars. Neutron stars can be pushed to __1__ if too much
__4__ falls into them. """
easy_answers = ['supernova', 'stars', 'black holes', 'mass']
easy_blanks = ['__1__','__2__','__3__','__4__']
import string
easy_string = ("\nA neutron star is the result of a __1__. __1__e are the cataclysmic deaths of __2__ greater than the size of our own.\n" \
"Another result of __1__ are __3__. __3__ come from __2__ of even greater mass than those that create neutron stars.\n" \
"Neutron stars can be pushed to __1__ if too much __4__ falls into them.")
easy_answers = ['supernova', 'stars', 'black holes', 'mass']
easy_blanks = ['__1__','__2__','__3__','__4__']
medium_string = ("\nCaesar's De Bello Gallico\n" \
"\nGallia __1__ omnis divisa in partes tres, quarum unam incolunt __2__, aliam __3__, tertiam qui ipsorum lingua __4__, nostra __5__ appellantur.")
@gabrielbissey
gabrielbissey / gist:a5181d8bc8983723a8dcd73325a8c865
Created February 22, 2018 22:22
Simple HTML todo list frame
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset="utf-8"/>
<title>todo-list</title>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body class="body">
<h1 id="h1">Todo list</h1>
<p><input type='text' id='inItemText'/></p>
@gabrielbissey
gabrielbissey / daysbetweendates
Last active February 7, 2018 21:52
Calculates number of days between input dates *DOES NOT ACCOUNT FOR LEAP DAYS YET*
def number_of_days(year, month, day):
count = 0
count += (year * 360)
count += (month * 30)
count += day
return count
def days_between_dates(year1, month1, day1, year2, month2, day2):
date1 = number_of_days(year1, month1, day1)
date2 = number_of_days(year2, month2, day2)
from random import randint
def random_verb():
random_num = randint(0, 1)
if random_num == 0:
return "run"
else:
return "kayak"
def random_noun():
import time
import webbrowser
import random
#Feel Good Inc.
a = "https://www.youtube.com/watch?v=NxxjLD2pmlk"
#When You Were Young
b = "https://www.youtube.com/watch?v=0k-v9cp9Fxc"
#Burnin' For You
c = "https://www.youtube.com/watch?v=ipqqEFoJPL4"