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
abstract class CrudRepository <ID, DOMAIN, TABLE : Table> { | |
abstract val table: TABLE | |
abstract fun toDomain(row: ResultRow): DOMAIN | |
abstract fun toRow(domain: DOMAIN): TABLE.(InsertStatement<Number>) -> Unit | |
abstract fun match(id: ID): SqlExpressionBuilder.() -> Op<Boolean> | |
abstract fun extractId(domain: DOMAIN): ID | |
abstract fun updateRow(domain: DOMAIN): TABLE.(UpdateStatement) -> Unit | |
/** | |
* Get a particular record by its ID. |
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
本组件除开语言文件完全基于npm,不需要指定id,支持v-model. | |
1.安装tinymce npm install tinymce | |
2.下载语言文件到组件目录 | |
3.在webpack文件中增加如下配置,主要langs路径要与项目一致 | |
```js | |
{ | |
from: 'node_modules/tinymce/plugins', | |
to: 'plugins' | |
}, | |
{ |
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
// create router | |
var router = new VueRouter({ | |
linkActiveClass: 'active', | |
history: false, | |
saveScrollPosition: true | |
}); | |
var req = require.context("views", true, /^\.\/.*index\.vue/); | |
var views = req.keys(); |
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
public String submitArea() { | |
String name = "area.txt"; | |
try { | |
List<String> areas = FileUtils.readLines(new File(Global.getProjectPath() + "/" + name)); | |
Area area, parea = null, rootarea = new Area("1"); | |
rootarea.setParentIds("0,"); | |
String pcode = "", tcode = ""; | |
for (String a : areas) { | |
area = new Area(); |
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
<?php | |
function tagcloud($parent, $options = array()) | |
{ | |
global $site; | |
// default values | |
$defaults = array( | |
'limit' => false, |
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 com.shxt.wdcc3.common.persistence; | |
import org.apache.commons.beanutils.ConvertUtils; | |
import org.hibernate.HibernateException; | |
import org.hibernate.property.ChainedPropertyAccessor; | |
import org.hibernate.property.PropertyAccessor; | |
import org.hibernate.property.PropertyAccessorFactory; | |
import org.hibernate.property.Setter; | |
import org.hibernate.transform.AliasedTupleSubsetResultTransformer; | |
import org.springframework.beans.BeanUtils; |
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
Show hidden characters
{ | |
"font_face": "Monaco", | |
"font_size": 13, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"scroll_past_end": false, | |
"show_encoding": true, | |
"show_line_endings settings": true, | |
"tab_size": 4, | |
//"theme": "Soda Dark 3.sublime-theme", |
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 | |
Title SublimeText 右键菜单维护 | |
Pushd %~dp0 | |
If "%PROCESSOR_ARCHITECTURE%"=="AMD64" (Set a="HKLM\SOFTWARE\Wow6432Node\SublimeText\sublimetext_backwnd" /v&Set b=%SystemRoot%\SysWOW64) Else (Set a="HKLM\SOFTWARE\SublimeText\sublimetext_backwnd" /v&Set b=%SystemRoot%\system32) | |
Rd "%b%\test_permission" >nul 2>nul | |
Md "%b%\test_permission" 2>nul||(Echo 请使用右键管理员身份运行&&Pause >nul&&Exit) | |
Rd "%b%\test_permission" >nul 2>nul | |