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
#include <iostream>

using namespace std;

bool Check (char* str, int n, char a) {
    for (int i = 0; i < n; ++i) {
        if (str[i] == a)
            return true;
    }
Today @ 11:02am
Tags:
12 Views
no comments
 
#include <iostream>

using namespace std;

bool Check (char* str, int n, char a) {
    for (int i = 0; i < n; ++i) {
        if (str[i] == a)
            return true;
    }
Today @ 10:59am
Tags:
12 Views
no comments
 
#include "cJSON.h"
#include "parse.h"

list_t* parse (const char* fileName) {
    FILE * file = fopen(fileName, "r");
    char text[10000];
    char line[100];

    while(fgets(line, 100, file) != NULL)
    {
Today @ 10:36am
Tags:
19 Views
no comments
 
class Wezel(object):
    def __init__(self,nazwa,poz_X,poz_Y):
        self.nazwa = nazwa
        self.poz_X = poz_X
        self.poz_Y = poz_Y
        
def ZnajdzWezel(nazwa, wezly):
    wezel = None
    for el in wezly:
        if el.nazwa == nazwa:
Today @ 10:15am
Tags:
24 Views
no comments
 
April is your lie 
Kuroko’s Basketball * 
Shokugeki no Soma ** 
Kabaneri of the Iron Fortress * 
A Certain Scientific Railgun  
A Certain Magical Index  
The Irregular at Magic High School  
The Pet Girl of Sakurasou 
Magi 
Akame Ga kill 
Today @ 10:13am
Tags:
29 Views
no comments
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    
    class Runner
Today @ 9:28am
Tags: CS
35 Views
no comments
 
# Skrypt realizuje algorytm Dijikstry dla grafu stworzonego z rzeczywistych danych przestrzennych
# Użytkownik określa punkt początkowy i końcowy
# Skrypt znajduje najkrótszą ścieżkę i tworzy nową warstwę wektorową 

# moduł arcpy umożliwia wykorzystanie funkcji do geoprzetwarzania
import arcpy as ar
import math

# trzeba stworzyć geobazę albo wczytywac warstwy
#arcpy.env.workspace = r"D:\Users\jedrzej\Desktop\jezyki_skryptowe\warstwy"
Today @ 9:01am
Tags:
37 Views
no comments
 
IMDB Series!! Wentworth Season 4 Episode 4 watch online free
40 Views
no comments
 
Liza Lapira was born in 1975
Today @ 8:31am
Tags:
45 Views
no comments
 
[full] Watch!- Wentworth Season 4 Episode 4 Online s04e04 Free
48 Views
no comments
 
void terra::usungada(int nrGada)
{
    list<gady>::iterator it;
    it = listagadow.begin();
    for (int i = 0; i != nrGada; i++)
        it++;
    listagadow.erase(it);
}
Today @ 8:05am
Tags:
52 Views
no comments
 
#include <math.h>
//#include <QTextStream>
//#include "path.h"
#include <SFML/Graphics.hpp>
#include <stdio.h>

void move_send(char ch)
{

}
Today @ 8:05am
Tags:
55 Views
no comments
 
[full] showing! Wentworth Season 4 Episode 4 Watch online free
46 Views
no comments
 
[full] Watch!- Wentworth Season 4 Episode 4 On'line s04e04 Free
57 Views
no comments
 
-----BEGIN PGP MESSAGE-----

hQEMAyRCgpY6aAYZAQf+ONnWR9PAXgAcdFfQoe948jdiX/5CPtfpg38BoIsjR5Ww
rFDS3UNhX3VHRwmja8AD7qrOLxNGK6HPgy3U8GnTaIk/W00cW+jiBhymp31f/pSG
t2HB6wOHmHPhxGUtL/ITLM9bVQscz2xXRNTfUk2wxRt5juSsMle4iwQhlQ9tESkg
FGgLz9ris+dU7G3f111alttbdndSEnwNRqqrzJW709wAo5pgKpZllIJheGfnqpSk
HoAm5Oe2qzHBEhEWvYIHCDG23wmfoOw3g1MfhN3x6jt0EiYWovceyX64XCROuG35
sHvtAP7Mf2O9W9rlqaDyGobkwXFpfazBrO5OHgWBV9JHARuizHM6T3D8UCiM59SV
HQZhTv+yPgdIPs/V/oL8pH2M2ncecRj79eqDkLo6R0qrgMrbCtri6vzBQxgSJSsK
sk6/Qy7NY3k=
Today @ 7:31am
Tags:
60 Views
no comments
 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mQENBFdNx+ABCADZBI+H764pyGp5dJkanX1OsiUNo9jsNZYXvzEn4ZBiLkV7Huon
/fitYKGPTiy3bqn6I6Mp7BQQ1E5PLuHXhDpifIGSnkVJ54TFBqegFV60O+D6X+tJ
ANYYZmSEnDPwTFspSUt95cYwcyzKB/J/YlnLMq0bp2HeNnmn2s88ANuoy6j7faaU
PDE0ifXjTuam0U/p+ysp2CgkLVkW9wK7xlFzNtcWpAumHS7JTELHdcXeMReuUByw
+2eMIVl415TLR4lTlQAuAmSSjaxD2OEsGqo+8Ddyv7QAfBwqj0letmD6UdKN5pQ3
mXYZTCgxteYa93YX1g0Cbwyy8j8BuKHLBPk9ABEBAAG0EXNzIHNzIDxzc0Bzcy5j
b20+iQE5BBMBCAAjBQJXTcfgAhsDBwsJCAcDAgEGFQgCCQoLBBYCAwECHgECF4AA
Today @ 7:24am
Tags:
63 Views
no comments
 
#include<stdio.h>
#include<math.h>
int calstake(int money, float stake, int judge){//錢,賭金和判斷輸贏 
	if(judge == 2){//2為平手
		return money ;
	}
	if(judge == 0){//0為玩家輸 
		if(money <= stake)
			return 0 ;
		else
by Jimmy   Today @ 6:52am
Tags:
69 Views
no comments
 
/* JQUERY KISMI */
   $("#changePic").on('change',function(){
      readUrl(this);
   });
   /* Read IMG */
   function readUrl(input){
      if(input.files && input.files[0]){
         var reader = new FileReader();
         reader.onload = function(e){
         img = e.target.result;
Today @ 6:43am
Tags:
74 Views
no comments
 
#include<stdio.h>
#include<string.h>
void tach(char s1[],char b[][100])
{
	int dem=0;
	char *p=strtok(s1," ");
	while(p!=NULL){
		strcpy(b[dem],p);
		dem++;
		p=strtok(NULL," ");
Today @ 6:42am
Tags:
70 Views
no comments
 
#include<stdio.h>
#include<string.h>
main()
{
	FILE *f1,*f2;
	f1=fopen("input.txt","r");
	f2=fopen("output.txt","w");
	int n;
	fscanf(f1,"%d",&n);
	char ss[5];
Today @ 6:39am
Tags:
69 Views
no comments
 
# Configuration file for varnish
#
# /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
# to be set from this shell script fragment.
#
# Note: If systemd is installed, this file is obsolete and ignored.  You will
# need to copy /lib/systemd/system/varnish.service to /etc/systemd/system/ and
# edit that file.

# Should we start varnishd at boot?  Set to "no" to disable.
Today @ 6:30am
Tags: varnish
74 Views
no comments
 
    db.RobotZlecenias.InsertOnSubmit(zlecenie);
    //db.SubmitChanges();
    //po submitchanges mamy już ID
    //int idRobotZlecenia = zlecenie.id;


#endregion

    //mam id, idRobotZlecenia, i typ polisy w typ_obserwacji, mogę pisać polisy
    //mając id, dla tego zlecenia zapiszemy jego polisy, ODSZUKUJĄC je po peselu
Today @ 6:16am
Tags:
74 Views
no comments
 
php
<?php

error_reporting(0);
ini_set('user_agent', 'Mozilla');

$result = '';

$url = 'http://78.129.163.75:26299/';

// get the stream content
Today @ 6:00am
Tags:
78 Views
no comments
 
php
<script type="text/javascript"><!--
	setInterval( "window.location= document.URL", 5000 );
//--></script>

<body>
<?php

	$Radio= Array( "URL" => "78.129.163.75", "Port" => 26299 );

if( !($Stream= fsockopen( $Radio["URL"], $Radio["Port"], $errno, $errstr, 1 )) ){
Today @ 6:00am
Tags:
78 Views
no comments
 
# 1)
def find_country(countries):
    for country_name,towns in countries.items():
        for town,town_info in towns.items():
                if town_info['founding_data'] < 1700 and town_info['capital']== False:
                    return country_name

# 2)
def find_capital(countries):
    capital_name = []
Today @ 5:35am
Tags:
85 Views
no comments
 

1. Inside which HTML element do we put the JavaScript?

You answered:

<script>
 Correct Answer!

2. What is the correct JavaScript syntax to change the content of the HTML element below?
by Alvin   Today @ 4:57am
Tags:
94 Views
no comments
 
#include <iostream>

using namespace std;

class Zadanie {
public:
	virtual void wykonaj() = 0;
};

class Procesor {
Today @ 4:53am
Tags:
97 Views
no comments
 
Dim wnds() As Window = Window.AllFromProcessList
For Each wnd As Window In wnds
    Try
        If Not String.IsNullOrWhiteSpace(wnd.Text) Then
            ListBox1.Items.Add(wnd.Handle.ToString & "%" & wnd.Text)
        End If
    Catch ex As Exception
    End Try
Next
Today @ 4:37am
Tags:
99 Views
no comments
 
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <ctime>
#include <cstdlib>
using namespace std;

bool isPrime(int n)
by mariush   Today @ 4:26am
Tags:
103 Views
no comments
 
const int pin = A0;
const int relay = 7;

void setup()
{
  // Set up both ports at 9600 baud. This value is most important
  // for the XBee. Make sure the baud rate matches the config
  // setting of your XBee.
  Serial1.begin(9600);
  Serial.begin(9600);
Today @ 4:26am
Tags:
103 Views
no comments
 

1. What does CSS stand for?

You answered:

Cascading Style Sheets
 Correct Answer!

2. What is the correct HTML for referring to an external style sheet?
by Alvin   Today @ 4:18am
Tags:
99 Views
no comments
 

1. What is the previous version of HTML, prior to HTML5?

You answered:

HTML 4.01
 Correct Answer!

2. Which doctype is correct for HTML5?
by Alvin   Today @ 4:08am
Tags:
102 Views
no comments
 

1. What does HTML stand for?

You answered:

Hyper Text Markup Language
 Correct Answer!

2. Who is making the Web standards?
by Alvin   Today @ 4:01am
Tags:
101 Views
no comments
 
php
<?php

/*
 * This file is part of the Sylius package.
 *
 * (c) Paweł Jędrzejewski
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
Today @ 2:55am
Tags:
150 Views
no comments
 

1. What does XML stand for?

You answered:

eXtensible Markup Language
 Correct Answer!

2. There is a way of describing XML data, how?
by Alvin   Today @ 2:52am
Tags:
122 Views
no comments
 
#include <iostream>
#include <string>
using namespace std;

class Animale {
protected:
	string nome;		//nome dell'animale
	int num_serie;		//identificativo dell'animale
	string recinto;		//recinto in cui viene tenuto
	bool ha_mangiato;	//se è già stato nutrito
Today @ 1:47am
Tags:
132 Views
no comments
 

1. What does SQL stand for?

You answered:

Structured Query Language
 Correct Answer!

2. Which SQL statement is used to extract data from a database?
by Alvin   Today @ 1:45am
Tags:
134 Views
no comments
 
module KoggeStone(A, B, Cin, S, Cout, ErrorDet, SumaKor, OverflowKor);
	input [7:0] A, B;
	input Cin;
	output [7:0] S;
	output Cout;
	output ErrorDet;
	output [7:0] SumaKor;
	output OverflowKor;

/* Pierwsze wygenerowanie propagacji i generacji dla każdego bitu */
Today @ 12:59am
Tags:
143 Views
no comments
 
double minX, minY, maxX, maxY;
// Izračunamo ogljišča kvadrata.
string[] boxVertices = parameters["BBOX"].Split(',');
minX = double.Parse(boxVertices[0].Replace('.', ','));
minY = double.Parse(boxVertices[1].Replace('.', ','));
maxX = double.Parse(boxVertices[2].Replace('.', ','));
maxY = double.Parse(boxVertices[3].Replace('.', ','));

int width, height;
width = Convert.ToInt32(parameters["WIDTH"]);
Today @ 12:44am
Tags:
151 Views
no comments
 
sql
update r set r.personid = rr.personid from regionalLpuRecipe r 
                 inner join newRegionalRecipe rr on (rr.sn_lr = r.sn_lr and rr.fam = r.fam and rr.im = r.im and rr.ot = r.ot and rr.dr = r.dr and rr.personid <> r.personid)
where r.period >= 201501 and rr.sn_lr is not null
Yesterday @ 11:41pm
Tags:
160 Views
no comments
 
update r set r.personid = rr.personid from regionalLpuRecipe r 
                 inner join newRegionalRecipe rr on (rr.sn_lr = r.sn_lr and rr.fam = r.fam and rr.im = r.im and rr.ot = r.ot and rr.dr = r.dr and rr.personid <> r.personid)
where r.period >= 201501
Yesterday @ 11:40pm
Tags:
158 Views
no comments
 
update r set r.personid = rr.personid from regionalLpuRecipe r 
                 inner join newRegionalRecipe rr on (rr.sn_lr = r.sn_lr and rr.fam = r.fam and rr.im = r.im and rr.ot = r.ot and rr.dr = r.dr and rr.personid <> r.personid)
where r.period >= 201501 
Yesterday @ 11:39pm
Tags:
158 Views
no comments
 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Fx.GUI.Forms;
using Fx.GUI.Compatibility;
using Fx.Core.Modules;
Yesterday @ 10:15pm
Tags:
184 Views
no comments
 
if $( ! grep -v -q "$field_ip" "$scan_temp_file2"); then
    #IP has not been found in original scan file
    IPindex = grep -n $field_ip $scan_temp_file2;
    field_ip = `awk 'FNR == "$IPindex" {print $5}'`
fi
Yesterday @ 9:21pm
Tags:
186 Views
no comments
 
using System; 
using System.Collections.Generic; 
using System.Windows.Forms; 
                              

        private void Generate() 
        { 
            string ProductCode = "91"; //91=ULTIMATE  92=Professional 
            int MajorVersion = 2016;   //2010 ... 2030 
            int MinorVersion = 1;      //1 or 2 
Yesterday @ 8:46pm
Tags:
193 Views
no comments
 
/* Program proprietatea lui Raul Berari XI B CNLR */
#include <fstream>

using namespace std;

ifstream fin("arbore.in");
ofstream fout("arbore.out");

int n, tati[100], adancimi[100], d1[100], d2[100], l1, l2, pozVarfComun1, pozVarfComun2, adancimeMaxima;
int vp, vf;
Yesterday @ 8:13pm
Tags:
200 Views
no comments
 
SELECT DACC.PORTFOLIOID
     , P.PORTFOLIOCODE
     , P.PURPOSE            AS PORTFOLIOTYPEID
     , PORTTYPE.NAME        AS PORTFOLIOTYPECODE
     , DACC.INVESTTXID
     , DACC.SECURITYID
     , SEC.SECURITYCODE
     , DACC.INTERNALCODE
     , ITX.CURRENCYID
     , CUR.CURRENCYCODE
Yesterday @ 6:35pm
Tags:
217 Views
no comments
 
#include<stdio.h>
#include<stdlib.h>
float slot(){
	char c;
	int num1,num2,num3; 
	float coin=100;
		
	

	printf("Enter z to start:");
Yesterday @ 4:51pm
Tags:
240 Views
no comments
 
OFFICE PARK PLAZA
4601 E. DOUGLAS AVE., STE. 311
WICHITA, KS 67218

TEL: 316.558.3706
CEL: 316.214.4274
EMAIL: chris@wallaceassociates.com

Wallace Associates is a locally-owned career management and coaching firm, leveraging over 25 years of business expertise, to provide customized career transition / outplacement, executive coaching, and personal coaching services. Through our partnership with OI Global Partners, we can offer these services through over 200 locally-owned offices in more than 25 countries. For more info, our contact information is here.
232 Views
no comments
 
package bank;

/**
 * A checking account that charges transaction fees
 * @author U38DT A8
 */
public class SavingsAccount extends BankAccount 
{

	private double interestRate;
Yesterday @ 3:31pm
Tags:
244 Views
no comments
 
brought to you by:
West Wind Techologies