Skip to content

Instantly share code, notes, and snippets.

@brpaz
brpaz / chrome_extension_manifest_sample.json
Created January 31, 2015 11:46
Sample shortcut chrome extension #aws #chrome
{
"manifest_version": 2,
"name": "AWS Console",
"description": "Just a shortcut to AWS Management Console",
"version": "1.0",
"icons": {
"128": "icon-128.png"
},
"app": {
"urls": [
@vikbert
vikbert / awesome_people.md
Last active May 2, 2024 02:28
[awesome people] awesome people I like

Awesome People

Frontend Devs

ecmadao

from Beijing, focus on Javascript, ReactJS.

Backend Devs

@vikbert
vikbert / awesome_tools.md
Last active May 2, 2024 02:28
[awesome tools] all awesome tools I used for daily work

Awesome Tools

This is a collection of awesome tools, that I use for daily work.

PHPStorm Plugins

carbon-now-sh

convert code snippets to image: png, jpg

@vikbert
vikbert / vue.MD
Last active May 2, 2024 02:28
[vue] everything about vue

Beginning with Vue.js in 03.2019

open question

  • Vuex
  • Typescript
  • unit Testing
  • E2E test
  • Progresive Web App Support
@vikbert
vikbert / scripting.md
Last active May 2, 2024 02:28
[scripting] small scripting snippets #php #scripting

Rename files with preg_match and preg_replace

<?php

declare(strict_types = 1);

const PATTERN = '/(-m\d-[a-zA-Z]*-[0-9][0-9])/';

if (empty($argv[1])) {
 throw new Exception('Usage: php rename.php ');
@vikbert
vikbert / golden-rules.MD
Last active May 2, 2024 02:28
[golden rules] golden rules for programmers

Golden Rules

  • slow and steady wins the race
  • not working overtime, but working flexibly
  • knowing what need to be done, not waiting to be told what to do
  • understand the context around you
  • focus on 2-3x MIT Tasks(Most Important task)
@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