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
import groovy.io.FileType | |
/** | |
* Created by liurui on 14/11/12. | |
*/ | |
def len = 0; | |
def dir = new File('/Users/liurui/develop/workspace/CM8/flexweb/src') | |
if (dir.isDirectory()) { |
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
group 'com.aruistar' | |
version '1.0-SNAPSHOT' | |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.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
package com.aruistar.controller | |
import org.springframework.stereotype.Controller | |
import org.springframework.web.bind.annotation.RequestMapping | |
import org.springframework.web.bind.annotation.RequestParam | |
import org.springframework.web.bind.annotation.ResponseBody | |
/** | |
* Created by liurui on 15/7/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
var oldDocumentBody; | |
function CallPrint(item) { | |
// Sauvegarde de la page actuelle | |
oldDocumentBody = document.body.innerHTML; | |
// Desactivation des limites de tailles afin de charger la totalité du tableau | |
item.style.width = ""; | |
item.style.height = ""; | |
item.style.overflow = ""; |
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
<s:Graphic x="100" y="0"> | |
<!-- Use Use compact syntax with absolute coordinates. --> | |
<s:Path data="M 20 0 | |
C 50 0 50 35 20 35 | |
L 15 35 | |
L 15 45 | |
L 0 32 | |
L 15 19 | |
L 15 29 | |
L 20 29 |
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
<!DOCTYPE html> | |
<html ng-app="gemStore"> | |
<head> | |
<link rel="stylesheet" type="text/css" href="bootstrap.min.css" /> | |
<script type="text/javascript" src="angular.min.js"></script> | |
<script> | |
(function(){ | |
var gem = { name: 'Azurite', price: 2.95 }; | |
var app = angular.module('gemStore', []); | |
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
<!doctype html> | |
<html> | |
<head> | |
<script src='https://cdn.firebase.com/js/client/2.2.1/firebase.js'></script> | |
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script> | |
<link rel='stylesheet' type='text/css' href='/resources/tutorial/css/example.css'> | |
</head> | |
<body> | |
<div id='messagesDiv'></div> | |
<input type='text' id='nameInput' placeholder='Name'> |
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
import org.apache.poi.hssf.usermodel.HSSFCell | |
import org.apache.poi.hssf.usermodel.HSSFDateUtil | |
import org.apache.poi.hssf.usermodel.HSSFRow | |
import org.apache.poi.hssf.usermodel.HSSFWorkbook | |
/** | |
* Groovy Builder that extracts data from | |
* Microsoft Excel spreadsheets. | |
* @author Goran Ehrsson | |
*/ |
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
import groovy.sql.Sql | |
/** | |
* | |
* Created by liurui on 16/1/15. | |
*/ | |
Sql db = Sql.newInstance("jdbc:jtds:sqlserver://192.168.180.12:1433/yseap_lrtest;instance=sql2008", "yseap", "189CF2F7-6734-4EFA-AB47-302A69674E3C", "net.sourceforge.jtds.jdbc.Driver") | |
OlderNewer