This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
测试环境 | |
---------- | |
所有测试均在 Windows 10 1903 版本上进行。测试中关闭 Windows Defender 的所有防护。 | |
软件环境采用 Rust 1.39.0 stable 版本,系统安装 Visual Studio 2019 生成工具(C++ 生成工具)。 | |
对于MacBook也追加测试在macOS Mojave下的表现。 | |
一般的 cargo 项目 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
#![no_main] | |
extern crate panic_halt; | |
use riscv_rt::entry; | |
#[entry] | |
fn main() -> ! { | |
let gpioa_ctl0 = 0x4001_0800_usize as *mut u32; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# l4homestead-dbbackup | |
# v0.0.1 | |
# | |
# 2014 - 2015 (C) SHA Miao | |
# | |
# Published under MIT License. See LICENSE file for details. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>bs3 Example</title> | |
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<!--[if lt IE 9]> | |
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script> | |
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
# NOTE: This program is a quick & dirty snippet. | |
# CONTAINS A LOT OF ASSUME, AND BARELY NO EXCEPTION HANDLING. | |
# Problem URL: http://blog.segmentfault.com/felix021/1190000000399153 | |
# License: public domain | |
def full_hash(matrix): | |
# Unsigned, 20bit (=1048576) MAX | |
hash_result = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html | |
{ | |
height:100% | |
} | |
body | |
{ | |
font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; | |
background:#F6F6F3; | |
color:#444; | |
font-size:87.5%; |