Skip to content

Instantly share code, notes, and snippets.

@elw00d
elw00d / pager.jsp
Created February 27, 2014 11:48
Simple pagination for JSP
<%@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;
@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
)
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);
@elw00d
elw00d / Interop.cs
Created January 30, 2012 11:11
Interop with credentials
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;