Skip to content

Instantly share code, notes, and snippets.

View 5idu's full-sized avatar
🎯
Focusing

5idu

🎯
Focusing
View GitHub Profile
@5idu
5idu / Socket.io
Last active July 12, 2018 02:47
explorer socket.io
- [socket.io搭建聊天室](https://www.jianshu.com/p/51b0d1f80392)
@5idu
5idu / Docker
Last active June 29, 2018 03:29
docker knowledges
```bash
docker version(`-v`)
docker info
docker build -t friendlyhello . # Create image using this directory's Dockerfile
docker run -p 4000:80 friendlyhello # Run "friendlyname" mapping port 4000 to 80
docker run -d -p 4000:80 friendlyhello # Same thing, but in detached mode
docker container ls # List all running containers
docker container ls -a # List all containers, even those not running
docker container stop <hash> # Gracefully stop the specified container
docker container kill <hash> # Force shutdown of the specified container
@5idu
5idu / Just for fun
Created June 28, 2018 09:09
some fun things
```js
console.log([
" _ooOoo_",
" o8888888o",
" 88\" . \"88",
" (| -_- |)",
" O\\ = /O",
" ____/`---'\\____",
" .' \\\\| |// `.",
" / \\\\||| : |||// \\",
@5idu
5idu / Require skills
Created June 28, 2018 09:07
some require skills
## Require Skills
- JavaScript/ES6/ES7
- Node.js内部核心模块及标准库
- MongoDB,MySql
- Redis
- Nginx
- Socket.io
- 熟悉TCP/IP,UDP,HTTP,HTTPS,WebSocket,XMPP等网络通讯协议
- MQTT协议,WebRTC协议
- Restful Api
@5idu
5idu / Exploration of coding ideas
Created June 28, 2018 09:05
code style design
### DRY原则(Don't Repeat Yourself)
* 最初级的DRY:语法级别
* before
```java
System.out.println(1);
System.out.println(2);
……
System.out.println(10);
```
* after
@5idu
5idu / Vue指令
Created June 26, 2018 10:22
vue.js常用指令
- v-bind
- v-if
- v-for
- v-on
- v-model
待更新...