修改 Makefile
CC = $(TOOLCHAIN_PREFIX)gcc$(TOOLCHAIN_SUFFIX) -DNO_ASM
CXX = $(TOOLCHAIN_PREFIX)g++$(TOOLCHAIN_SUFFIX) -DNO_ASM
特别适用于 ArchLinux ARM 选手,其他发行版需稍作修改
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan --<sg4dylan#gmail.com> | |
# Created: 06/18/2021 | |
import numpy as np | |
from scipy import signal | |
from scipy.io.wavfile import write | |
import librosa | |
import resampy |
# -*- coding:utf-8 -*- | |
""" | |
Convert https://raw.githubusercontent.com/petronny/gfwlist2pac/master/gfwlist.pac for unbound. | |
""" | |
import re | |
with open("gfwlist.conf", 'w') as wp: | |
for line in open("gfwlist.pac"): |
// ==UserScript== | |
// @name NginxAutoindexExporter | |
// @namespace http://tampermonkey.net/ | |
// @version 20180915(0.2) | |
// @description Export link from nginx autoindex to aria2 | |
// @author SgDylan | |
// @match https://example.com/* | |
// @grant none | |
// ==/UserScript== |
import os | |
import re | |
import json | |
import urllib | |
import requests | |
import wget | |
from tqdm import tqdm | |
from bs4 import BeautifulSoup | |
# 执行推理用 | |
import numpy as np |
name: 'CI Build' | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
branches: | |
- master | |
- 'release/**' | |
tags: |
#include <Wire.h> | |
#include <BH1750.h> | |
BH1750 lightMeter; | |
void setup(){ | |
Serial.begin(9600); | |
// Initialize the I2C bus (BH1750 library doesn't do this automatically) | |
// On esp8266 devices you can select SCL and SDA pins using Wire.begin(D4, D3); | |
Wire.begin(); |
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan --<sg4dylan#gmail.com> | |
# Purpose: A simple script to download video from Bilibili | |
# Created: 08/07/2016 | |
import sys | |
from subprocess import call | |
def check_and_go(args): |
import os | |
import json | |
import re | |
from datetime import datetime, timedelta | |
rss_json = '' | |
for i in os.listdir('.'): | |
if i.endswith('.json'): | |
rss_json = i |