$ docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Home Page | |
import React, { Component } from "react"; | |
import ArticleView from "./ArticleView"; | |
import ArticleShare from "./ArticleShare"; | |
import BlogCardCol from "../Blog/BlogCardCol"; | |
import "./Article.scss"; | |
class Article extends Component { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { Link } from "react-router-dom"; | |
import img_side from "../../assets/img/img.jpg"; | |
const BlogCardRow = () => { | |
return ( | |
<div className='blog__card-row'> | |
<figure className='blog__card-row__fig'> | |
<Link href='' className='blog__card-link'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { Link } from "react-router-dom"; | |
import hotpost from "../../assets/img/hot-post-1.jpg"; | |
const BlogCardCol = () => { | |
return ( | |
<div className='blog__card-column'> | |
<figure className='blog__card-fig'> | |
<Link to='/article' className='blog__card-link'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import '../../assets/scss/abstracts/variables'; | |
@import '../../assets/scss/abstracts/mixins'; | |
.blog { | |
padding: 4rem; | |
&__section { | |
padding: 2rem; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Home Page | |
import React, { Component } from "react"; | |
import "./Blog.scss"; | |
import BlogCardCol from "./BlogCardCol"; | |
import BlogCardRow from "./BlogCardRow"; | |
class Blog extends Component { | |
render() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# KEYWORD ARGUMENTS | |
def keyword_function(argument=1, **kwargs): | |
print(argument) | |
print(kwargs) | |
keyword_function(x=1, y=2, z=3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FUNCTION ARGUMENTS | |
def function(named_arg, *args): | |
print(named_arg) | |
print(args) | |
function("arg1", "arg2", "arg3", "arg4") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USEFUL for extending functionality of functions you don't wanna modify | |
# this function takes a function as its parameter | |
def decorator(function): | |
def wrap(): | |
print("Adding Printing Functionality") | |
function() | |
print("Adding Print Functionality") |