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 F
<#
.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   Today @ 7:42am
18 Views
no comments
 
<?php
phpinfo();
?>
by Erackson   Yesterday @ 9:47am
Tags: teste, phpinfo
5 Views
no comments
 
C++
/*********************************************/
/* This program will ask how many students   */
/* are in the class.  Based upon your answer */
/* it will then ask what the ages are for    */
/* each student.  From the answers provided  */
/* it will round to the nearest whole number */
/* the average age for the class.            */
/*********************************************/
#include <stdio.h> // Allows printf() function
#include <math.h> // Allows the roundf function to be used.
by Wayne   Tuesday @ 4:49pm
21 Views
no comments
 
 <Image Margin="367.056,8,8,0" VerticalAlignment="Top" Name="imgLargePreview" Width="640" Height="480" MaxHeight="480" MaxWidth="640" />
 
 
 
 
Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
        saveImage()
    End Sub
    Sub saveImage()
        Dim encoder = New PngBitmapEncoder()
by DaveCS   Tuesday @ 7:52am
9 Views
no comments
 
http://altitudegame.com/friend/857014
by http://altitudegame.com/friend/857014   Monday @ 7:40pm
5 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
by http://altitudegame.com/friend/857014   Monday @ 7:39pm
5 Views
no comments
 
tgl=ctod('12/12/2011')
? ctod('01/'+padl(iif(month(tgl)=12,1,month(tgl)+1),2,'0')+'/'+transform(year(tgl)+iif(month(tgl)=12,1,0))) - 1
tgl=ctod('12/01/2012')
? ctod('01/'+padl(iif(month(tgl)=12,1,month(tgl)+1),2,'0')+'/'+transform(year(tgl)+iif(month(tgl)=12,1,0))) - 1
tgl=ctod('12/02/2012')
? ctod('01/'+padl(iif(month(tgl)=12,1,month(tgl)+1),2,'0')+'/'+transform(year(tgl)+iif(month(tgl)=12,1,0))) - 1
 
&& atau
 
tgl=ctod('12/12/2011')
by Hans Tedjakusuma   Sunday @ 1:02am
Tags: foxpro, date
7 Views
no comments
 
* http://forum.foxclub.ru/read.php?29,316324,316571,quote=1
* Posted by "Piva"
 
Declare Integer GetLastInputInfo in win32api string @
Declare Long GetTickCount in win32api
 
public o
o=CreateObject("IdleTimer")
 
Define Class IdleTimer as Timer
by Hans Tedjakusuma   Saturday @ 4:21am
Tags: Foxpro
7 Views
no comments
 
FUNCTION GetCollectionFromUrlEncodedValues(lcVars,lcPrefix)
LOCAL loVars, lnX, lnAt, lcPoint,lnEqual,lcKey, lcValue
 
loVars = CREATEOBJECT("wwNameValueCollection")
  
IF EMPTY(lcPrefix)
    lcPrefix = ""
ENDIF
  
lcPointer = "&"+lcVars
by Rick Strahl   May 11, 2012 @ 8:20pm
Tags: FoxPro
10 Views
no comments
 
<script src="http://h2.flashvortex.com/display.php?id=2_1336478086_64321_420_0_550_100_9_2_39" type="text/javascript"></script>
by Aldrine Cacal   May 08, 2012 @ 4:59am
Tags: crossfire
17 Views
no comments
 
http://tinyurl.com/D2CFi9A
 
 
Dota 2 Beta Keys are available for DOWNLOADS! We are presenting you free 99 BETA KEYS,so hurry up and grab your own DOTA 2 BETA KEYS!
 
by Dota 2 Beta Keys Free   May 07, 2012 @ 3:49pm
Tags: Dota 2, Beta, Keys, Free
16 Views
no comments
 
