code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
#include <QJson/Parser>
#include "blogger_data_manager.h"
blogger_data_manager::blogger_data_manager()
{
m_idBlog = -1;
m_pNetworkAccessManager = new QNetworkAccessManager(this);
connect(m_pNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
}
/*! ... | zxfengthu-tsinghua | blogger_data_manager.cpp | C++ | gpl3 | 4,108 |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "form.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(ui->actionQuit, SIGNAL(triggered()), this, SLOT(close()));
connect(ui->actionLogin, SIGNAL(triggered()), this, SLO... | zxfengthu-tsinghua | mainwindow.cpp | C++ | gpl3 | 828 |
require 'net/http'
server = "msdl.microsoft.com"
pdb = "ntkrnlmp"
guid = "30092be745b24fe2a311a936e7b7486f2"
uri = "/download/symbols/#{pdb}.pdb/#{guid}/#{pdb}.pd_"
dest = "#{pdb}.pd_"
puts uri
Net::HTTP.start(server) { |http|
headers = {"User-Agent" => "Microsoft-Symbol-Server/6.6.0007.5"}
resp = http.get(u... | zuanshijiyi-virtdbg | misc/download.rb | Ruby | gpl3 | 415 |
export RUBYLIB=../ext/metasm:../src/metasm/
export LD_LIBRARY_PATH=/usr/local/lib
| zuanshijiyi-virtdbg | samples/setenv.sh | Shell | gpl3 | 83 |
# This file is part of Virtdbg
# Copyright (C) 2010-2011 Damien AUMAITRE
#
# Licence is GPLv3, see LICENCE.txt in the top-level directory
require 'metasm'
require 'virtdbg'
require 'optparse'
$VERBOSE = false
# parse arguments
opts = { :device => 0 }
OptionParser.new { |opt|
opt.banner = 'Usage: virtdbg.... | zuanshijiyi-virtdbg | samples/virtdbg-ui.rb | Ruby | gpl3 | 1,203 |
# This file is part of Virtdbg
# Copyright (C) 2010-2011 Damien AUMAITRE
#
# Licence is GPLv3, see LICENCE.txt in the top-level directory
module VirtDbg
VIRTDBGDIR = File.dirname(__FILE__)
# add it to the ruby library path
$: << VIRTDBGDIR
end
%w[forensic1394 virtdbg util main system].each { |f|
require ... | zuanshijiyi-virtdbg | src/metasm/virtdbg.rb | Ruby | gpl3 | 347 |
# This file is part of Metasm, the Ruby assembly manipulation suite
# Copyright (C) 2006-2009 Yoann GUILLOT
#
# Licence is LGPL, see LICENCE in the top-level directory
#
# this exemple illustrates the use of the cparser/preprocessor #factorize functionnality:
# we write some code using standard headers, and t... | zuanshijiyi-virtdbg | src/metasm/factorize-headers.rb | Ruby | gpl3 | 1,250 |
/*
This file is part of libforensic1394.
Copyright (C) 2010 Freddie Witherden <freddie@witherden.org>
libforensic1394 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 o... | zuanshijiyi-virtdbg | src/metasm/inc/forensic1394.h | C | gpl3 | 20,725 |
typedef unsigned long ULONG;
typedef ULONG *PULONG;
typedef unsigned short USHORT;
typedef USHORT *PUSHORT;
typedef unsigned char UCHAR;
typedef UCHAR *PUCHAR;
typedef char *PSZ;
typedef char CHAR;
typedef short SHORT;
typedef long LONG;
typedef int INT;
typedef SHORT *PSHORT; // winnt
typedef LONG *PLONG; // win... | zuanshijiyi-virtdbg | src/metasm/inc/virtdbg.h | C | gpl3 | 5,122 |
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
wdbgexts.h
Abstract:
This file contains the necessary prototypes and data types for a user
to write a debugger extension DLL. This header file is also included
by the NT debuggers (WINDBG & KD).
This hea... | zuanshijiyi-virtdbg | src/metasm/inc/wdbgexts.h | C | gpl3 | 10,796 |
# This file is part of Virtdbg
# Copyright (C) 2010-2011 Damien AUMAITRE
#
# Licence is GPLv3, see LICENCE.txt in the top-level directory
require 'metasm'
require 'metasm/dynldr'
include Metasm
module VirtDbg
class Forensic1394 < Metasm::DynLdr
new_api_c File.read(File.join(VIRTDBGDIR, "inc", ... | zuanshijiyi-virtdbg | src/metasm/virtdbg/forensic1394.rb | Ruby | gpl3 | 5,665 |
# This file is part of Virtdbg
# Copyright (C) 2010-2011 Damien AUMAITRE
#
# Licence is GPLv3, see LICENCE.txt in the top-level directory
require 'metasm'
require 'metasm/dynldr'
include Metasm
module VirtDbg
class VirtDbgMem < VirtualString
def initialize(impl, addr=0, length=nil)
... | zuanshijiyi-virtdbg | src/metasm/virtdbg/main.rb | Ruby | gpl3 | 6,788 |
# This file is part of Virtdbg
# Copyright (C) 2010-2011 Damien AUMAITRE
#
# Licence is GPLv3, see LICENCE.txt in the top-level directory
require 'metasm'
require 'metasm/dynldr'
require 'iconv'
class String
def utf16_to_iso
converter = Iconv.new('ISO-8859-1//IGNORE//TRANSLIT', 'UTF-16')
... | zuanshijiyi-virtdbg | src/metasm/virtdbg/system.rb | Ruby | gpl3 | 4,839 |
# This file is part of Virtdbg
# Copyright (C) 2010-2011 Damien AUMAITRE
#
# Licence is GPLv3, see LICENCE.txt in the top-level directory
require 'metasm'
require 'metasm/dynldr'
include Metasm
def calc_checksum(data)
data.unpack('C*').inject(0) { |sum, byte| sum+byte }
end
module VirtDbg
class ... | zuanshijiyi-virtdbg | src/metasm/virtdbg/virtdbg.rb | Ruby | gpl3 | 16,906 |
# ripped from metasm/misc
class IO
def hexdump(ctx={})
ctx[:noend] = true
while buf = read(512) and not buf.empty?
buf.hexdump(ctx)
end
ctx.delete :noend
''.hexdump(ctx)
end
end
class String
def hexdump(ctx={})
fmt = ctx[:fmt] ||= ['c', 'd', 'a']
... | zuanshijiyi-virtdbg | src/metasm/virtdbg/util.rb | Ruby | gpl3 | 1,214 |
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
void PrintError()
{
DWORD dw;
LPVOID lpMsg;
dw = GetLastError();
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
dw,
... | zuanshijiyi-virtdbg | src/loader/loader.c | C | gpl3 | 2,634 |
build -czgw
| zuanshijiyi-virtdbg | src/make.bat | Batchfile | gpl3 | 14 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef _VIRTDBG_VMX_H
#define _VIRTDBG_VMX_H
#include <ntddk.h>
#include "amd64.h"
#include "misc.h"
#include "mem.h"
typedef struct _VIRT_CPU {
PVOID Self;
ULONG32 P... | zuanshijiyi-virtdbg | src/virtdbg/vmx.h | C | gpl3 | 13,929 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#include "virtdbg.h"
static KMUTEX g_mutex;
static LONG g_processors = 0;
PVIRT_CPU *g_cpus = NULL;
PVIRTDBG_CONTROL_AREA g_ControlArea = NULL;
LONG g_Initialized = 0;
static... | zuanshijiyi-virtdbg | src/virtdbg/virtdbg.c | C | gpl3 | 4,990 |
/*
* Copyright Patrick Powell 1995
* This code is based on code written by Patrick Powell (papowell@astart.com)
* It may be used for any purpose as long as this notice remains intact
* on all source code distributions
*/
/**************************************************************
* Original:
* Patr... | zuanshijiyi-virtdbg | src/virtdbg/snprintf.c | C | gpl3 | 15,314 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#include "driver.h"
NTSTATUS DriverUnload(PDRIVER_OBJECT DriverObject)
{
CCHAR i;
KIRQL OldIrql;
KAFFINITY OldAffinity;
for (i=0; i<KeNumberProcessors; i++... | zuanshijiyi-virtdbg | src/virtdbg/driver.c | C | gpl3 | 1,157 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#include "mem.h"
PVOID AllocateMemory(ULONG32 Size)
{
PVOID pMem = NULL;
pMem = ExAllocatePoolWithTag(NonPagedPool, Size, VIRTDBG_POOLTAG);
if (pMem == NULL)
... | zuanshijiyi-virtdbg | src/virtdbg/mem.c | C | gpl3 | 1,531 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#include "log.h"
PVOID g_LogBuffer = NULL;
static LONG g_LogIndex = 0;
static PKSPIN_LOCK g_LogLock;
PVOID InitLog()
{
g_LogBuffer = AllocateMemory(LOGBUFFER_SIZE);
i... | zuanshijiyi-virtdbg | src/virtdbg/log.c | C | gpl3 | 1,816 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef AMD64_H
#define AMD64_H
#include <ntddk.h>
#define KGDT64_NULL (0 * 16) // NULL descriptor
#define KGDT64_R0_CODE (1 * 16) // kernel mode 64-bit code
#... | zuanshijiyi-virtdbg | src/virtdbg/amd64.h | C | gpl3 | 14,031 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#include "protocol.h"
static LONG g_Id = 0;
static ULONG32 g_LastId = 0;
static ULONG32 g_ClientId = 0;
static PVOID g_SendArea = NULL;
static PVOID g_RecvArea = NULL;
extern ... | zuanshijiyi-virtdbg | src/virtdbg/protocol.c | C | gpl3 | 5,485 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef _MEM_H
#define _MEM_H
#include <ntddk.h>
#define P_PRESENT 0x01
#define P_WRITABLE 0x02
#define P_USERMODE 0x04
#define P_WRITETHROUGH 0x08
#define P_CACHE_D... | zuanshijiyi-virtdbg | src/virtdbg/mem.h | C | gpl3 | 784 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef _VIRTDBG_DRIVER_H
#define _VIRTDBG_DRIVER_H
#include <ntddk.h>
#include "virtdbg.h"
#endif
| zuanshijiyi-virtdbg | src/virtdbg/driver.h | C | gpl3 | 245 |
!INCLUDE $(NTMAKEENV)\makefile.def
| zuanshijiyi-virtdbg | src/virtdbg/Makefile | Makefile | gpl3 | 36 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef _VIRTDBG_DEBUG_H
#define _VIRTDBG_DEBUG_H
#include <ntddk.h>
#include "amd64.h"
#include "vmx.h"
#include "mem.h"
#include "protocol.h"
NTSTATUS InitDebugLayer();
sta... | zuanshijiyi-virtdbg | src/virtdbg/debug.h | C | gpl3 | 1,781 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef _VIRTDBG_PROTOCOL_H
#define _VIRTDBG_PROTOCOL_H
#include <ntddk.h>
#include "misc.h"
#include "mem.h"
typedef struct _VIRTDBG_CONTROL_AREA
{
ULONG32 Magic1;
UL... | zuanshijiyi-virtdbg | src/virtdbg/protocol.h | C | gpl3 | 4,504 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#include "debug.h"
extern LONG g_Initialized;
extern PVIRTDBG_CONTROL_AREA g_ControlArea;
static PKSPIN_LOCK g_FreezeLock = NULL;
static LONG g_pagefaults = 0;
NTSTATUS Init... | zuanshijiyi-virtdbg | src/virtdbg/debug.c | C | gpl3 | 36,115 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef _VIRTDBG_MAIN_H
#define _VIRTDBG_MAIN_H
#include <ntddk.h>
#include "amd64.h"
#include "vmx.h"
#include "mem.h"
#include "debug.h"
#include "misc.h"
#include "protocol.... | zuanshijiyi-virtdbg | src/virtdbg/virtdbg.h | C | gpl3 | 493 |
#ifndef _PORTABLE_SNPRINTF_H_
# define _PORTABLE_SNPRINTF_H_
extern int snprintf (
char *,
size_t,
const char *, /*args */
...
);
extern int vsnprintf (
char *,
size_t,
const char *,
va_list
);
#endif
| zuanshijiyi-virtdbg | src/virtdbg/snprintf.h | C | gpl3 | 252 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef _VIRTDBG_MISC_H
#define _VIRTDBG_MISC_H
#include <ntddk.h>
#include "log.h"
//#define DbgLog(_args_) { DbgPrint("virtdbg[#%d][IRQL=0x%x](%s): ", KeGetCurrentProcessorN... | zuanshijiyi-virtdbg | src/virtdbg/misc.h | C | gpl3 | 531 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#ifndef VIRTDBG_LOG_H
#define VIRTDBG_LOG_H
#include <ntddk.h>
#include "snprintf.h"
#include "mem.h"
#include <stdarg.h>
#define LOGBUFFER_SIZE 0x1000
PVOID InitLog();
VOID... | zuanshijiyi-virtdbg | src/virtdbg/log.h | C | gpl3 | 354 |
// This file is part of Virtdbg
// Copyright (C) 2010-2011 Damien AUMAITRE
// Licence is GPLv3, see LICENCE.txt in the top-level directory
#include "vmx.h"
VOID DumpVirtCpu(PVIRT_CPU pCpu)
{
DbgLog(("pCpu @ %p\n", pCpu));
DbgLog(("pCpu->Self=0x%llx\n", pCpu->Self));
DbgLog(("pCpu->ProcessorNumber=0x%... | zuanshijiyi-virtdbg | src/virtdbg/vmx.c | C | gpl3 | 12,707 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Iesi.Collections;
using Iesi.Collections.Generic;
namespace Eg.ManualRelationships
{
public class Order
{
public virtual Guid Id { get; set; }
public Order()
{
//_ite... | zxt-cookbook | trunk/ManualRelationships/Order.cs | C# | mit | 1,127 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Iesi.Collections;
namespace Eg.ManualRelationships
{
public class OrderItem
{
public virtual Guid Id { get; protected set; }
public virtual Order Order { get; protected set; }
publ... | zxt-cookbook | trunk/ManualRelationships/OrderItem.cs | C# | mit | 775 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/ManualRelationships/Properties/AssemblyInfo.cs | C# | mit | 1,502 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConfORMMappings
{
class Program
{
static void Main(string[] args)
{
}
}
}
| zxt-cookbook | trunk/ConfORMMappings/Program.cs | C# | mit | 224 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/ConfORMMappings/Properties/AssemblyInfo.cs | C# | mit | 1,494 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
namespace Eg.Core.Data
{
public class DataAccessObject<T,TId>
where T : Entity<TId>
{
private readonly ISessionFactory _sessionFactory;
private ISession session
... | zxt-cookbook | trunk/Eg.Core.Data/DataAccessObject.cs | C# | mit | 1,845 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Eg.Core.Data/Properties/AssemblyInfo.cs | C# | mit | 1,488 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConfigByXML
{
class Program
{
static void Main(string[] args)
{
}
}
}
| zxt-cookbook | trunk/ConfigByXML/Program.cs | C# | mit | 220 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/ConfigByXML/Properties/AssemblyInfo.cs | C# | mit | 1,486 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Tool.hbm2ddl;
using NHibernate.Cfg;
namespace ConfigByAppconfig
{
class Program
{
static void Main(string[] args)
{
var nhConfig = new Configuration().Configure();
... | zxt-cookbook | trunk/ConfigByAppconfig/Program.cs | C# | mit | 600 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/ConfigByAppconfig/Properties/AssemblyInfo.cs | C# | mit | 1,498 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.IO;
using System.Reflection;
using System.Runtime.Serialization.Formatters.Binary;
using Configuration = NHibernate.Cfg.Configuration;
namespace ConfigByAppconfig
{
public cla... | zxt-cookbook | trunk/ConfigByAppconfig/ConfigurationBuilder.cs | C# | mit | 2,801 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.ComponentExamples
{
public class Address
{
public virtual string Lines { get; set; }
public virtual string City { get; set; }
public virtual string State { get; set; }
... | zxt-cookbook | trunk/Eg.ComponentExamples/Address.cs | C# | mit | 378 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Eg.ComponentExamples/Properties/AssemblyInfo.cs | C# | mit | 1,504 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.ComponentExamples
{
public class Customer
{
public virtual string Name { get; set; }
public virtual Address BillingAddress { get; set; }
public virtual Address ShippingAddress ... | zxt-cookbook | trunk/Eg.ComponentExamples/Customer.cs | C# | mit | 347 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.Core
{
public abstract class Entity<TId>
{
public virtual TId Id { get; protected set; }
public virtual int Version { get; set; }
public override bool Equals(object obj)
... | zxt-cookbook | trunk/Eg.Core/Entity.cs | C# | mit | 1,673 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.Core
{
public class Movie : Product
{
public virtual string Director { get; set; }
public virtual IList<ActorRole> Actors { get; set; }
}
}
| zxt-cookbook | trunk/Eg.Core/Movie.cs | C# | mit | 284 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.Core
{
public class Book : Product
{
public virtual string ISBN { get; set; }
public virtual string Author { get; set; }
}
}
| zxt-cookbook | trunk/Eg.Core/Book.cs | C# | mit | 269 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.Core
{
public class Product : Entity
{
public virtual string Name { get; set; }
public virtual string Description { get; set; }
public virtual decimal UnitPrice { get; set; }
... | zxt-cookbook | trunk/Eg.Core/Product.cs | C# | mit | 332 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Eg.Core/Properties/AssemblyInfo.cs | C# | mit | 1,478 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.Core
{
public class ActorRole : Entity
{
public virtual string Actor { get; set; }
public virtual string Role { get; set; }
}
}
| zxt-cookbook | trunk/Eg.Core/ActorRole.cs | C# | mit | 272 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eg.Core.Data.Repozitory;
using NHibernate;
namespace Eg.Core.Data.Repository.Impl
{
public class NHibernateRepository<T>:NHibernateBase,IRepository<T> where T : Entity
{
public NHibernateRepository(I... | zxt-cookbook | trunk/Eg.Core.Data.Repository.Impl/NHibernateRepository.cs | C# | mit | 1,467 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Eg.Core.Data.Repository.Impl/Properties/AssemblyInfo.cs | C# | mit | 1,520 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
namespace Eg.Core.Data.Repository.Impl
{
public abstract class NHibernateBase
{
protected readonly ISessionFactory _sessionFactory;
protected ISession session
{
... | zxt-cookbook | trunk/Eg.Core.Data.Repository.Impl/NHibernateBase.cs | C# | mit | 1,261 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
namespace Eg.FluentMappings.Mappings
{
public class ProductMapping : ClassMap<Product>
{
public ProductMapping()
{
Id(p => p.Id)
.Gener... | zxt-cookbook | trunk/Eg.FluentMappings/Mappings/ProductMapping.cs | C# | mit | 663 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
namespace Eg.FluentMappings.Mappings
{
public class BookMapping : SubclassMap<Book>
{
public BookMapping()
{
Map(p => p.Author);
Map(p=>p.D... | zxt-cookbook | trunk/Eg.FluentMappings/Mappings/BookMapping.cs | C# | mit | 357 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
namespace Eg.FluentMappings.Mappings
{
public class ActorRoleMapping : ClassMap<ActorRole>
{
public ActorRoleMapping()
{
Id(ar => ar.Id)
... | zxt-cookbook | trunk/Eg.FluentMappings/Mappings/ActorRoleMapping.cs | C# | mit | 542 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
namespace Eg.FluentMappings.Mappings
{
public class MovieMapping : SubclassMap<Movie>
{
public MovieMapping()
{
Map(m => m.Director);
HasMa... | zxt-cookbook | trunk/Eg.FluentMappings/Mappings/MovieMapping.cs | C# | mit | 456 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.FluentMappings
{
public abstract class Entity<TId>
{
public virtual TId Id { get; protected set; }
public virtual int Version { get; set; }
public override bool Equals(object... | zxt-cookbook | trunk/Eg.FluentMappings/Entity.cs | C# | mit | 1,683 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.FluentMappings
{
public class Movie : Product
{
public virtual string Director { get; set; }
public virtual IList<ActorRole> Actors { get; set; }
}
}
| zxt-cookbook | trunk/Eg.FluentMappings/Movie.cs | C# | mit | 294 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.FluentMappings
{
public class Book : Product
{
public virtual string ISBN { get; set; }
public virtual string Author { get; set; }
}
}
| zxt-cookbook | trunk/Eg.FluentMappings/Book.cs | C# | mit | 279 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.FluentMappings
{
public class Product : Entity
{
public virtual string Name { get; set; }
public virtual string Description { get; set; }
public virtual decimal UnitPrice { get... | zxt-cookbook | trunk/Eg.FluentMappings/Product.cs | C# | mit | 342 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Eg.FluentMappings/Properties/AssemblyInfo.cs | C# | mit | 1,498 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.FluentMappings
{
public class ActorRole : Entity
{
public virtual string Actor { get; set; }
public virtual string Role { get; set; }
}
}
| zxt-cookbook | trunk/Eg.FluentMappings/ActorRole.cs | C# | mit | 282 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using ConfOrm;
using ConfOrm.NH;
using ConfOrm.Patterns;
using ConfOrm.Shop.CoolNaming;
using Eg.Core;
using NHibernate;
using NHibernate.Cfg.MappingSche... | zxt-cookbook | trunk/Eg.ConfORMMappings/Program.cs | C# | mit | 1,269 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Eg.ConfORMMappings/Properties/AssemblyInfo.cs | C# | mit | 1,500 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.MappingEnums
{
public class Account
{
public virtual Guid Id { get; set; }
public virtual AccountTypes AcctType { get; set; }
public virtual string Number { get; set; }
... | zxt-cookbook | trunk/Eg.MappingEnums/Account.cs | C# | mit | 376 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.MappingEnums
{
public enum AccountTypes
{
Consumer,
Business,
Corporate,
NonProfit
}
}
| zxt-cookbook | trunk/Eg.MappingEnums/AccountTypes.cs | C# | mit | 249 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Eg.MappingEnums/Properties/AssemblyInfo.cs | C# | mit | 1,494 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using Eg.Core;
namespace Queries
{
public class ExampleDataCreator
{
private readonly ISessionFactory _sessionFactory;
public ExampleDataCreator(ISessionFactory sessionFactory)
... | zxt-cookbook | trunk/Queries/ExampleDataCreator.cs | C# | mit | 2,580 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using Eg.Core;
namespace Queries
{
class Program
{
static void Main(string[] args)
{
}
static void RunQueries(ISession session)
{
}
... | zxt-cookbook | trunk/Queries/Program.cs | C# | mit | 2,566 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Queries
{
public class NameAndPrice
{
public NameAndPrice(string name, decimal price)
{
Name = name;
Price = price;
}
public string Name { get... | zxt-cookbook | trunk/Queries/NameAndPrice.cs | C# | mit | 386 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Queries/Properties/AssemblyInfo.cs | C# | mit | 1,478 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
namespace Queries
{
public class Queries
{
private readonly ISession _session;
public Queries(ISession session)
{
if (session == null)
{
... | zxt-cookbook | trunk/Queries/Queries.cs | C# | mit | 456 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eg.Core.Data.Repozitory
{
public interface IRepository<T> : IEnumerable<T>
where T:Entity
{
void Add(T item);
bool Contains(T item);
int Count { get; }
bool Remo... | zxt-cookbook | trunk/Eg.Core.Data.Repozitory/IRepository.cs | C# | mit | 345 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | zxt-cookbook | trunk/Eg.Core.Data.Repozitory/Properties/AssemblyInfo.cs | C# | mit | 1,510 |
#!/bin/sh
java -classpath "file:/root/soft/utility/lib/*" -jar -Dbasedir=/root/soft/utility/ utility.jar >> "debug.log" 2>&1 "&"
| zxmr-utility | trunk/start.sh | Shell | asf20 | 129 |
#!/bin/sh
java -classpath "file:/root/soft/utility/lib/*" -jar -Dbasedir=/root/soft/utility/ utility.jar >> "debug.log" 2>&1 "&"
| zxmr-utility | trunk/.svn/text-base/start.sh.svn-base | Shell | asf20 | 129 |
#!/bin/bash
exec ./start.sh &
| zxmr-utility | trunk/.svn/text-base/1.sh.svn-base | Shell | asf20 | 30 |
package com.zxmr.utility;
import java.io.File;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import com.zxmr.CommonInit;
import com.zxmr.component.SimpleServerStarter;
import com.zxmr.c... | zxmr-utility | trunk/src/com/zxmr/utility/Starter.java | Java | asf20 | 1,754 |
package com.zxmr.utility.service;
public class UserActionSearchBean {
int company;
String user;
String fromTime;
String toTime;
int start;
int limit;
public int getCompany() {
return company;
}
public void setCompany(int company) {
this.company = company;
}
public String getUser() {
return user;
}
... | zxmr-utility | trunk/src/com/zxmr/utility/service/UserActionSearchBean.java | Java | asf20 | 836 |
package com.zxmr.utility.service;
import java.sql.SQLException;
import java.util.List;
import com.zxmr.db.DBManager;
import com.zxmr.domain.account.User;
import com.zxmr.domain.component.UserActionTrace;
import com.zxmr.util.Utils;
import com.zxmr.utility.ComponentInit;
public class UserActionTraceService {
DBMana... | zxmr-utility | trunk/src/com/zxmr/utility/service/UserActionTraceService.java | Java | asf20 | 1,373 |
package com.zxmr.utility;
import java.io.IOException;
import com.zxmr.asyn.TaskMonitor;
import com.zxmr.db.DBManager;
import com.zxmr.utility.audit.TaskStateAuditManager;
public class ComponentInit {
static DBManager db;
static TaskMonitor auditMonitor;
public static void initCommonSqlMapper(String config)
{
... | zxmr-utility | trunk/src/com/zxmr/utility/ComponentInit.java | Java | asf20 | 762 |
package com.zxmr.utility.dto;
import java.util.List;
public class JSONListDTO {
List<? extends Object> rows;
int total;
public List<? extends Object> getRows() {
return rows;
}
public void setRows(List<? extends Object> rows) {
this.rows = rows;
}
public int getTotal() {
return total;
}
public void ... | zxmr-utility | trunk/src/com/zxmr/utility/dto/JSONListDTO.java | Java | asf20 | 369 |
package com.zxmr.utility.dto;
import java.util.HashMap;
import java.util.Map;
public class ResourceAuthDTO {
String role;
int roleId;
Map<String,Boolean> actions = new HashMap<String,Boolean>();
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public int ... | zxmr-utility | trunk/src/com/zxmr/utility/dto/ResourceAuthDTO.java | Java | asf20 | 559 |
package com.zxmr.utility.dto;
import com.zxmr.domain.file.ResourceLevel;
public class ResourceListDTO {
String id;
String text;
String state;
ResourceLevel level;
boolean folder;
String iconCls;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getText()... | zxmr-utility | trunk/src/com/zxmr/utility/dto/ResourceListDTO.java | Java | asf20 | 879 |
package com.zxmr.utility.action;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.zxmr.action.Request;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.action.ResultCode;
import com.zxmr.domain.account.AccountType;
import com.zxmr.... | zxmr-utility | trunk/src/com/zxmr/utility/action/FolderAction.java | Java | asf20 | 12,057 |
package com.zxmr.utility.action;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSON;
import com.zxmr.action.Request;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.action.ResultCode;
import com.... | zxmr-utility | trunk/src/com/zxmr/utility/action/ResourceAuthAction.java | Java | asf20 | 5,605 |
package com.zxmr.utility.action;
import java.io.UnsupportedEncodingException;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.zxmr.action.Request;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.action.ResultCode;
import com.zxmr.domain.Report;
import com.z... | zxmr-utility | trunk/src/com/zxmr/utility/action/ReportAction.java | Java | asf20 | 4,610 |
package com.zxmr.utility.action;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.zxmr.action.Request;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.action.ResultCode;
import com.zxmr.domain.Task;
import com.zxmr.domain.TaskState;
import com.zxmr.domain.se... | zxmr-utility | trunk/src/com/zxmr/utility/action/MyTask.java | Java | asf20 | 2,931 |
package com.zxmr.utility.action;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.zxmr.action.Request;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.action.ResultCode;
import com.zxmr.domain.Notification;
import com.zxmr.domain.service.NotificationService;... | zxmr-utility | trunk/src/com/zxmr/utility/action/NotificationAction.java | Java | asf20 | 2,578 |
package com.zxmr.utility.action;
import com.alibaba.fastjson.JSON;
import com.zxmr.action.Request;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.action.ResultCode;
import com.zxmr.domain.account.AccountType;
import com.zxmr.domain.account.User;
import com.zxmr.domain.file.Fil... | zxmr-utility | trunk/src/com/zxmr/utility/action/FileAction.java | Java | asf20 | 5,333 |
package com.zxmr.utility.action;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.zxmr.action.Request;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.action.ResultCode;
import com.zxmr.domain.component.UserActionTrace;
import com.zxmr.navigate.ExecuteExcept... | zxmr-utility | trunk/src/com/zxmr/utility/action/UserTraceAction.java | Java | asf20 | 3,484 |
package com.zxmr.utility.action;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.zxmr.action.Request;
import com.zxmr.action.Response;
import com.zxmr.action.ResponsePayload;
import com.zxmr.action.ResultCode;
import com.zxmr.domain.Notification;
import com.zxmr.domain.Task;
import com.zxmr.domain... | zxmr-utility | trunk/src/com/zxmr/utility/action/TaskAction.java | Java | asf20 | 8,761 |