Skip to content

Instantly share code, notes, and snippets.

View engalar's full-sized avatar

wengao liu engalar

  • https://www.mendix.com/
  • zhuhai/guangdong/china
  • 03:45 (UTC +08:00)
View GitHub Profile
@engalar
engalar / mermaid.user.js
Last active March 3, 2025 03:38
tampermonkey UserScript for mermaid
// ==UserScript==
// @name Mermaid代码可视化
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description 将网页中的Mermaid代码块转换为可视化图表,每2秒自动检测
// @author You
// @match http://localhost:5678/webhook/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant GM_addStyle
// @grant GM_notification
@engalar
engalar / notion.user.js
Last active February 26, 2025 06:16
tampermonkey
// ==UserScript==
// @name Notion
// @namespace http://tampermonkey.net/
// @version 1.2.1
// @description try to take over the world!
// @author You
// @match https://www.notion.so/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant GM_xmlhttpRequest
// @grant GM_notification
@engalar
engalar / index.html
Created November 21, 2024 10:48
mediaDevices test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>拍照示例</title>
<style>
video, canvas {
display: block;
margin: 10px auto;
@engalar
engalar / index.html
Last active July 30, 2024 07:12
mendix patch locale
<!doctype html>
<html>
<head>
{{unsupportedbrowser}}
<meta charset="utf-8">
<title>Mendix</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
{{themecss}}
{{appicons}}
{{manifest}}
@engalar
engalar / theme.compiled.css
Created December 25, 2023 08:39
mendix空样式
@charset "UTF-8";
@import url("resources/fonts/open-sans/open-sans.css");
@font-face {
font-family: "Atlas_Core$Atlas_Filled";
src: url("./fonts/Atlas_Core$Atlas_Filled.ttf") format("truetype");
}
.mx-icon-filled {
display: inline-block;
font-style: normal;
font-weight: normal;
@engalar
engalar / AndroidManifest.xml
Last active August 15, 2023 04:11
native-template\android\build.gradle
<!-- native-template\android\app\src\main\AndroidManifest.xml -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.mendix.nativetemplate">
<!-- Remove the next line after update react-native-inappbrowser-->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" tools:node="remove"
tools:ignore="QueryAllPackagesPermission"/>
<uses-permission android:name="android.permission.INTERNET" />
@echo off
chcp 65001
setlocal enabledelayedexpansion
REM 设置常量和依赖项URL
set "CDN_BASE_URL=https://artifacts.rnd.mendix.com"
set "LISTING_URL=https://cdn.mendix.com/listing.txt"
@engalar
engalar / index.html
Last active November 5, 2022 06:10
plotly distribute chart
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<div id="myDiv"></div>
<body>
@engalar
engalar / Surfingkeys.js
Last active August 9, 2022 09:24
Surfingkeys
api.Front.registerInlineQuery({
url: function(q) {
return `http://dict.youdao.com/w/eng/${q}/#keyfrom=dict2.index`;
},
parseResult: function(res) {
var parser = new DOMParser();
var doc = parser.parseFromString(res.text, "text/html");
var collinsResult = doc.querySelector("#collinsResult");
var authTransToggle = doc.querySelector("#authTransToggle");
var examplesToggle = doc.querySelector("#examplesToggle");