This file contains hidden or 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, { Component, Fragment } from "react"; | |
| import styled, { css } from "styled-components"; | |
| const StepDot = styled.div` | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background-color: #d4d3d1; | |
| width: 20; | |
| height: 20; |
This file contains hidden or 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 ProfilePlaceholder from "../../assets/profile-placeholder.png"; | |
| const Avatar = ({ src = ProfilePlaceholder, size, circle }) => { | |
| return ( | |
| <img | |
| src={src} | |
| onError={e => { | |
| e.target.onerror = null; | |
| e.target.src = ProfilePlaceholder; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>Page Title</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" type="text/css" media="screen" href="styles.css" /> | |
| <script src="main.js"></script> |
This file contains hidden or 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
| { | |
| "extends": ["airbnb", "prettier", "prettier/react"], | |
| "parser": "babel-eslint", | |
| "rules": { | |
| "react/jsx-filename-extension": [ | |
| "error", | |
| { "extensions": [".js", ".jsx"] } | |
| ], | |
| "no-underscore-dangle": [2, { "allowAfterThis": true }], | |
| "prettier/prettier": [ |
This file contains hidden or 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
| // Act on scroll condition | |
| var lastScrollTop = 0; | |
| $(window).on('scroll', function() { | |
| scrollPosition = $(this).scrollTop(); | |
| if(scrollPosition < lastScrollTop) { // Do something on scroll up } | |
| else { // Do something on scroll down } | |
| lastScrollTop = scrollPosition; | |
| }); |
This file contains hidden or 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
| { | |
| "exclude": [ | |
| ".git/**", | |
| "node_modules/**", | |
| "bower_components/**" | |
| ], | |
| "remove-empty-rulesets": true, | |
| "always-semicolon": true, | |
| "color-case": "upper", | |
| "block-indent": " ", |
This file contains hidden or 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
| Find: | |
| lsof -i :3000 | |
| Kill: | |
| kill -9 <PID> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html ng-app="people"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>FrontEnd Test</title> | |
| </head> | |
| <body ng-controller="PeopleController as people"> | |
| <div> | |
| <table border="1"> | |
| <tr> |
This file contains hidden or 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
| <h2> | |
| 1. The Period | |
| </h2> | |
| <blockquote> | |
| It was the best of times,<br>it was the worst of times,<br> it was the age of | |
| wisdom,<br> it was the age of foolishness,<br> it was the epoch of belief,<br> it | |
| was the epoch of incredulity,<br> it was the season of Light,<br> it was the | |
| season of Darkness,<br> it was the spring of hope,<br> it was the winter of | |
| despair, | |
| </blockquote> |
This file contains hidden or 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
| First you should stop your apache server: | |
| sudo /etc/init.d/apache2 stop | |
| Then stop mysql: | |
| sudo /etc/init.d/mysql stop | |
| sudo /etc/init.d/proftpd stopv |
NewerOlder