Skip to content

Instantly share code, notes, and snippets.

@kumalee
kumalee / README.md
Created August 24, 2023 09:47 — forked from satomacoto/README.md
Install pyenv and conda

Install pyenv

$ brew update
$ brew install pyenv

Check available versions and install

@kumalee
kumalee / useAnimation.js
Last active September 15, 2019 08:17
useHooks.com
import { useState, useEffect } from 'react';
// Usage
function App() {
// Call hook multiple times to get animated values with different start delays
const animation1 = useAnimation('elastic', 600, 0);
const animation2 = useAnimation('elastic', 600, 150);
const animation3 = useAnimation('elastic', 600, 300);
return (
import { useState, useCallback, useRef } from "react";
// Usage
function App() {
const [hoverRef, isHovered] = useHover();
return (
<div ref={hoverRef}>
{isHovered ? '😁' : '☹️'}
</div>
@kumalee
kumalee / Pluarl For Russia
Created March 29, 2019 13:45
Some Algorithms
// 0 урок
// 1 урок
// 2 урока
// 4 урока
// 5 уроков
// 10 уроков
// 11 уроков
// 14 уроков
// 15 уроков
// 20 уроков
@kumalee
kumalee / Ten-Tips-For-Clean-Code.md
Last active October 23, 2018 01:32
Tips for good code
  1. You're responsible for code quality.
  2. Use meaningful names.
  3. Write code that expresses intent.
  4. Code should speak for itself. Less comments = less maintenance.
  5. Leave the code better than you found it.
  6. Single-responsibility code. i.e function does 1 thing well. Less arguments = better function. classes: most methods use most of the class' properties.
  7. Tests (TDD).
  8. Work on big picture skeleton, then fill in the details later
@kumalee
kumalee / rp-1.js
Created October 22, 2018 06:48
React Problem
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
name: this.props.name || 'Anonymous'
}
}
render() {
return (
@kumalee
kumalee / ef-interview-questions.md
Last active May 16, 2018 07:56
Front-End Interview Questions

General

  1. Describe the difference between a cookie, sessionStorage and localStorage. 3
  2. What is CORS? How can we solve CORS problem? What's the different between JSONP and AJAX? Can JSONP do POST?
  3. What is reverse proxy? When do we need it?

CSS

  1. What's the difference between inline and inline-block? 3
  2. Do you have mobile webpage expierence? yes -> how do you response the page? 0
  3. What's the different of em and rem? vw and vh? rem body 0 em 0
@kumalee
kumalee / .zshrc
Last active October 16, 2021 09:57
develop-setting-on-MacOSX
# Path to your oh-my-zsh installation.
export ZSH=/Users/kuma/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# ZSH_THEME="robbyrussell"
POWERLEVEL9K_MODE='nerdfont-complete'
# Add the custom JavaScript JS icon prompt segment
@kumalee
kumalee / readme.json
Last active July 8, 2017 13:32
code formatting config file for vue project
/*
settings.json
This config file is for VS Code
Put the file into your project's root directory
Place your settings in this file to overwrite default and user settings.
Dependent VS Code Plugins:
Beautify
ESLint