Skip to content

Instantly share code, notes, and snippets.

@Suzangithub
Suzangithub / index.html
Created April 27, 2020 14:40
MrCafe Homepage
<!DOCTYPE html>
<html>
<head>
<link href="
<link
href="https://fonts.googleapis.com/css2?family=Work+Sans&display=swap"
rel="stylesheet"
/>
<link href="application.css" rel="stylesheet" type="text/css" />
@Suzangithub
Suzangithub / Python exercises
Last active October 17, 2023 04:37
Python
SYNTAX
print ("Hello World")
# This is a comment
VARIABLE
carname = "Volvo"
x=5
y = 10
print(x+y)
@Suzangithub
Suzangithub / React: Render State in the User Interface
Created October 24, 2018 03:38
React: Render State in the User Interface
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
name: 'freeCodeCamp'
}
}
render() {
return (
<div>
@Suzangithub
Suzangithub / ES6: Declare a Read-Only Variable with the const Keyword
Created October 17, 2018 08:17
ES6: Declare a Read-Only Variable with the const Keyword
function printManyTimes(str) {
"use strict";
// change code below this line
const SENTENCE = str + " is cool!";
for(let i = 0; i < str.length; i+=2) {
console.log(SENTENCE);
}
@Suzangithub
Suzangithub / CSS Grid: Create Flexible Layouts Using auto-fit
Created October 16, 2018 09:36
CSS Grid: Create Flexible Layouts Using auto-fit
<style>
.item1{background:LightSkyBlue;}
.item2{background:LightSalmon;}
.item3{background:PaleTurquoise;}
.item4{background:LightPink;}
.item5{background:PaleGreen;}
.container {
font-size: 40px;
min-height: 100px;
@Suzangithub
Suzangithub / CSS Grid: Use grid-column to Control Spacing
Created October 16, 2018 09:21
CSS Grid: Use grid-column to Control Spacing
<style>
.item1{background:LightSkyBlue;}
.item2{background:LightSalmon;}
.item3{background:PaleTurquoise;}
.item4{background:LightPink;}
.item5 {
background: PaleGreen;
/* add your code below this line */
grid-column: 2 / 4;
@Suzangithub
Suzangithub / CSS Flexbox: Use the flex-wrap Property to Wrap a Row or Column
Created October 16, 2018 09:04
CSS Flexbox: Use the flex-wrap Property to Wrap a Row or Column
<style>
#box-container {
background: gray;
display: flex;
height: 100%;
flex-wrap: nowrap;
}
#box-1 {
background-color: dodgerblue;
width: 25%;
@Suzangithub
Suzangithub / CSS Flexbox: Align Elements Using the justify-content Property
Created October 16, 2018 08:59
CSS Flexbox: Align Elements Using the justify-content Property
<style>
#box-container {
background: gray;
display: flex;
height: 500px;
justify-content: center;
}
#box-1 {
background-color: dodgerblue;
width: 25%;
@Suzangithub
Suzangithub / CSS Flexbox: Add Flex Superpowers to the Tweet Embed
Created October 16, 2018 08:55
CSS Flexbox: Add Flex Superpowers to the Tweet Embed
<style>
body {
font-family: Arial, sans-serif;
}
header {
display: flex;
}
header .profile-thumbnail {
width: 50px;
height: 50px;
@Suzangithub
Suzangithub / Applied Accessibility: Add an Accessible Date Picker
Created October 16, 2018 08:04
Applied Accessibility: Add an Accessible Date Picker
<body>
<header>
<h1>Tournaments</h1>
</header>
<main>
<section>
<h2>Mortal Kombat Tournament Survey</h2>
<form>
<p>Tell us the best date for the competition</p>
<label for="pickdate">Preferred Date:</label>