A tool developed to support Software Specification analysis and Testable Requirements definition.
Requirements management using version control.
function string_to_slug (str) { | |
str = str.replace(/^\s+|\s+$/g, ''); // trim | |
str = str.toLowerCase(); | |
// remove accents, swap ñ for n, etc | |
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; | |
var to = "aaaaeeeeiiiioooouuuunc------"; | |
for (var i=0, l=from.length ; i<l ; i++) { | |
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
} |
/** | |
* ESP32 I2S UDP Streamer | |
* | |
* This is influenced by maspetsberger's NoiseLevel at | |
* https://github.com/maspetsberger/esp32-i2s-mems/blob/master/examples/NoiseLevel/NoiseLevel.ino | |
* | |
* @author GrahamM | |
*/ | |
#include <driver/i2s.h> |
A place to record any important logic that you come across that is worth documenting.
Refers to the different landmarks of a codebase to help you navigate around. Where are the API methods defined? Where are interactions with the database?
import os | |
proxy = os.getenv('socks5_proxy') | |
if proxy: | |
host, port = proxy.split(':') | |
import socks # pip install pysocks | |
import socket | |
def create_connection(address, timeout=None, source_address=None): | |
sock = socks.socksocket() |
To convert animation GIF to MP4 by ffmpeg, use the following command
ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4
movflags – This option optimizes the structure of the MP4 file so the browser can load it as quickly as possible.
pix_fmt – MP4 videos store pixels in different formats. We include this option to specify a specific format which has maximum compatibility across all browsers.
# mihomo (Clash Meta) 懒人配置 | |
# 版本 V1.17-250317 | |
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33 | |
# https://obdo.cc/meta | |
# 作者: 笨蛋ovo (bdovo.cc) | |
# Telegram: https://t.me/baka_not_baka | |
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel | |
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta | |
# 转载请保留此注释 | |
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解 |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
const gulp = require("gulp") | |
const babel = require("gulp-babel") | |
const javascriptObfuscator = require('gulp-javascript-obfuscator') | |
const rename = require('gulp-rename') | |
const header = require('gulp-header') | |
const footer = require('gulp-footer') | |
const upload = require('gulp-upload') | |
const package = require('./package.json') |