hexo-bilibili-bangumi
练习是良好的老师。——贺拉斯 分享一个hexo插件: https://github.com/HCLonely/hexo-bilibili-bangumi hexo 番剧页面插件,可选数据源:Bilibili, Bangumi Demo 安装 1$ npm install hexo-bilibili-bangumi --save 配置 将下面的配置写入站点的配置文件 _config.yml 里(不是主题的配置文件). 12345678910111213141516171819202122232425262728293031323334353637383940414243bangumi: # 追番设置 enable: true source: bili bgmInfoSource: 'bgmApi' path: vmid: title: '追番列表' quote: '生命不息,追番不止!' show: 1 lazyload: true srcValue: '__image__'...
写一个基于lambda的copyProperties(二)
谨慎比大胆要有力量的多。——雨果 书接上文写一个基于lambda的copyProperties 今天继续整一个支持其他类型的 123456789101112131415161718@Datapublic static class User { private String name;}@Datapublic static class Person { private String name;}@Testvoid testCopyProperties() { User source = new User() {{ setName("test"); }}; Person target = BeanHelper.copyProperties(source, Person.class); Assertions.assertEquals(source.getName(), target.getName());} 源码如下: 123456789101...
写一个基于lambda的copyProperties
和任何人都认朋友,结果和任何人都交不成朋友。——佚名 代码仓库: https://gitee.com/dromara/stream-query 相关提交: https://gitee.com/dromara/stream-query/commit/31114dbc1374f78aad17daa4da615766d93194a2 使用方式: 123456789@Testvoid testCopyProperties() { LambdaExecutable source = LambdaHelper.resolve( (Serializable & Function<LambdaExecutable, String>) LambdaExecutable::getName); LambdaExecutable target = BeanHelper.copyProperties(source, null); Assertions.assertNotNull(target); Assertions.assertEqu...
CamanJS
过分宽大的法律,不易使人服从;太严厉的法律,则绝少被遵守。——富兰克林 分享一个前端基于canvas的图片js库 http://camanjs.com/ https://github.com/meltingice/CamanJS 安装 1npm install caman 用法: 1234567Caman('#my-image', function () { this.brightness(10); this.contrast(30); this.sepia(60); this.saturation(-30); this.render(); }); html 12345<img data-caman="brightness(10) contrast(30) sepia(60) saturation(-30)" data-caman-hidpi="/path/to/image@2x.jpg" src="path/to/image.jpg&q...
Milo
放纵必需的自由而求暂时的安全的人们,结果既失去自由,又得不到安全——富兰克林 分享一个OPC UA的Java实现 https://github.com/eclipse/milo OPC UA Client SDK12345<dependency> <groupId>org.eclipse.milo</groupId> <artifactId>sdk-client</artifactId> <version>0.6.9</version></dependency> OPC UA Server SDK12345<dependency> <groupId>org.eclipse.milo</groupId> <artifactId>sdk-server</artifactId> <version>0.6.9</version></dependency>
pac4j
对付邪恶的特效药,就是跟邪恶战斗。——泰戈尔 分享一个java安全框架 https://www.pac4j.org/
wrapper支持typeHandler
错误经不起失败,但真理却不怕失败。——泰戈尔 相关pr: https://gitee.com/dromara/stream-query/pulls/340 大致使用方式 123456789101112131415161718192021222324@Testvoid selectTest() { Name name = new Name(); name.setUsername("VampireAchao"); name.setNickname("阿超"); UserInfoWithJsonName user = new UserInfoWithJsonName(); user.setName(name); Database.saveFewSql(Lists.of(user)); Database.updateFewSql(Lists.of(user)); LambdaQueryWrapper<UserInfoWithJsonName> wrapper = QueryCondition.qu...
spring获取AliasFor增强的注解
无论何时,别让你自己卷进去反对他人。——歌德 此处是关于issue:https://gitee.com/dromara/stream-query/issues/I7BSNV 这里使用的一个自定义的@Table注解+@AliasFor来增强@TableName 1234567891011121314151617181920212223242526272829303132/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License&q...
VIN解析
爱情易失不易得。——佚名 分享一个VIN解析的代码 https://gitee.com/dromara/hutool/pulls/1005 使用方式 1234567891011121314151617181920212223242526272829303132333435363738394041package org.dromara.hutool.core.data;import org.dromara.hutool.core.data.vin.Vin;import org.junit.jupiter.api.Assertions;import org.junit.jupiter.api.Test;import java.time.Year;/** * @author VampireAchao * @since 2023/5/31 14:43 */public class VinTest { @Test public void parseVinTest() { String vinStr = "HE9XR1C48PS083871"; ...
quay
自己活着,就是为了使别人活得更美好。——雷锋 可以使用quay.io搜索docker镜像 https://quay.io/search 在docker hub进不去时,非常好用
