Skip to content

Instantly share code, notes, and snippets.

View engalar's full-sized avatar

engalar

  • https://www.mendix.com/
  • zhuhai/guangdong/china
View GitHub Profile
@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");
@engalar
engalar / base64-to-blob.js
Last active August 8, 2022 00:21
cordova file集成
//https://stackoverflow.com/a/16245768
//const blob = b64toBlob(b64Data, contentType);
const b64toBlob = (b64Data, contentType='', sliceSize=512) => {
const byteCharacters = atob(b64Data);
const byteArrays = [];
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
const slice = byteCharacters.slice(offset, offset + sliceSize);
const byteNumbers = new Array(slice.length);
@engalar
engalar / README.md
Last active August 30, 2022 10:17
mendix offline install

使用方法

  • 执行批处理,选择你想下载的版本

运行效果

Active code page: 65001
已经存在 listing.txt

请选择一个你想要安装的Studio Pro版本号?
[162] 9.9.2.35886
例如你输入162表示安装9.9.2.35886
@engalar
engalar / bashrc.sh
Last active May 10, 2022 08:45
windows wsl proxy localhost
export all_proxy=http://host.docker.internal:29759