Skip to content

Instantly share code, notes, and snippets.

View wweggplant's full-sized avatar

SiddhaDo wweggplant

View GitHub Profile
# Formily LLM 文档
## 核心文档
---
title: Formily - 阿里巴巴统一前端表单解决方案
order: 10
hero:
title: Alibaba Formily
desc: 阿里巴巴统一前端表单解决方案
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Custom Calendar//mxm.dk//
BEGIN:VEVENT
SUMMARY:火车票提醒 - 订票日期: 2023-12-31
DTSTART;VALUE=DATE-TIME:20231217T035000Z
DTEND;VALUE=DATE-TIME:20231217T081000Z
DTSTAMP;VALUE=DATE-TIME:20240416T052334Z
UID:2023-12-17-weiainijiujiu@126.com
END:VEVENT
@wweggplant
wweggplant / dep.js
Last active May 21, 2020 13:20
vue 合并数据核心函数
/* @flow */
import type Watcher from './watcher'
import { remove } from '../util/index'
import config from '../config'
let uid = 0
/**
* A dep is an observable that can have multiple
try {
module.exports = Promise
} catch (e) {}
function Promise(executor) {
var self = this
self.data = undefined
self.status = 'pending'
self.onResolvedCallbacks = []
self.onRejectedCallbacks = []
@wweggplant
wweggplant / batchRename.sh
Created November 27, 2019 07:38
批量修改文件名
name=0
for files in `ls`
do
# 指定后缀名
hname=".mp4"
# 指定文件名(这里采用加1的方式)
name=$(echo "$name + 1"|bc)
# 拼接成完整文件名
filename=$name$hname
# 修改文件名
@wweggplant
wweggplant / sortTemplate.java
Created November 23, 2019 01:42
java排序模板代码
package sort;
import edu.princeton.cs.algs4.In;
import edu.princeton.cs.algs4.StdOut;
public class sortTemplate<T>{
public static void sort(Comparable[] a){
}
public static void exch(Comparable[] a, int i, int j){
@wweggplant
wweggplant / vue.js
Created April 10, 2018 06:24
vue中实用的函数
// check whether current browser encodes a char inside attribute values
function shouldDecode (content, encoded) {
var div = document.createElement('div');
div.innerHTML = "<div a=\"" + content + "\"/>";
return div.innerHTML.indexOf(encoded) > 0
}
var hiddenProperty = 'hidden' in document ? 'hidden' :
'webkitHidden' in document ? 'webkitHidden' :
'mozHidden' in document ? 'mozHidden' :
null;
var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
var onVisibilityChange = function()
{
if(!document[hiddenProperty]){
doSomething();
}
@wweggplant
wweggplant / Common.less
Created April 19, 2017 01:33
常用的less
@border-base-color:#cccccc;
.hide{
display: none;
}
.show{
display: block;
}
.fl{
float: left;
display: inline;
@wweggplant
wweggplant / 兼容的IE8的addEventListener和removeEventListener
Created April 15, 2017 01:20
兼容的IE8的addEventListener和removeEventListener
(function() {
if (!Event.prototype.preventDefault) {
Event.prototype.preventDefault=function() {
this.returnValue=false;
};
}
if (!Event.prototype.stopPropagation) {
Event.prototype.stopPropagation=function() {
this.cancelBubble=true;
};