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
const { post } = this.props; | |
if(!post){ | |
return <div></div>; | |
} | |
To deal with undefined props |
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 set-text-color($color){ | |
@if (lightness($color) > 50){ | |
@return #000; | |
} @else { | |
@return #fff; | |
} | |
} |
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
@mixin add-border($size, $color, $position){ | |
@if $position == 'all'{ | |
border: $size solid $color; | |
} @else if $position == 'top' { | |
border-top: $size solid $color; | |
} @else if $position == 'bottom' { | |
border-bottom: $size solid $color; | |
} @else if $position == 'right' { | |
border-right: $size solid $color; | |
} @else if $position == 'left' { |
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
display: flex; | |
justify-content:center; | |
align-items:center; |
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
die('Query Failed' . mysqli_error($connection)); |
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
<?php echo substr(strip_tags($post->post_content), 0, 400); ?> |
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
.header | |
.logo | |
.links | |
nav | |
ul | |
li abc | |
li 123 | |
@mixin size($w, $h: $w) { | |
height: $h; |
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
{"lastUpload":"2018-02-28T14:34:43.924Z","extensionVersion":"v2.8.7"} |
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 logWord(word){ | |
setTimeout(function() { | |
console.log(word) | |
}, Math.floor(Math.random() * 100) + 1 | |
// return value between 1 ~ 100 | |
) | |
} | |
function logAll(){ | |
logWord("A") |
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
const users = [ | |
{ | |
id: 1, | |
name: 'Allison', | |
age: 4, | |
gender: 'female' | |
}, | |
{ | |
id: 2, | |
name: 'Derek', |
OlderNewer