Format:
Recent snippets matching tags of com
http://altitudegame.com/friend/857014
10 Views
no comments
http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014 http://altitudegame.com/friend/857014
10 Views
no comments
Taskkill /IM firefox.exe /F where /F is used to kill the process forcefully. You can also kill any particular process by using it’s ID, the tasklist command displays the process ID’s as well (you can see the PID column in the screenshot). To kill any process using it’s ID, run the command as: Taskkill /PID 2704 /F Now to kill multiple processes simultaneously, run the above command with the PID’s of all the processes followed by spaces Taskkill /PID 2704 5472 4344 /F
30 Views
no comments
using Moq; using NUnit.Framework; using StructureMap; namespace StackOverflow.Question { #region Commands public interface ICommand {
23 Views
no comments
/* Renegade Scripts.dll
Spectate
Copyright 2012 Goldy58
This file is part of the Renegade scripts.dll
The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version. See the file COPYING for more details.
In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
32 Views
no comments
public static int Main(params string[] args) { List<string> filesList = new List<string>(); foreach (string arg in args) { if (arg.StartsWith("-")) { if (arg.ToLower().Contains("nogui")) ...; else if (arg.ToLower().Contains("autostart"))
32 Views
no comments
try { document.execCommand("BackgroundImageCache", false, true); } catch (e) { } var popUpWin; function PopUpCenterWindow(URLStr, width, height, newWin, scrollbars) { var popUpWin = 0; if (typeof (newWin) == "undefined") { newWin = false; } if (typeof (scrollbars) == "undefined") { scrollbars = 0; }
68 Views
no comments
Dim VT as new bidiCardEntities Dim Uyeler=Sorgula.Kont(VT , item.ID) Public Class Sorgula Public Shared ReadOnly Kont As Func(Of bidiCardEntities, Integer, IQueryable(Of Uye)) = CompiledQuery.Compile( Function(vt As bidiCardEntities, ID As Integer) vt.Uye.Where(Function(x) x.ID = ID) ) End Class
62 Views
no comments
copy $(ProjectDir)\..\{path to file} $(TargetDir)
rem add '1>nul' to NOT display any messages from the copy.
rem add '2>nul' to NOT fail the build and to NOT display any error messages from the copy.
152 Views
no comments
package juddiv3admin.gui; import java.awt.Frame; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import javax.swing.JDialog; import javax.swing.SwingWorker; public class SwingWorkerCompletionWaiter implements PropertyChangeListener {
146 Views
no comments
/// <summary> /// Add in item to a collection if it does not contain the specified element by using a IEqualityComparer<>. /// </summary> /// <typeparam name="T">Type of the items in a collection</typeparam> /// <param name="collection">The collection to add the item</param> /// <param name="item">The item to add to the collection</param> /// <param name="comparer">An equality comparer to compare values.</param> /// <returns>true if the item was added to the collection; otherwise, false.</returns> public static bool Add<T>(this ICollection<T> collection, T item, IEqualityComparer<T> comparer) {
174 Views
no comments
/// <summary> /// An entry that can be either a single ip or a range /// </summary> public class IpEntry { public string StartRange { get; set; } public string EndRange { get; set; } public bool IsRange
473 Views
2 comments
public static void Copy(string sourceDirName, string destDirName, bool excludeSubdirectories) { // Style #1: fluent Guard.MethodArgument("sourceDirName").IsNotNullOrEmpty(sourceDirName); Guard.MethodArgument("destDirName").IsNotNullOrEmpty(destDirName, "The destination directory is required!"); // Style #2: lambdas and expressions Guard.Argument.IsNotNullOrWhiteSpace(()=>sourceDirName); Guard.Argument.IsNotNullOrWhiteSpace(()=>destDirName, "The destination directory is required!");
344 Views
1 comments
using System; using System.Runtime.InteropServices; using System.Threading; using AcroPDFLib; // Related to: http://stackoverflow.com/questions/2702164 namespace ComConsoleApplication { [ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("00000016-0000-0000-C000-000000000046")] public interface IMessageFilter
394 Views
no comments
// Controller Action public JsonResult SearchItem(string nature, string term) { IEnumerable<Item> list = null; Transactional(() => { switch (nature.ToLowerInvariant()) { case "ricambi":
554 Views
no comments
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Lucilla.Framework.Web.Mvc; using DemoApp.Services.Model; namespace DemoApp.WebSite.Controllers {
579 Views
no comments
public class FullScreenCommand : ICommand { public event EventHandler CanExecuteChanged; public bool CanExecute(object parameter) { bool isFullScreen = (bool.TryParse(parameter.ToString(), out isFullScreen)) ? isFullScreen : true; return Application.Current.Host.Content.IsFullScreen != isFullScreen; }
1563 Views
no comments
using(OleDbConnection connection = new OleDbConnection(ConnectionString)) { using(OleDbCommand cmd = new OleDbCommand(sql, connection) { CommandType = CommandType.Text }) { try { connection.Open(); } catch (OleDbException ex) {
187 Views
no comments
/// <summary> /// Creates a COM instance from a ProgID. Loads either /// Exe or DLL servers. /// </summary> /// <param name="progId"></param> /// <returns></returns> public static object CreateComInstance(string progId) { Type type = Type.GetTypeFromProgID(progId);
400 Views
no comments
class Program { static void Main(string[] args) { var instance = new Program(); var cat = new AssemblyCatalog(typeof(Program).Assembly); var container = new CompositionContainer(cat); container.ComposeParts(instance); foreach (var plug in instance.Plugins)
1061 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
