#!/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
#!/bin/sh | |
if [ $# -eq 0 ]; then | |
echo "ERROR:drop *.DLL file to script or pass as first argument" | |
exit 1 | |
fi | |
dll_file="$1" | |
base_name=$(basename "$dll_file" .dll) | |
def_file="$base_name.def" |
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 Y=fn => (u => u(u))(x => fn((...args) => x(x)(...args))); | |
const factorial=Y(fa => n => n <= 1? 1: n * fa(n - 1)); |
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="user"> | |
<template name="region" value="<!--//region $END$ --> $SELECTION$ <!--//endregion -->" shortcut="ENTER" description="" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="XML" value="true" /> | |
</context> | |
</template> | |
<template name="fmtoff" value="//@formatter:off $SELECTION$ //@formatter:on" description="" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_DECLARATION" value="true" /> | |
<option name="JAVA_STATEMENT" value="true" /> |
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
@echo off | |
for /f "tokens=*" %%G in ('dir /b /s /a:d "classes*"') do del /Q /S %%G | |
for /f "tokens=*" %%G in ('dir /b /s /a:d "test-classes*"') do del /Q /S %%G | |
rem for clean full target folders | |
:: for /f "tokens=*" %%G in ('dir /b /s /a:d "test-classes*"') do del /Q /S %%G |
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 io.github.zenliucn; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.*; | |
import java.util.function.Consumer; | |
import java.util.function.IntFunction; | |
import java.util.function.Predicate; |
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 sample; | |
import clojure.java.api.Clojure; | |
import clojure.lang.Compiler; | |
import clojure.lang.IFn; | |
import io.vertx.core.json.JsonObject; | |
import org.jooq.lambda.function.Function3; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; |
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$( Context ctx, io.vertx.sqlclient.SqlConnection tx, $ELE$X.DataJson data ) implements Entities<$ELE$, $ELE$X.DataJson, $name$> { static $name$ of( Context ctx, io.vertx.sqlclient.SqlConnection tx, $ELE$X.DataJson data){ return new $name$(ctx,tx,data); } static $name$ of( Context ctx, io.vertx.sqlclient.SqlConnection tx, $ELE$ data){ return new $name$(ctx,tx,$ELE$X.fromAsJson(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() { |
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) |
NewerOlder