Skip to content

Instantly share code, notes, and snippets.

@LevPewPew
LevPewPew / bash_script_ex0.sh
Last active July 25, 2019 07:30
bash scripting example 0, CodeCademy Exercise
#!/bin/bash
# script that takes in a single argument and greets you
# as many times as the number given.
echo "learning how to script yo"
first_greeting="Nice to meet you!"
later_greeting="How are you?"
greeting_occasion=0
@LevPewPew
LevPewPew / bash_script_ex1.sh
Last active July 25, 2019 07:31
bash scripting example 1, CodeCademy Exercise
#!/bin/bash
# script that takes all the files in the source folder,
# then reads the version of those,
# then copies all of those folders to build folder,
# unless it is secretinfo.md. it confirms with you
# the version first with yes or no (1 or 0)
echo "welcome peeps"
firstline=$(head -1 source/changelog.md)
@LevPewPew
LevPewPew / html_form_example0.html
Last active July 25, 2019 07:31
HTML form example 0, CodeCademy Exercise
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet">
<title>Forms Review</title>
</head>
@LevPewPew
LevPewPew / html_form_example1.html
Last active July 25, 2019 07:31
html form example 1, includes form validation, CodeCademy Exercise
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Sign Up Page</title>
<link rel="stylesheet" href="style.css" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Fjalla+One" rel="stylesheet">
</head>
@LevPewPew
LevPewPew / html_form_example2.html
Last active July 25, 2019 07:36
html form example 2, CodeCademy Exercise
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<title>Form a Story</title>
</head>
@LevPewPew
LevPewPew / css_box_example0.css
Created July 25, 2019 22:36
CSS box example 0, CodeCademy Excercise
/* Universal Styles */
body {
background-image: url("https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-6/htmlcss1-img_foodlogo.png");
text-align: center;
font-family: 'Roboto', sans-serif;
font-size: 18px;
}
a {
@LevPewPew
LevPewPew / css_reset_meyerweb.css
Last active July 25, 2019 23:35
CSS default reset from meyerweb.com, with border-box modification.
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
/* Make this a seperate file from your actual
style sheet file
*/
* {
@LevPewPew
LevPewPew / css_box_example1.css
Created July 26, 2019 04:21
CSS box example 1, CodeCademy Exercise
/* there are some other things this sheet doesn't cover like scaling the size of the buttons for smaller screens or making it scrollable instead, but i want to move on now lol
*/
* {
box-sizing: border-box;
}
body {
background-color: #FFF;
margin: 0 auto;
@LevPewPew
LevPewPew / css_box_example2.css
Created July 26, 2019 05:34
CSS box example 2, CodeCademy Exercise
html,
body {
margin: 0;
padding: 0;
}
header {
background-color: #333333;
position: fixed;
width: 100%;
@LevPewPew
LevPewPew / css_grid_example0.css
Created July 30, 2019 11:48
CSS Grid Example 0, CodeCademy Excercise
.container {
display: grid;
max-width: 900px;
position: relative;
margin: auto;
grid-gap: 10px;
grid-template: repeat(12, 1fr) / repeat(6, 1fr);
}
h1,