New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
C#
XmlDbData xdb = XmlDbData.ReadData("KolipokiWandIntsSkills");
SkillNames SkillGuid = 0L;
if ((xdb != null) && (xdb.Tables != null))
{
    XmlDbTable table;
    if (xdb.Tables.TryGetValue("SkillList", out table) && (table != null))
    {
        foreach (XmlDbRow row in table.Rows)
        {
Today @ 7:56pm
Tags:
5 Views
no comments
 
<?xml version="1.0"?>
<KolipokiWandIntsSkills>
<NewValues>
  <Name></Name>
  <Hex></Hex>
</NewValues>
<NewValues>
  <Name>Magic>
  <Hex>25</Hex>
</NewValues>
Today @ 7:50pm
Tags:
5 Views
no comments
 
C++
//
// main.cpp
// by Nathan Belue
// on Feb 08, 2009
//
 
 
 
//-----------------
// Included files
Today @ 7:27pm
Tags:
6 Views
no comments
 
    For Each item As String In From number In Split(text, " ") Order By number Select number
      If Not String.IsNullOrEmpty(item) AndAlso item.Length <= 20 Then ticketNumbers.Add(item)
    Next
by Martin Harris   Today @ 5:48pm
Tags: LINQ
14 Views
no comments
 
    Throw New System.NotImplementedException()
by Martin Harris   Today @ 4:29pm
Tags: Test
13 Views
no comments
 
package inlämning4;
 
import se.lth.cs.pt.dots.*;
import se.lth.cs.pt.dots.events.*;
import se.lth.cs.pt.io.Keyboard;
import se.lth.cs.pt.maze.MazeGenerator;
 
 
 
 public class Main {
Today @ 3:41pm
Tags:
5 Views
no comments
 
C#
string.IsNullOrEmtpy("blah")
Today @ 3:23pm
Tags:
4 Views
no comments
 
''' <summary>
''' Generates the Batch XML from the passed connection.
''' </summary>
''' <param name="DBConn">KC Database Connection.</param>
''' <param name="BatchXMLFileName">File Name to export Batch XML to.</param>
''' <remarks>This is the kickoff point to generate the Batch XML file.</remarks>
Public Sub GenerateBatchXML(ByRef DBConn As Kofax.IKfxDb.IKfxConnection, ByVal BatchXMLFileName As String)
 
    My.Application.LogFuncEntry("GenerateBatchXML")
Today @ 2:47pm
Tags:
5 Views
no comments
 
package inlämning4;
 
import se.lth.cs.pt.dots.*;
import se.lth.cs.pt.dots.events.*;
import se.lth.cs.pt.io.Keyboard;
import se.lth.cs.pt.maze.MazeGenerator;
 
 
 
 public class Main {
Today @ 2:43pm
Tags:
6 Views
no comments
 
C#
public class LoggerRegistry : PartRegistry
{
    public LoggerRegistry()
    {
        Part<PartConvention>()
            .ForTypesMatching(x => x.GetInterfaces().Contains(typeof(ILogger)))
            .Exports(x => x.Export<ExportConvention>()
                .ContractType<ILogger>()
                .ContractName<ILogger>()
                .Members(m => new[] { m }))
by TheCodeJunkie   Today @ 2:38pm
Tags:
6 Views
no comments
 
package inlämning4;
 
import se.lth.cs.pt.dots.*;
import se.lth.cs.pt.dots.events.*;
import se.lth.cs.pt.io.Keyboard;
import se.lth.cs.pt.maze.MazeGenerator;
 
 
 
 public class Main {
Today @ 2:27pm
Tags:
5 Views
no comments
 
import se.lth.cs.pt.dots.*;
import se.lth.cs.pt.dots.events.*;
import se.lth.cs.pt.maze.MazeGenerator;
 
/** 
 *
 * Jacob Svenstrup / Philip Sandwall
 */
public class Main {
    private int width, noOfBoxesX, noOfBoxesY;
by Ogge   Today @ 1:39pm
Tags: Maze
8 Views
no comments
 
<script type="text/javascript">
 $.fn.timeout = function(t,f){
  this.each(function(){setTimeout(f,t);  });  
return this; 
};
</script>
 <script type="text/javascript">
 
$(document).ready(function(){
                            
Today @ 12:53pm
Tags:
9 Views
no comments
 
C++
#include <map>
#include <iostream>
#include <string>
 
void SomeFunc( int nVal )
{
    std::cout << nVal << std::endl;
}
 
void SomeFunc( std::string strVal )
Today @ 12:47pm
Tags:
5 Views
no comments
 
C#
static void Main(string[] args)
{
    Dictionary<string, string> dStr = new Dictionary<string,string>();
    dStr["Hello"] = "World";
    SomeGenericFunc<string>(dStr);
 
    Dictionary<string, int> dInt = new Dictionary<string, int>();
    dInt["Age"] = 10;
    SomeGenericFunc<int>(dInt);
Today @ 12:46pm
Tags:
5 Views
no comments
 
package invest;
 
import java.util.Scanner;
import java.text.DecimalFormat;
 
public class Invest
{
    public static void main(String[] args) 
    {
        double P = 0.0; // dollar
Today @ 12:44pm
Tags:
6 Views
no comments
 
package dice;
import java.util.Random;
 
public class Dice
{
    public static void main(String[] args)
    {
        int dice1, dice2;
        int sum = 0;
Today @ 12:43pm
Tags:
5 Views
no comments
 
package righttriangle;
 
import java.util.Scanner;
import java.util.Random;
 
public class Triangle {
 
    public static void main(String[] args)
    {
        double side1, side2;
Today @ 12:43pm
Tags:
6 Views
no comments
 
package sumofdigits;
 
import java.util.Scanner;
 
public class SumOfDigits {
 
 
    public static void main(String[] args)
    {
        Scanner scan = new Scanner( System.in );
Today @ 12:42pm
Tags:
7 Views
no comments
 
package piglatin;
 
import java.util.Scanner;
 
public class PigLatin
{
    public static void main(String[] args)
    {
        Scanner scan = new Scanner( System.in );
Today @ 12:41pm
Tags:
6 Views
no comments
 
package email;
 
import java.util.Scanner;
 
public class Email
{
    public static void main(String[] args)
    {
        Scanner scan = new Scanner( System.in );
Today @ 12:32pm
Tags:
7 Views
no comments
 
<?php
include "globals.php";
print "&lt;h3>Fengsel</h3>
<table width='75%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr bgcolor=gray><th>Nick</th> <th>Level</th> <th>Tid</th><th>Grunn</th> <th>Muligheter</th></tr>";
$q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC");
while($r=$db->fetch_row($q))
{
print "\n<tr><td>{$r['gangPREFIX']} <a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> [{$r['userid']}]</td><td>{$r['level']}</td><td>{$r['jail']} minutter</td><td>{$r['jail_reason']}</td> <td>[<a href='jailbust.php?ID={$r['userid']}'>Bryt ut</a>][<a href='jailbail.php?ID={$r['userid']}'>Kjøp ut</a>]</td></tr>";
}
print "</table>";
Today @ 12:29pm
Tags:
5 Views
no comments
 
import java.util.*;
 
public class CreateEmails
{
 
// Indata är ett namn, utdata skall vara en email adress i formatet kalsve@student.hh.se
public static void main (String [] arg)
{
 
         Scanner scan= new Scanner( System.in); 
by Sara   Today @ 12:20pm
Tags:
4 Views
no comments
 
<html>
<body>
 
<form action="notisblokk.php" method="get">
Tekst: <br><input type="tekst" name="text" />
 
<input type="submit" name="lagre"/>
</form>
 
Today @ 12:11pm
Tags:
6 Views
no comments
 
package email;
 
import java.util.Scanner;
 
public class Email
{
    public static void main(String[] args)
    {
        Scanner scan = new Scanner( System.in );
Today @ 11:47am
Tags:
6 Views
no comments
 
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate