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
 
<#
.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
11 Views
no comments
 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>Örnek Uygulama</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
    $(function(){
        $('#menu ul li a').click(function(){
            history.pushState('', $(this).text(), $(this).attr('href'));
by Batuhan AYDIN   Today @ 1:34am
7 Views
no comments
 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>Örnek Uygulama</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
    $(function(){
        $('#menu ul li a').click(function(){
            history.pushState('', $(this).text(), $(this).attr('href'));
by Batuhan AYDIN   Today @ 1:34am
5 Views
no comments
 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>Örnek Uygulama</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
    $(function(){
        $('#menu ul li a').click(function(){
            history.pushState('', $(this).text(), $(this).attr('href'));
by Batuhan AYDIN   Today @ 1:34am
4 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
 
C#
public sealed partial class BlankPage : Page
{
    public BlankPage()
    {
        this.InitializeComponent();
 
        var _String = "<special:Users xmlns:special='http://jerry'><User Key='1' Name='Jerry' /><User Key='2' Name='Michael' /></special:Users>";
        using (var _Reader = System.Xml.XmlReader.Create(new StringReader(_String)))
        {
            var _Serializer = new System.Xml.Serialization.XmlSerializer(typeof(Users));
by Jerry Nixon   Tuesday @ 3:01pm
8 Views
no comments
 
C#
public class MyValidation
{
    public enum ValidFormats
    {
        Any, Numeric
    }
 
    public static ValidFormats GetFormat(DependencyObject obj)
    {
        return (ValidFormats)obj.GetValue(FormatProperty);
by Jerry Nixon   Tuesday @ 12:51pm
Tags: XAML, WinRT
10 Views
no comments
 
package eu.man.phevos.dx.mock.gep.test
 
import java.io.FileInputStream
import java.util.Arrays
import akka.actor.Actor
import akka.actor.ActorSystem
import akka.actor.Props
 
object StreamTest extends App {
by Michael Wellner   Tuesday @ 11:17am
10 Views
no comments
 
package eu.man.phevos.dx.mock.gep.test
 
import java.io.FileInputStream
import java.util.Arrays
import akka.actor.Actor
import akka.actor.ActorSystem
import akka.actor.Props
 
object StreamTest extends App {
by Michael Wellner   Tuesday @ 11:15am
13 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
 
C++
#define ENGINE_MIN_SPEED_FACTOR -10
#define ENGINE_MAX_SPEED_FACTOR 10
#define ENGINE_SPEED_FACTORS (ENGINE_MAX_SPEED_FACTOR + 1)
Monday @ 8:43am
Tags: robot
4 Views
no comments
 
C++
void setEngine(uint8_t engine, int8_t speed){
        if(speed > MAX_CONTROL_ENGINE_SPEED){
                speed = MAX_CONTROL_ENGINE_SPEED;
        }
        else if(speed < MIN_CONTROL_ENGINE_SPEED){
                speed = MIN_CONTROL_ENGINE_SPEED;
        }
     
        int speed2 = engineSpeeds[abs(speed)];
     
Monday @ 8:42am
Tags: robot
4 Views
no comments
 
void setEngine(uint8_t engine, int8_t speed){
        if(speed > MAX_CONTROL_ENGINE_SPEED){
                speed = MAX_CONTROL_ENGINE_SPEED;
        }
        else if(speed < MIN_CONTROL_ENGINE_SPEED){
                speed = MIN_CONTROL_ENGINE_SPEED;
        }
     
        int speed2 = engineSpeeds[abs(speed)];
     
Monday @ 8:42am
Tags: robot
4 Views
no comments
 
asdasd
by asd   Sunday @ 7:24am
Tags: asd
10 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
6 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
 
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