Skip to content

Instantly share code, notes, and snippets.

View imcuttle's full-sized avatar
🎯
Focusing get money

Cong Yu imcuttle

🎯
Focusing get money
View GitHub Profile
@imcuttle
imcuttle / 头条.md
Created June 26, 2019 16:01
做些题目试试看

前端题库:

一轮 1.dom react 原理 首先 React 有几个生命周期,在初始的时候依次顺序为 componentWillMount(未来废弃)、componentDidMount; 然后如果外部的传入的 props 发生改变,或者组件内部 state 发生更新,或者 forceUpdate 会触发组件的更新,依次调用 shouldComponentUpdate -> componentWillUpdate -> componentDidUpdate,如果是外部的传入的 props 发生改变导致更新,在此之前还会触发 componentWillReceiveProps; 最后销毁调用 componentWillUnmount 2.css布局 盒子模型 flex 布局

@imcuttle
imcuttle / index.js
Created May 6, 2018 12:34
Markme leancloud
// ==UserScript==
// @name New Script
// @namespace video
// @match *://*/*
// @grant none
// ==/UserScript==
//
function load(src) {
return new Promise((resolve, reject) => {
@imcuttle
imcuttle / EventEmmiter.js
Last active November 1, 2017 09:14
snippet
/**
* @file: EventEmitter
* @author: Cuttle Cong
* @date: 2017/11/1
* @description:
*/
function assertType(type) {
if (typeof type !== 'string') {
throw new TypeError('type is not type of String!');
}
@imcuttle
imcuttle / gulpfile.js
Created June 9, 2017 04:08 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@imcuttle
imcuttle / todo.txt
Last active March 26, 2017 14:10
TODO!!!
webpack offline
react canvas
webpack多页拆分
proxy get 修饰器
git 深度学习
es6
pwa
mobx
https://css-tricks.com/modular-future-web-components/ webcomponent
https://hacks.mozilla.org/2017/03/a-new-css-grid-demo-on-mozilla-org