Skip to content

Instantly share code, notes, and snippets.

View vikbert's full-sized avatar

Xun Zhou vikbert

View GitHub Profile
@vikbert
vikbert / README_template.md
Last active November 24, 2020 12:27
README.md template
logo

Vuepress starter

A quick starter for vuepress sites

@vikbert
vikbert / editorconfig.md
Created November 20, 2020 14:47
editorconfig.md

php editorconfig

--------------------------------------

root = true

[*] trim_trailing_whitespace = true

<section class="main">
<input id="toggle-all" class="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as completed</label>
</section>
<footer class="footer">
<span class="todo-count">10</span>
<ul class="filters">
<li>
<a href="/#all" class="selected">all</a>
</li>
<li>
<a href="/#active">active</a>
</li>
<li>
<section class="main">
<ul class="todo-list">
<li class="editing">
<div class="view">
<input type="checkbox" class="toggle">
<label>read a book</label>
<button class="destroy"></button>
</div>
<input class="edit" value="Read a book: in editing">
</li>
<header class="header">
<h1>todo mvc</h1>
<input type="text" class="new-todo" placeholder="New todo" autofocus />
</header>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
<title>todo mvc in html</title>
</head>
<body>
<section class="todoapp">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>todo mvc in html</title>
</head>
<body>
it works
</body>
@vikbert
vikbert / PrivateRoute.js
Created June 20, 2019 04:02 — forked from abohannon/PrivateRoute.js
React/Redux Auth with Private Route Component
import React from 'react';
import { Route, Redirect } from 'react-router-dom';
const PrivateRoute = ({ component: Component, authed, ...rest }) => (
<Route
{...rest}
render={props => (
authed
? <Component {...props} />
: <Redirect to="/login" />
@vikbert
vikbert / inspiration.MD
Created May 9, 2019 16:45
[inspiration] inspiration quotes #inspiration

Book

Choose Yourself: Be Happy, Make Millions, Live the Dream

In short, do his daily practice of:
- I eat well, i dont eat junk food
- I sleep well (8 hours/day). I used to never sleep. Sleeping is the key to ALL health
- I dont drink. Drinking is a depressant and has a lot of sugar.
- I only engage with positive people. ELIMINATE all negative people from your life. NEVER gossip
- I read every day. 2 hours. Books. not web.
- I write 10 ideas a day. Doesn't matter what kind of ideas. The key is to get the idea muscle going.