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 C
 
<#
.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
by qawarrior   Today @ 7:42am
10 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
8 Views
no comments
 
//******************************//
//Prevent wrong input for mobile
//******************************//
 $("#Mobile").keydown(function (event) 
{
    // Allow: backspace, delete, tab and escape
    if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 ||
    // Allow: Ctrl+A
    (event.keyCode == 65 && event.ctrlKey === true) ||
    // Allow: home, end, left, right
by Egli   Monday @ 11:43pm
7 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
 
/*
* add this function on model User
*/
 
public function getNameById($id){
$data = $this->Koordinator->Pasar->findById($id);
return $data['Pasar']['nama_pasar'];
}
 
by laabroo   Saturday @ 5:52pm
Tags: cakephp
11 Views
no comments
 
C#
return members == null ? 0 : members.Count;
by Warren Wiltshire   May 10, 2012 @ 6:57am
14 Views
no comments
 
function build_docs($url) {
        $url = $this->clear_url( urldecode( $url ) );
        if ($url == "" ) return;
        if ( $file_type == "pdf" or $file_type == "pptx" or $file_type == "pptm" or $file_type == "ppt" or $file_type == "tiff" ) return "[docs=".$url."]";
        return "<!--dle_docs_begin:".$url."--><center><iframe style=\"border-style: none;\" src=\"http://docs.google.com/gview?url=$url&embedded=true\" width=\"600\" height=\"650\"></iframe></center><!--dle_docs_end-->";
    }
by sawanbanna   May 09, 2012 @ 5:28pm
18 Views
no comments
 
C++
#include "Text.h"
#include <iostream>
using namespace std;
int main()
{
    Text longText( 6, "Hello World, this is a program that output text like you would see in RPG..", 50 );
    longText.output();
    return 0;
}
by G.L.B   May 09, 2012 @ 9:39am
14 Views
no comments
 
C++
#ifndef TEXT_H
#define TEXT_H
 
#include <string>
 
using std::string;
 
class Text
{
private:
by G.L.B   May 09, 2012 @ 9:39am
14 Views
no comments
 
C++
#include "Text.h"
#include <Windows.h>
#include <string>
#include <iostream>
 
using namespace std;
 
// todo: add desired color to text
 
Text::Text() : color( 0 ), text( "DefaultText" ), speedDisplay( 0 )
by G.L.B   May 09, 2012 @ 9:38am
Tags: RPG, Text, Color, Beep
14 Views
no comments
 
CSS
Xbox Live was created and run by Microsoft Corporation being said the has the only online gaming that serves on console which makes gaming a lot more fun. And for the newest and coolest games visit our page we will post it here soon to keep you updated, bookmark our site and view our site for new updates. Roughly speaking, more and more website online are claiming to have quality-guaranteed Code Generator but I must warn you, you have to be care what to download from the web if you prefer to download the Code Generator elsewhere because a lot of this site are just scams and most probably the content of your downloading contents boatloads of viruses. So I recommend you to download it from this site withouth looking somewhere else. Eitherway it's your call to make. Have fun for the newly updated Xbox Live Code Generator and enjoy. 
 
http://techlivegen.com
 
Xbox Live is an online multi-player gaming service that the Microsoft Corporation operates. Each country has its own pricing regulation for playing the game. The game comes in two versions Xbox Live Silver and Xbox Live Gold. Xbox Live comes with several features such as avatars, videochat, multi-players, Mottos for display on gamer profiles, Game achievements, which are earned during gameplay, Xbox Guide, Friends list, Integration with Windows Live Messenger, etc. Microsoft charges a fee for Xbox Live, but there are ways to get online and become part of the Live community for free. These are outlined below.
by Xbox Live Code   May 08, 2012 @ 1:40pm
21 Views
no comments
 
C#
try
{
    if (Size >= 1)
    {
        if (Size <= 80)
            goto label_7;
    }
    throw new ArgumentOutOfRangeException();
}
catch
by wis3guy   May 08, 2012 @ 6:28am
Tags: ugly code
47 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
 
//Remeber to use Html.TextBoxFor Html Helper with Html class attribute
 
            // a custom method for validating the Departure and Arrival Dates
            $.validator.addMethod('dateBeginEnd', function () {
                return new Date($('#DepartureDt').val()) < new Date($('#ArrivalDt').val());
            }, 'Depature date must be before Arrival date.');
 
            // a new class rule to group all three methods
            $.validator.addClassRules({
                requiredBeginEndDate: { required: true, date: true, dateBeginEnd: true }
15 Views
no comments
 
var baseUrl;
var applicationUrl;
 
baseUrl = document.location.href;
baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/'));
applicationUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/'));
by Warren Wiltshire   May 02, 2012 @ 5:24am
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
28 Views
no comments
 
SQL
SELECT
    count(*)
FROM ijobs_by_emails as ijbes
WHERE
                ijbes.`jobsbyemail` <> 0 AND
                (DATEDIFF(CURDATE(), ijbes.last_jbe_checked) > ijbes.`jobsbyemail` OR last_jbe_checked IS NULL) AND
                (DATEDIFF(CURDATE(), ijbes.`activity`) < 60 OR activity IS NULL)
by Aria Radmand   April 18, 2012 @ 7:08am
Tags: count
23 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