Skip to content

Instantly share code, notes, and snippets.

#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#ifndef PSTR
#define PSTR
#endif
#define PIN 6
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(5, 5, PIN,
[
{
"书名": "Walter Benjamin",
"作者": "Howard Eiland / Michael W. Jennings",
"评分": "",
"评分人数": "",
"标记日期": "2017-07-16",
"出版日期": "2016-11-21",
"出版社": "Belknap Press: An Imprint of Harvard University Press",
"页数": 768,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!doctype html>
<html><head><title>【AR Demo】AR Painting</title><meta charset="UTF-8"><link href="http://fonts.googleapis.com/css?family=Crimson+Text:400,400italic,700,700italic|Roboto:400,700,700italic,400italic" rel="stylesheet" type="text/css"><style>/*
* Copyright 2014 Quip
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
function esp() {
python $[esptool.py] --port=$[espPort]"$@" write_flash -fm=dio -fs=32m 0x00000 $[esptoolFirmware]
}
function esptest() {
$esptool -vv -cd nodemcu -cb 460800 -cp $[espPort] -ca 0x00000 -cf $[testCode]
sleep 0.5
echo ""
echo "entering serial monitor..."
screen $[espPort] 115200

Declaration:

#define GpsSerial  Serial1
#define DebugSerial Serial

struct
{
  char GPS_Buffer[80];
  bool isGetData;
@tommyjtl
tommyjtl / http-benchmark.md
Created August 3, 2019 02:53 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
'''
requirements:
scikit-image==0.16.2
tqdm==4.45.0
'''
from PIL import Image, ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
import glob, random, os, time, re, time
@tommyjtl
tommyjtl / dopa-rev5_withname.stl
Last active June 26, 2020 04:43
Ring for lovers. License under CC 4.0 BY-SA.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import subprocess, os
current_path = os.getcwd()
current_file_list = os.listdir()
def exec_command(cmd):
command = cmd.split()
command_output = subprocess.run(command, capture_output=True)
for line in command_output.stdout.decode("utf-8").split("\n"):
print("\t\t", line)