//start processing
var api = new moviesApi();
api.getRatings({
    success: function (result) {
        for (var i = 0; i < result.length; i++) {
            //new Option(text, value)
            var option = new Option(result[i].ID, result[i].Name);
            $('#ratings').append(
                $('<option></option>').val(result[i].ID).html(result[i].Name)
            );
22 Views
no comments
 
displayError = function (result) {
    $('#errorDisplay').show();
    $('#errorDisplay').html(result.responseText);
}
by Warren Wiltshire   May 02, 2012 @ 5:20am
29 Views
no comments
 
'Xaml
 <DataTemplate x:Key="DataTemplateComboDrives">
            <Grid Width="Auto">
                <TextBlock x:Name="textBlockDriveName" Margin="8,8,0,8" TextWrapping="Wrap" Text="{Binding DriveName}" FontWeight="Bold" Foreground="{DynamicResource brushDarkBlueText}" HorizontalAlignment="Left" Width="23"/>
                <TextBlock x:Name="textBlockDriveLable" Margin="26,8,24,8" TextWrapping="Wrap" Text="{Binding DriveLable}" FontWeight="Bold" Foreground="{DynamicResource brushDarkBlueText}" RenderTransformOrigin="1.25,0.501" HorizontalAlignment="Right" Width="Auto"/>
            </Grid>
        </DataTemplate>
        <Style x:Key="ComboBoxItemStyleDrives" TargetType="{x:Type ComboBoxItem}">
            <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
            <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
by DaveCS   April 14, 2012 @ 8:53pm
22 Views
no comments
 
'must have a legitimate email setup with smtp relays set greater than 0 in your godaddy control panel (email accounts) 
Private Sub btnSendMessage_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles btnSendMessage.Click
      CreateTimeoutTestMessage("smtpout.secureserver.net") 'This is standard with most email relays at godaddy
  End Sub
  Public Shared Sub CreateTimeoutTestMessage(server As String)
      Dim [to] As String = "busted@fbi.gov"
      Dim from As String = "billyjoebob@hillbilly.com"
      Dim subject As String = "Catch Me If You Can."
      Dim body As String = "This is the body of the message. Yada Yada Yada"
      Dim message As New MailMessage(from, [to], subject, body)
by DaveCS   April 10, 2012 @ 6:53pm
38 Views
no comments
 
C#
// Predicate Builder code
// Produces match only on LAST match - INCORRECT
var predicate = PredicateBuilder.False<Entry>(); 
foreach (string phrase in searchPhrases)
{
    predicate = predicate.Or(ent => (ent.Title.Contains(phrase) || ent.Keywords.Contains(phrase) || ent.Description.Contains(phrase)));
}
entries = entries.AsExpandable().Where(predicate);
 
by Rick Strahl   April 10, 2012 @ 3:41pm
59 Views
no comments
 
git config --global user.name "Al Gonzalez"
git config --global user.emai "{email.address}"
 
REM set up Notepad++ as the editor of choice
git config --global core.editor "'c:\apps\notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
 
REM set up WinMerge as the tool to use when calling "git difftool"
git config --global diff.tool winmerge
git config --global difftool.winmerge.cmd "'c:\apps\winmerge\winmergeU.exe' -e -u -dl Base -dr Mine \"$LOCAL\" \"$REMOTE\""
git config --global difftool.prompt false
by Al Gonzalez   April 10, 2012 @ 11:02am
25 Views
no comments
 
C#
if (searchPhrases.Count() > 0)
{
    var whereParms = new List<string>();
    StringBuilder sb = new StringBuilder();
    int counter = 0;
    foreach (string phrase in searchPhrases)
    {
        string num = counter.ToString();
        
        sb.Append("title.Contains(@" + num + ") || " + 
by Rick Strahl   April 09, 2012 @ 9:09pm
Tags: LINQ, EF, Query, OR
224 Views
no comments
 
C#
// GET: /Dog/
public ViewResult Index()
{
  var dogs = db.PetSet.ToArray<Pet>().Where(s => s is Dog).Cast<Dog>();
  return View(dogs);
}
by Alessandro Fabozzi (google)   April 07, 2012 @ 11:33pm
20 Views
no comments
 
XML
<?xml version="1.0" encoding="utf-8" ?>
  <log4net debug="false">
    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <file value="log" />
      <appendToFile value="false" />
      <rollingStyle value="Composite" />
      <maxSizeRollBackups value="10" />
      <maximumFileSize value="5KB" />
      <staticLogFileName value="false" />
      <datePattern value=".yyyy-MM-dd.\tx\t" />
by ashishsingh4u   April 02, 2012 @ 3:53am
39 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