Skip to content

Instantly share code, notes, and snippets.

View makarovas's full-sized avatar
:dependabot:

Makarov Aleks makarovas

:dependabot:
View GitHub Profile
@makarovas
makarovas / index-0-non-debounced.js
Created November 8, 2018 15:44 — forked from elijahmanor/index-0-non-debounced.js
React Debouncing Events
import React, { Component } from "react";
import { render } from "react-dom";
import "./index.css";
class Widget extends Component {
state = { text: "" };
handleChange = (e) => {
this.setState({ text: e.target.value });
};
render() {

Принципы работы jsonp

Скопировать все файлы в одну папку.

Установить http-server, если ещё не установлен:

npm install -g http-server

Запустить сервер:

@makarovas
makarovas / nodejs-cheatsheet.js
Created January 26, 2018 07:46 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@makarovas
makarovas / npm-cheat-sheet.md
Created January 26, 2018 07:46 — forked from AvnerCohen/npm-cheat-sheet.md
Node.js - npm Cheat Sheet

Node.js - npm Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Prepand ./bin to your $PATH Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

@makarovas
makarovas / git_cheat-sheet.md
Created January 24, 2018 08:52 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet