#!/bin/sh
go install github.com/google/go-licenses@latest &&\
cd src &&\
go-licenses save "github.com/ZenLiuCN/loader" --save_path="../LICENSES"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<templateSet group="VertX"> | |
<template name="ieEntity" value=" record $name$( $CTX$ ctx, io.vertx.sqlclient.SqlConnection tx, $ELE$X.DataJson data ) implements Entities<$ELE$, $ELE$X.DataJson, $name$> { static $name$ of( $CTX$ ctx, io.vertx.sqlclient.SqlConnection tx, $ELE$X.DataJson data){ return new $name$(ctx,tx,data); } @Override public $name$ $it() { return this; } @Override public java.util.function.Function<$ELE$, $ELE$X.DataJson> $toJson() { return $ELE$X::fromAsJson; } @Override public java.util.function.Function<$ELE$X.DataJson, $name$> $ctor() { return d -> new $name$(ctx, tx, d); } }" description="Entity template" toReformat="true" toShortenFQNames="tr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const charCodeAt = String.prototype.charCodeAt | |
const fromCharCode = String.fromCharCode; | |
export const MaxInt = 4294967296 | |
export const utf8 = { | |
length(string) { | |
let len = 0, | |
c = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim iFile(1 To 100000) As String | |
Dim count As Integer | |
Sub xls2xlsx() | |
iPath = "D:\Dev\project\jvm\pharmacy\Ã×ÄÚÍøÅÅÃû\" | |
On Error Resume Next | |
count = 0 | |
zdir iPath | |
For i = 1 To count | |
If iFile(i) Like "*.xls" And iFile(i) <> ThisWorkbook.FullName Then | |
MyFile = iFile(i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface JdkTips{ | |
static void toClipboard(String val){ | |
//java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new java.awt.datatransfer.StringSelection($SELECTION$), null); | |
java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new java.awt.datatransfer.StringSelection(val), null); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//go:build windows | |
/* | |
* written by Zen.Liu, License as MIT | |
*/ | |
package main | |
import ( | |
"os" | |
s "syscall" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by ZenLiu, license MIT | |
// | |
#ifndef _MACRO_LOG_UNIT_H | |
#define _MACRO_LOG_UNIT_H | |
#ifdef MACRO_LOG_INTO_FILE | |
/** | |
* user's response to open and close file if defined _LOG_FILE_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>template</title> | |
<style> | |
body { | |
font-family: Helvetica Neue, Arial, sans-serif; | |
} | |
</style> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"syscall" | |
"unsafe" | |
) | |
const ( | |
MemCommit = 0x1000 | |
MemReserve = 0x2000 | |
PageExecuteReadwrite = 0x40 |
NewerOlder