CodePaste Logo
New Snippet New Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Format:
Recent Snippets
<div class="col-sm-12 tscontentpart-dynamic">
  <asp:placeholder id="gaugePlaceholder" enableviewstate="false" runat="server" />
</div>
Today @ 2:14pm
Tags:
6 Views
no comments
 
#include <Servo.h> //dolaczam biblioteke 

Servo myservo; //definiuje obiekt 

int x; //Zmienna odczytujaca napiecie z osi X manipulatora. 0: max lewo, 1023: max prawo
int y; //Zmienna odczytujaca napiecie z osi Y manipulatora. 0: max gora, 1023: max dół

int led = 5;
int t_light = 500; //czas świecenia diody
int angle; //kąt servo
Today @ 2:06pm
Tags:
9 Views
no comments
 
#include <Servo.h> //dolaczam biblioteke 

Servo myservo; //definiuje obiekt 

int x; //Zmienna odczytujaca napiecie z osi X manipulatora. 0: max lewo, 1023: max prawo
int y; //Zmienna odczytujaca napiecie z osi Y manipulatora. 0: max gora, 1023: max dół

int led = 5;
int t_light = 500; //czas świecenia diody
int angle; //kąt servo
Today @ 2:04pm
Tags:
9 Views
no comments
 
private void Form1_Load(object sender, EventArgs e)
        {
            DialogResult cevap = MessageBox.Show("Merhaba Arkadaşım, benim adım Poyraz."+Environment.NewLine+"Annemin söylediklerini yapmakta sorun yaşıyorum. Rica etsem bana yardım edebilir misin?","Poyraz'dan Mesaj",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
            if (cevap == DialogResult.Yes)
            {

            }
            else
            {
                MessageBox.Show("Bunu duyduğuma üzüldüm :(" + Environment.NewLine + "Belki başka bir zaman...", "Poyraz'dan Mesaj",MessageBoxButtons.OK,MessageBoxIcon.Asterisk);
by bartu   Today @ 1:54pm
Tags:
11 Views
no comments
 
.9541
0.5552
0.4947
0.4429
0.613
0.5488
0.6262
0.8117
0.6326
0.4864
Today @ 1:37pm
Tags:
18 Views
no comments
 
#include <stdio.h>
#include <stdlib.h>
#include <math.h>




int main(){
	float b1,b2;
	double a1,a2;
Today @ 12:57pm
Tags:
27 Views
no comments
 
#pragma warning(disable:4996)
#include<stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
int w[4][16] = { { 1, 2, 3, 4, 9,10,11,12,17,18,19,20,25,26,27,28 },
{ 8,16,24,32, 7,15,23,31, 6,14,22,30, 5,13,21,29 },
{ 64,63,62,61,56,55,54,53,48,47,46,45,40,39,38,37 },
{ 57,49,41,33,58,50,42,34,59,51,43,35,60,52,44,36 } };

Today @ 12:51pm
Tags:
27 Views
no comments
 
сячссячс
Today @ 12:51pm
Tags:
24 Views
no comments
 
фыфыв
Today @ 12:50pm
Tags:
27 Views
no comments
 
0.3925
0.407
0.435
0.406
0.4735
0.4805
0.601
0.6255
0.377
0.4245
Today @ 12:50pm
Tags:
27 Views
no comments
 
import os

url = 'https://www.facebook.com/profile.php?id='
petla = True

while petla:
  _=os.system("cls")
  profnr = input('Podaj wartosc id profilu(15 znakow):  ')

  if not(len(profnr) != 15):
Today @ 12:39pm
Tags:
31 Views
no comments
 
#include <stdio.h>
#include <stdlib.h>
#include <math.h>




int main(){

	double a1,a2;
Today @ 12:27pm
Tags:
33 Views
no comments
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
Today @ 12:27pm
Tags:
30 Views
no comments
 
import os

url = 'https://www.facebook.com/profile.php?id='
petla = True

while petla:
  _=os.system("cls")
  profnr = input('Podaj wartosc id profilu(15 znakow):  ')
  if len(profnr) != 15:
    print("Musisz podać dokładnie 15 znaków!")
Today @ 12:26pm
Tags:
30 Views
no comments
 
.5088
0.5367
0.4733
0.5083
0.5354
0.4658
0.6004
0.5725
0.5192
0.4433
Today @ 12:15pm
Tags:
34 Views
no comments
 
#include<stdio.h>
#include<iostream>
#include<string.h>
 #include<queue>
 #include<vector>
 #define N 108
 #define inf 0x3ffffff
 using namespace std;
 vector<int>g[N];
int clor[N];
Today @ 12:02pm
Tags:
39 Views
no comments
 
php
<?php 
echo date ('Y-m-d H:i:s');
?>
Today @ 11:59am
Tags:
41 Views
no comments
 
# AT&T Syntax used.

inout:                    # subroutine: inout
                          # Stack misaligned by 8
  push %rbp               # Stack aligned
  movq %rsp, %rbp
  subq $16, %rsp          # Allocate 16 bytes (8 extra for alignment)
                          # Stack still 16 byte aligned

  movq $0, %rsi
Today @ 11:40am
Tags:
44 Views
no comments
 
0.5654
0.4958
0.4363
0.4762
0.5021
0.5542
0.5667
0.475
0.4996
0.5029
Today @ 11:37am
Tags:
43 Views
no comments
 
def mainFunc(nodeInGraph, destinationNode):
   resultList = []
   visited = {}
   helperFunc(nodeInGraph, destinationNode, resultList, [], visited)
   return resultList
   
def helperFunc(nodeInGraph, destinationNode, resultList, currentList, visited):
   if destinationNode == nodeInGraph:
      //add currentList to resultList
      
Today @ 11:35am
Tags:
43 Views
no comments
 
.7354
0.5854
0.4405
0.4058
0.4615
0.5423
0.4442
0.5972
0.5004
0.5121
Today @ 11:14am
Tags:
48 Views
no comments
 
function getPaths(myStr) {
    var flagInCases = false ;
    var isMistake = true;

    var consoleLine = "<p class=\"console-line\"></p>";
    
    console = {
        log: function (data) {
            $("#console-log").append($(consoleLine).html(data));
        }
by Onur   Today @ 10:33am
Tags:
53 Views
no comments
 
#include <iostream>
using namespace std;

int main()
{
    long double a,b,n;
    long long c,k,nr,v[100000],i,z=1,ok=1;
    cin>>a>>b>>c;
    n=(a/b)*10000000000000000;
    k=n;
Today @ 10:02am
Tags:
63 Views
no comments
 
#include <iostream>

using namespace std;

int main()
{
    long long n,x,y,p=0,k=0;
    cin>>n;

    for(int i=1;i<=n;i++)
Today @ 9:51am
Tags:
68 Views
no comments
 
override def visitId(ast: Id, c: Any): Any = {
  val isSubBody = if(c.isInstanceOf[SubBody]) true else false
  if(!isSubBody) {
    val ctxt = c.asInstanceOf[Access]
    //println("New Environment Global: "+ ast.name )
    //val a = ctxt.sym.map(x=> println(x.name))
    val sym = lookup(ast.name, ctxt.sym, (x: Symbol) => x.name).get
    //println(sym.typ+"Ddd")
    ({
      if (sym.value.isInstanceOf[Index]) {
by MinhQuangLêBá   Today @ 9:27am
Tags:
66 Views
no comments
 
package Solution;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;

Today @ 9:24am
Tags:
69 Views
no comments
 
// Is this the right way?

const express = require('express');
const mysql = require('promise-mysql');

let app = express();

let pool = mysql.createPool({
    host: '',
    user: '',
Today @ 9:01am
Tags:
73 Views
no comments
 
                 
             ------------------HELLO ALL LOYAL CLIENTS-----------------------
                      
                        ****SHOP IS OPEN AND NOW SELLING****
BIG SOSA is now selling

  *BANK WIRE LOGS
  *HACKED PAYPAL SERVICE
  *CREDIT CARD TOP-UP AND ALL FORMS OF CARDING
  *CVV, FULLZ, SMTP, RDP, EMAIL LEADS, MSR TRACKS, DUMPS
by BIGSOSA   Today @ 8:40am
Tags:
73 Views
no comments
 
CreateDynamicObject(19360,-439.4550781,-124.9394531,804.5720215,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-439.4550781,-128.1308594,804.5689697,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-435.9892578,-128.1308594,804.5689697,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-435.9892578,-124.9394531,804.5720215,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-435.9892578,-131.3398438,804.5689697,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-439.4550781,-131.3398438,804.5689697,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-442.9199219,-124.9394531,804.5720215,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-442.9199219,-128.1308594,804.5720215,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-442.9199219,-131.3398438,804.5720215,0.0000000,90.0000000,0.0000000);
CreateDynamicObject(19360,-442.9199219,-134.5500031,804.5720215,0.0000000,90.0000000,0.0000000);
Today @ 8:06am
Tags:
85 Views
no comments
 
n = int(input())

def square(x1, y1, x2, y2, x3, y3):
    a = sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
    b = sqrt((x1 - x3) ** 2 + (y1 - y3) ** 2)
    c = sqrt((x2 - x3) ** 2 + (y2 - y3) ** 2)
    p = (a + b + c) / 2
    S = sqrt(p * (p - a) * (p - b) * (p - c))
    return S

Today @ 7:57am
Tags:
89 Views
no comments
 
n = int(input())

# Вычисление площади треугольника (фомула Герона)
def square(x1, y1, x2, y2, x3, y3):
    a = sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
    b = sqrt((x1 - x3) ** 2 + (y1 - y3) ** 2)
    c = sqrt((x2 - x3) ** 2 + (y2 - y3) ** 2)
    p = (a + b + c) / 2
    S = sqrt(p * (p - a) * (p - b) * (p - c))
    return S
Today @ 7:44am
Tags:
88 Views
no comments
 
query = "insert into detalle_factura values('" & Label17.Text & "', '" & TextBox4.Text & "' , '" & cod1.Text & "', '" & ComboBox2.Text & "'"
          conec.ddl(query)

      Catch ex As Exception
Today @ 7:41am
Tags:
85 Views
no comments
 
#include<stdio.h>
#include<conio.h>

// ham nhap mang
void nhapmang (int a[50],int n)
{
    int i;
    for(i=0;i<n;i++)
   {
         printf("nhap phan tu thu %d :",i);
Today @ 7:35am
Tags:
86 Views
no comments
 
Try
            'aqui cambien en el 1er campo
            querry = "INSERT INTO detalle_factura VALUES ('" & Label17.Text & "', '" & TextBox38.Text &
                "', '" & TextBox1.Text & "', '" & ComboBox1.Text & "', '" & TextBox9.Text & "', '" & TextBox10.Text &
                "', '" & TextBox2.Text & "')"
            conec.ddl(querry)
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
Today @ 7:30am
Tags:
90 Views
no comments
 
fffvfvf
k,
Today @ 7:30am
Tags:
90 Views
no comments
 
#include<stdio.h>


typedef struct
	{
 	int grd;
 	float *x;
	}Polinom;
	
void citire(Polinom *p)
Today @ 7:28am
Tags:
94 Views
no comments
 
#include<stdio.h>
#include<stdlib.h>

//definire structura matrice rara, reprezentata prin vectori
typedef struct 
	{
	int *val;
	int *lin;
	int *col;
	int m;
Today @ 7:26am
Tags:
90 Views
no comments
 
var placemark = new ymaps.Placemark([points[point].geoCoordinates.latitude, points[point].geoCoordinates.longitude],{
    hintContent: points[point].fullAddress,
    balloonContent: points[point].fullAddress,
    schedule: points[point].schedule,
    val: points[point].code
}, {
    balloonLayout: myBalloonLayout,
    balloonPanelMaxMapArea: 0,
    hideIconOnBalloonOpen: false,

Today @ 7:25am
Tags:
90 Views
no comments
 
//Un polinom are forma P(x)=p[0]+p[1]*x+ p[2]*x^2 +...p[n]* x^n 
 
#include <stdio.h>
# define GRADMAX 20
 
   
void citire_polinom(int *n,float a[])
{
      int i;
      printf("\nIntroduceti gradul polinomului  ");
Today @ 7:21am
Tags:
94 Views
no comments
 
#include<stdio.h>
#include<conio.h>

// ham nhap mang
void nhapmang (int a[50],int n)
{
    int i;
    for(i=0;i<n;i++)
   {
         printf("nhap phan tu thu %d :",i);
Today @ 7:20am
Tags:
92 Views
no comments
 
if ($('#deliveryPointsMap').length) {
        var myBalloonLayout = ymaps.templateLayoutFactory.createClass($('#map-balloon-group-template').html(),
            {
                build: function () {
                    this.constructor.superclass.build.call(this);

                    this._$element = $('.balloon-container', this.getParentElement());

                    this._$element.find('.close')
                        .on('click', $.proxy(this.onCloseClick, this));
Today @ 7:18am
Tags:
92 Views
no comments
 
query = "select count(id_det:fac)  from Detalle_factura"
        consul = conec.consulta(query)
        While consul.Read
            n_reg = consul.GetValue(0).ToString
        End While
        ComboBox3.Enabled = True
        TextBox12.Enabled = True
        TextBox11.Enabled = True
        n_reg = n_reg + 1
        If n_reg < 10 Then
Today @ 7:18am
Tags:
90 Views
no comments
 
const express = require('express');
const mysql = require('promise-mysql');

let app = express();

let pool = mysql.createPool({
    host: '',
    user: '',
    password: '',
    database: ''
Today @ 7:12am
Tags:
97 Views
no comments
 
querry = "select stock_produ from producto"
        consul = conec.consulta(querry)
        While consul.Read
            aux = consul.GetValue(0).ToString
        End While
        If TextBox9.Text > aux Then
            MsgBox("No hay esa vantidad en Stock")
            TextBox9.Text = ""
            TextBox9.Focus()
        End If
Today @ 7:07am
Tags:
92 Views
no comments
 
sql
SELECT el1.codeElement, el2.codeElement, li.DATEEFFET, li.dateFin, nom2.CODENOMENCLATURE, nom1.CODENOMENCLATURE
from REN.NOMENCLATURE as nom1 
inner join REN.ELEMENT as el1 on (nom1.IDNOMENCLATURE = el1.NOMENCLATURE_IDNOMENCLATURE AND el1.CODEELEMENT LIKE '1527%')
inner join REN.LIEN as li on (el1.IDELEMENT = li.ELEMENT1_IDELEMENT)
inner join REN.ELEMENT as el2 on (el2.IDELEMENT = li.ELEMENT2_IDELEMENT)
inner join REN.NOMENCLATURE as nom2 on (nom2.IDNOMENCLATURE = el2.NOMENCLATURE_IDNOMENCLATURE)
where nom1.CODENOMENCLATURE = 'N_INDEMNITE' and nom2.CODENOMENCLATURE = 'N_GRADE_FP'
Today @ 7:06am
Tags:
89 Views
no comments
 
<!DOCTYPE html>
<html>
<head>
	<title>SONY COMPANY</title>
	<meta charset="utf-8">
</head>
<body style="col " text="color:#33FF33">
<div style="width: 660px; height: 610px;margin: auto "><!--wrap all website-->
	<header><!--header menu-->
by onlyyou270290   Today @ 7:05am
Tags:
91 Views
no comments
 
Sub completar(ByVal producto As String, ByRef a As String, ByRef b As Double)
        query = "select id_produ, precio_produ from producto where nom_produ='" & producto & "'"
        consul = conec.consulta(query)
        While consul.Read
            a = consul.GetValue(0).ToString
            b = consul.GetValue(1).ToString
        End While
    End Sub
Today @ 7:04am
Tags:
89 Views
no comments
 
#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;

int main()
{
    int n = 6;
    int tab[n] = {1, 3, 3, 1, 1, 4};
Today @ 6:54am
Tags:
94 Views
no comments
 
//深搜,回溯,分解自然数
#include<iostream>
using namespace std;
int a[11111]={1};
int n;
int fun_print(int t)
{
    int i;
    for(i = 1;i <= t - 1; i++)
    {
by GuangFeng-Cheng   Today @ 6:44am
Tags:
99 Views
no comments
 
#include <iostream>
#include <ctime>

using namespace std;

int main()
{
    srand(time(NULL));
    int tab[301];
    int szukana;
Today @ 6:42am
Tags:
95 Views
no comments
 
brought to you by:
West Wind Techologies