使用
pixi
为 SO-101 配置需要的 LeRobot 环境
pixi init
# Linux
使用
pixi
为 SO-101 配置需要的 LeRobot 环境
pixi init
# Linux
/* | |
Twitch chat browsersource CSS for OBS | |
Just set the URL as https://www.twitch.tv/popout/%%TWITCHCHANNEL%%/chat | |
And paste this entire file into the CSS box | |
Original by twitch.tv/starvingpoet modified by github.com/Bluscream | |
Readjusted for new (2019/2020) Twitch by github.com/mjbogusz | |
General Settings | |
*/ | |
body { | |
color: #000000 !important; |
package middleware | |
type responseBuffer struct { | |
gin.ResponseWriter // the actual ResponseWriter to flush to | |
Body *bytes.Buffer // the response content body | |
Flushed bool | |
} | |
func (w *responseBuffer) Write(b []byte) (int, error) { | |
return w.Body.Write(b) |
window.globalScope = { | |
syncedTimer: { | |
/** | |
* 计时器对象,保存了所有计时器的 id 和运行、重设状态 | |
* | |
* @example { main : { "1": { running: true, reset: false }, "2": { running: false, reset: true } } } | |
*/ | |
mTimers: { | |
main: {} | |
}, |
((new Date().getTime()/1000)-(new Date().getTime()/1000%1)) |
Let's say we have the following documents:
[
{"_id": "6094de60f74b0354af32dd17", "id": 1, "title": "Title1", "status": 1, "nested_field": {"expire_time": 4130633413} }
{"_id": "6094de60f74b0354af32dd18", "id": 1, "title": "Title1", "status": 1}
{"_id": "6094de60f74b0354af32dd19", "id": 2, "title": "Title2", "status": 0}
{"_id": "6094de60f74b0354af32dd20", "id": 2, "title": "Title2", "status": 2}
package util | |
import "reflect" | |
// UniqAny 去重 | |
func UniqAny(arrs interface{}) interface{} { | |
value := reflect.ValueOf(arrs) | |
// input value must be a slice | |
if value.Kind() != reflect.Slice { |
import Arweave from 'arweave' | |
const arweave = Arweave.init({ | |
host: 'arweave.net', | |
port: 443, | |
protocol: 'https', | |
timeout: 20000, | |
logging: false | |
}) |
const { gql, request } = require("graphql-request") | |
const query = gql` | |
{ | |
transactions( | |
tags: [ | |
{ name: "App-Name", values: "arclight-app" } | |
{ name: "Type", values: "Purchase" } | |
], | |
first: 100 |
/** | |
* @param {string} word1 | |
* @param {string} word2 | |
* @return {number} | |
*/ | |
let minDistance = function(word1, word2) { | |
let wordArr1 = word1.split("") | |
let wordArr2 = word2.split("") | |
let count = 0 | |