Skip to content

Instantly share code, notes, and snippets.

@vikbert
vikbert / awesome_presentation.md
Last active May 2, 2024 02:28
[awesome presentation] presentation tools #presentation #slides
@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.
@abohannon
abohannon / PrivateRoute.js
Created December 22, 2017 19:23
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 / chrome.MD
Last active May 2, 2024 02:26
[chrome plugin] chrome plugin and extensions

Plugins used

# simple english dict
youdao chrome

@rl4debug
rl4debug / hugo-learn.md
Last active May 2, 2024 02:25
[hugo static website generator] #hugo
@HerringtonDarkholme
HerringtonDarkholme / nihongo.cpp
Last active May 2, 2024 02:25
g++ nihongo.cpp
#define エスティーディー std
#define アイオーストリーム <iostream>
#define ユージング using
#define イフ if
#define インクルード #include
#define イント int
#define シーアウト cout
#define シーイン cin
#define ネームスペース namespace
#define ブール bool
@rl4debug
rl4debug / chrome-shortcut-key-macos.md
Created February 2, 2020 09:35
[chrome shortcut key macos]
  • Delete 1 browsing history item on address bar Shift + Fn + Delete
@rl4debug
rl4debug / makefile-cheatsheet.md
Created April 3, 2020 15:17
[makefile] #makefile

Special macros:

  • $@ is the name of the file to be made
  • $? is the name of changed depandents
  • $< the name of related file that caused the action
  • $* the prefix shared by target and dependent files
@rl4debug
rl4debug / tdd-references.md
Created March 21, 2020 17:53
[TDD reference]
  • 8k: https://blog.usejournal.com/lean-testing-or-why-unit-tests-are-worse-than-you-think-b6500139a009

  • >1k: https://medium.com/pacroy/why-most-unit-testing-is-waste-tests-dont-improve-quality-developers-do-47a8584f79ab