CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of util
<#
.COMPONENT
    NUPosh
.SYNOPSIS
    Test if an Assembly (.dll) is already loaded. 
.DESCRIPTION
    Test if an Assembly of the same name is already loaded in the current runspace. 
    Using the -PasThru parameter will return the AssemblyInfo object along with the boolean. 
.PARAMETER  Name
    The file name of the Assembly.   
by qawarrior   May 17, 2012 @ 7:42am
33 Views
no comments
 
C#
public static void SetDropDownToItemText(DropDownList ddl, string valueToSet)
{
   int cnt = ddl.Items.Count;
 
   for (int idx = 0; idx < cnt; idx++)
   {
      if (ddl.Items[idx].Text == valueToSet)
      {
         ddl.SelectedIndex = idx;
         break;
by Fred Peters   March 14, 2012 @ 6:39am
Tags: utils
24 Views
no comments
 
package juddiv3admin.juddiv3;
 
/**
 * Abbreviations from <code>org.apache.juddi.query.util.FindQualifiers</code>.
 * @author Martynas
 */
public class FindQualifiersAbbreviations
{
    public static final String AND_ALL_KEYS = "andAllKeys";
by Martynas   March 29, 2011 @ 5:36am
113 Views
no comments
 
# -------------------------------------------------------------------------------------------------
# InstallUtilPs.ps1
#
# Wrapper around InstallUtil.exe.
# -------------------------------------------------------------------------------------------------
 
# Script params
param([switch]$u) # uninstall
 
$dotNetRuntimeDir = [System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
by Jon Sagara   December 13, 2010 @ 2:50pm
335 Views
no comments
 
@echo off
echo Clean System Trash, Please wait......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
by yuyu1984   September 06, 2009 @ 11:23pm
Tags: batch, util
239 Views
no comments
 
//Generate an object like "window.location"(href,protocol,host,hostname,port,pathname,search,hash)
//Or return false
function fnConvertHref(href) {
  var pattern = /([a-z]+):\/\/([^\/:]+):?([\d]*)\/?([^?]*)\??([^#]*)#?([^#]*)/gi;
 
  if (pattern.test(href)) {
    return {
      'href'     : href,
      'protocal' : RegExp.$1,
      'host'     : RegExp.$2 + RegExp.$3,
by yuyu1984   July 22, 2009 @ 4:28am
261 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