Skip to content

Instantly share code, notes, and snippets.

View lazyTai's full-sized avatar

刘明泰 lazyTai

View GitHub Profile
@lazyTai
lazyTai / index.html
Created September 24, 2017 01:44
requestAnimationFrame‘
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>requestAnimationFrame</title>
</head>
<body>
<style>
@lazyTai
lazyTai / index.js
Created September 23, 2017 21:15
sprng move
let React = require('react');
/* Block position and velocity. */
var block = {
x: 100,
v: 0,
destX: 120,
y: 50,
destY: 100,
@lazyTai
lazyTai / home.js
Created September 23, 2017 02:30
ract-router2 nest router
import React from 'react'
import {Link } from 'react-router'
export default class Home extends React.Component {
render() {
return <div>
<Link to="/">home</Link>
<Link to="/home1">home1</Link>
<Link to="/home2">home2</Link>
@lazyTai
lazyTai / 来至地狱
Created September 22, 2017 22:31
北京时间06点30分35秒
我的 屁股是酸疼的
好像 血液就要不流通
我的 命是搞笑的
也许 不应该又恨
只是 迷茫
发什么 神经
我 就啊神经病
还有 白痴
姐姐 要结婚了
我 还没听女朋友
import React from 'react'
import {Motion, spring} from 'react-motion'
import './css/demo1.css'
export default class Demo1 extends React.Component {
constructor(props) {
super(props)
this.state = {
open: false
}
}
@lazyTai
lazyTai / 作文
Created September 22, 2017 03:56
心情很沉重的说
为什么
其实就是害怕
为什么害怕呢
因为怕做不好
做不好什么呢
我就是失败的人生吧
所以要加油啊
其实你是厉害的哦
没有人可以让我放弃努力的
@lazyTai
lazyTai / add.css
Created September 22, 2017 02:12
all width heigth 100%
.page_add {
width: 100%;
height: 100%;
background: #eee;
}
@lazyTai
lazyTai / css -loader
Last active September 21, 2017 23:58
cssString=>computer==>width
rules: [
{test: /\.css$/, use: ['to-string-loader','css-loader']},
]
@lazyTai
lazyTai / cssString+template==>with
Created September 21, 2017 23:01
cssString+template==>with todo cssString use in react
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="https://cdn.bootcss.com/underscore.js/1.8.3/underscore-min.js"></script>
<script src="bundle.js"></script>
</head>
<body>
<script>
@lazyTai
lazyTai / index.css
Last active September 21, 2017 20:19
手机pc 居中
* {
box-sizing: border-box;
}
html {
padding: 0;
}
body {
max-width: 700px;