Skip to content

Instantly share code, notes, and snippets.

View zrt's full-sized avatar
🐟
摸鱼中

Ruotian Zhang zrt

🐟
摸鱼中
View GitHub Profile
@zrt
zrt / index.html
Created December 31, 2016 04:33 — forked from CaiJimmy/index.html
Disqus点击加载
<button id="load-disqus" onclick="disqus.load();">
加载Disqus
</button>
<div id="disqus_thread"></div>
@zrt
zrt / cat_camera.py
Created January 2, 2019 15:30
operating raspi camera
#! /usr/bin/env python3
import os
import time
PIC = False
CV2 = False
try:
from picamera import PiCamera
@zrt
zrt / webcryptoapi.html
Created April 26, 2022 14:47 — forked from deiu/webcryptoapi.html
Web Crypto API example: RSA keygen & export & import & sign & verify & encrypt & decrypt
<!-- MIT License -->
<html>
<head>
<script>
function generateKey(alg, scope) {
return new Promise(function(resolve) {
var genkey = crypto.subtle.generateKey(alg, true, scope)
genkey.then(function (pair) {
resolve(pair)
})