Skip to content

Instantly share code, notes, and snippets.

@yangsaipp
yangsaipp / bathuploadNexusJar.bat
Last active June 16, 2023 00:58
批量上传jar到nexus仓库
@echo off
:: init params
set version=5.1.208.1
set groupId=com.xxxx.xxxx.xxx.xxx
set artifactIdPrefix=portal
set url=http://xxx.xxxx.xxxxx:8081/nexus/content/repositories/releases/
set repositoryId=xxxxx
set deployFile=*.jar
echo Searching jar file...
rem 启用"延缓环境变量扩充"
@yangsaipp
yangsaipp / 网页剧中自适应显示.html
Last active April 19, 2016 05:03
网页剧中自适应显示
!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>test</title>
</head>
<style type="text/css">
<!--
body {
padding: 0px;
@yangsaipp
yangsaipp / 0_reuse_code.js
Created January 15, 2016 01:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@yangsaipp
yangsaipp / Capattachment.js
Created December 8, 2015 10:52
cap 附件处理展示标签 uitype="Capattachment"
/**
* cap 附件处理展示标签 uitype="Capattachment"
* author:yangsai
* date: 2015122 17:26:56
*
*/
(function(g, $){
//web应用名字
var webPath = '/' + g.location.pathname.split('/')[1];
//上传下载action dwr文件引入路径
@yangsaipp
yangsaipp / 在线预览本地图片.html
Last active July 29, 2016 03:59
在线预览本地图片,html5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>本地图片在线预览</title>
</head>
<body>
<script type="text/javascript">
var result=document.getElementById("result");
var file=document.getElementById("file");