Skip to content

Instantly share code, notes, and snippets.

View wanyaoqi's full-sized avatar
💭
🦆 🦆

wanyaoqi

💭
🦆 🦆
View GitHub Profile
@wanyaoqi
wanyaoqi / ROM_RAM_FLASH.md
Created November 13, 2019 12:58 — forked from but0n/ROM_RAM_FLASH.md
Flash、RAM、ROM的区别『转载』

backup from http://www.openedv.com/thread-81182-1-1.html

一、 ROM(Read Only Memory)

ROM (Read Only Memory),只读存储器。用来存储和保存数据。ROM 数据不能随意更新,但是在任何时候都可以读取。即使是断电,ROM 也能够保留数据。

ROM 也有很多种:

  • PROM 是可编程一次性(无法修改)的 ROM;
@wanyaoqi
wanyaoqi / WindowDos批处理指导
Created September 3, 2019 10:56 — forked from deneschen/WindowDos批处理指导
WindowDos批处理指导
Windows批处理(cmd/bat)常用命令小结
前言
批处理文件(batch file)包含一系列 DOS命令,通常用于自动执行重复性任务。用户只需双击批处理文件便可执行任务,而无需重复输入相同指令。
编写批处理文件非常简单,但难点在于确保一切按顺序执行。编写严谨的批处理文件可以极大程度地节省时间,在应对重复性工作时尤其有效。
在Windows中善用批处理可以简化很多重复工作
阅读原文 - https://wsgzao.github.io/post/windows-batch/
@wanyaoqi
wanyaoqi / update-golang.md
Created May 9, 2019 10:32 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@wanyaoqi
wanyaoqi / md5-example.go
Created February 14, 2019 12:16 — forked from sergiotapia/md5-example.go
Golang - How to hash a string using MD5.
import (
"crypto/md5"
"encoding/hex"
)
func GetMD5Hash(text string) string {
hasher := md5.New()
hasher.Write([]byte(text))
return hex.EncodeToString(hasher.Sum(nil))
}