Skip to content

Instantly share code, notes, and snippets.

View cubesky's full-sized avatar
🕊️
Coo Coo Coo

立音喵 cubesky

🕊️
Coo Coo Coo
View GitHub Profile
@cubesky
cubesky / docker-compose.yml
Created September 23, 2021 09:37
Fn Project Docker-Compose
version: '3'
services:
logstore:
hostname: logstore
image: minio/minio
ports:
- "9091:9000"
environment:
- MINIO_ACCESS_KEY=admin
- MINIO_SECRET_KEY=password
@cubesky
cubesky / config.yaml
Created January 7, 2021 07:09
A Script to transform http request to another for OpenHaB HTTP Binding beacuse it only support plain/text content type.
route:
- listen: '/GGA/ON'
method: 'POST'
run:
url: 'http://example.com/api/xxx'
method: 'PUT'
content: 'ON'
ncontent: 'OFF'
headers:
Authorization: xxxx xxxxx
@cubesky
cubesky / Bilibili-360VR.js
Last active February 14, 2021 07:18
Use babylonJS to Render Bilibili 360 Video to VR HeadSet
var cav = document.createElement('canvas')
cav.style.width = "100%"
cav.style.height = "100%"
document.querySelector('#v_tag').append(cav)
var babylon = document.createElement('script')
babylon.src = "https://cdn.babylonjs.com/babylon.js"
babylon.onload = function() {
var engine = new BABYLON.Engine(cav,true)
var createScene = function () {
var scene = new BABYLON.Scene(engine);
requests
synonyms
numpy
scipy
@cubesky
cubesky / jsdp.js
Last active December 21, 2018 11:40
A javascript dynamic patch library using onBeforeScriptExecute event
// Usage:
// Create a new userscript and insert this library use @require meta.
// Add these settings to meta
// ---------------------------------------
// // @grant GM_xmlhttpRequest
// // @run-at document-start
// ---------------------------------------
// At the top of userscript default function add this line
// ---------------------------------------
// /* global GM_xmlhttpRequest, unsafeWindow */