Something Interesting
This project is used for recording some functions. All file is use babel6
to write. Here is babel setting.
Start
You can copy file you need or use this:
npm install hsuting
List
img-resize
- Use to resize image.
- code
import imgResize from 'hsuting/lib/img-resize';
animation
- Use to run animation by javascript.
- It need to use eases.
- code
import animation from 'hsuting/lib/animation';
- Use gmail to send email.
- It need to use nodemailer and nodemailer-smtp-transport.
- code
import email from 'hsuting/lib/email';
get-date
- Get format date.
- code
import getDate from 'hsuting/lib/get-date';
post-server
- Post data to server with
node.js
. - It use
https
module to connect server. - code
import postServer from 'hsuting/lib/post-server';
ajax-post
- Post data to server with ajax.
- code
import ajaxPost from 'hsuting/lib/ajax-post';
ajax-get
- Get data from server with ajax.
- code
import ajaxGet from 'hsuting/lib/ajax-get';
layout
-
Some layout I use and this is used for
radium
. -
List
Name Usage Grid Grid
is parent style ofCell
Cell This is like layout of mdl. As a result, it have 12
,8
and6
cols indesktop
,tablet
andphone
size.(Top\Center\Bottom)(Left\Center\Right) This style will decide the layout of this children node. -
import Layout from 'hsuting/lib/layout';