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> | |
<meta charset="utf-8"> | |
<title>Tomcat WebSocket Chat</title> | |
<script> | |
var ws = new WebSocket("ws://localhost:8080/WsChat/wschat"); | |
ws.onopen = function(){ | |
}; | |
ws.onmessage = function(message){ |
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 com.caucho.hessian.io.Deflation | |
import com.caucho.hessian.io.Hessian2Input | |
import com.caucho.hessian.io.Hessian2Output | |
import groovy.transform.Canonical | |
import spock.lang.Specification | |
import java.time.LocalDate | |
@Canonical | |
class Person implements Serializable { |
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
--- | |
- name: Install java 8 (oracle) and set up tomcat8 service | |
hosts: vbox | |
become: yes | |
vars: | |
JAVA_HOME: /usr/lib/jvm/java-8-oracle | |
tasks: | |
- name: add webupd key for webupd |
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 javax.mail.internet.InternetAddress | |
import javax.mail.Address | |
import javax.mail.Message | |
import javax.mail.Session | |
import javax.mail.Folder | |
def props = new Properties() | |
props.put 'mail.store.protocol', 'imaps' | |
def host = 'imap.yandex.ru' |
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
// Useful for students in need of block quotes for their paper, etc. | |
// Execute the line in your JavaScript console | |
new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; | |
javascript:new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML; |
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
#EXTM3U | |
#EXTINF:1874, Metro-Goldwyn-Mayer | |
http://audio.vgtrk.com/listen?id=810182 | |
#EXTINF:1427, Xerox | |
http://audio.vgtrk.com/listen?id=810233 | |
#EXTINF:1491, Versace | |
http://audio.vgtrk.com/listen?id=810269 | |
#EXTINF:1463, Siemens | |
http://audio.vgtrk.com/listen?id=810321 | |
#EXTINF:1374, Хоккей |
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
#EXTM3U | |
#EXTINF:2061, Норма современного языка | |
http://audio.vgtrk.com/listen?id=1359030 | |
#EXTINF:2539, Языковые изменения и проблемы орфографии | |
http://audio.vgtrk.com/listen?id=1360215 | |
#EXTINF:2105, Латиница и кириллица: соперники или союзники? | |
http://audio.vgtrk.com/listen?id=1360846 | |
#EXTINF:2223, Паронимы | |
http://audio.vgtrk.com/listen?id=1362651 | |
#EXTINF:2035, Омонимы |
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.text.SimpleTemplateEngine | |
import java.lang.reflect.Method | |
def classFQN = args.length > 0? args[0]: System.exit(1) | |
Class<?> clazz = Class.forName(classFQN, false, getClass().getClassLoader()) | |
class BuilderTemplateWrapper { | |
final Class<?> clazz |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration scan="true" scanPeriod="30 seconds" debug="true"> | |
<property name="FILE_LOG_PATTERN" | |
value="%d{dd/MM HH:mm:ss:SS} %level [%thread] %logger{10} [%file:%line] %msg%n"/> | |
<property name="LOG_PATH" | |
value="#[[$logPrefix$]]#" /> | |
<!-- APPLICATION LOGGING--> |
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.panbet.tree | |
import org.apache.commons.io.IOCase | |
import org.apache.commons.io.monitor.FileAlterationListener | |
import org.apache.commons.io.monitor.FileAlterationMonitor | |
import org.apache.commons.io.monitor.FileAlterationObserver | |
import static org.apache.commons.io.filefilter.FileFilterUtils.* | |
OlderNewer