This file contains hidden or 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
using System; | |
using System.Net; | |
using System.Runtime.InteropServices; | |
namespace DZ.Opc.Integration.Internal | |
{ | |
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] | |
public struct COSERVERINFO | |
{ | |
public uint dwReserved1; |
This file contains hidden or 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
void | |
ClearCells(XtermWidget xw, int flags, unsigned len, int row, int col) | |
{ | |
if (len != 0) { | |
TScreen *screen = TScreenOf(xw); | |
LineData *ld; | |
unsigned n; | |
ld = getLineData(screen, row); |
This file contains hidden or 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 | |
setlocal enabledelayedexpansion | |
IF [%1]==[] ( | |
echo Missing argument | |
echo Usage: javakill ^<string^> [/A] [/Q] | |
echo /A - Kill all found processes | |
echo /Q - Be quite ^(don't ask if found more than one process^) | |
goto :exit | |
) |
This file contains hidden or 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
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" session="false" %> | |
<%--@elvariable id="url" type="java.lang.String"--%> | |
<%--@elvariable id="total_records" type="java.lang.Integer"--%> | |
<%--@elvariable id="current_page" type="java.lang.Integer"--%> | |
<%--@elvariable id="page_size" type="java.lang.Integer"--%> | |
<style type="text/css"> | |
div.pagination { | |
margin-top: 10px; |
This file contains hidden or 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 http-equiv="X-UA-Compatible" content="IE=edge"> | |
</head> | |
<body onload="onLoad()"> | |
<script type="text/javascript"> | |
var jsilConfig = { | |
printStackTrace: false, | |
xna: 4, |
This file contains hidden or 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.playground.myapp.web; | |
import org.hibernate.SessionFactory; | |
import org.hibernate.cfg.Configuration; | |
import org.hibernate.service.ServiceRegistry; | |
import org.hibernate.service.ServiceRegistryBuilder; | |
import javax.servlet.ServletContext; | |
import javax.servlet.ServletContextEvent; | |
import javax.servlet.ServletContextListener; |
This file contains hidden or 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 su.elwood; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.SerializationFeature; | |
import org.apache.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.springframework.web.servlet.ModelAndView; | |
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; | |
import javax.servlet.http.HttpServletRequest; |
This file contains hidden or 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
<%@ taglib tagdir="/WEB-INF/tags/util" prefix="util" %> | |
<%-- tag should be placed to Web-inf/tags/util/toJson.tag --%> | |
<script id="scheduleData" type="json-data"><util:toJson source="${schedule}"/></script> |
This file contains hidden or 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
#!/bin/bash | |
for FILE in ./*.sql; do | |
echo "Importing $FILE" | |
/cygdrive/c/Program\ Files/MySQL/MySQL\ Server\ 5.6/bin/mysql.exe -u root -padmin --database mydb < $FILE | |
done |
This file contains hidden or 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
Tables: | |
a (id, name) | |
b (id, name) | |
a_to_b (a_id, b_id) | |
Outputs: | |
a_id a_name b_ids_over_comma | |
select *, STUFF( | |
(SELECT ',' + LTRIM(RTRIM(b.name)) |
OlderNewer