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 "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/video/tracking.hpp"
#include <iostream>
#include <cmath>
#include <algorithm>
#include <list>

using namespace cv;
using namespace std;
by p4blito   Today @ 10:12am
Tags:
11 Views
no comments
 
public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		System.out.println("How old are you?");
		int age = in.nextInt(); 
		
		ReturnTest(age);
		String newVariable;
		newVariable = ReturnTest(age);
		System.out.println(newVariable);
Today @ 10:11am
Tags:
12 Views
no comments
 
www.textuploader.com/d15dg
www.textuploader.com/d15dx
www.textuploader.com/d15dp
www.textuploader.com/d15du
www.textuploader.com/d15d2
www.textuploader.com/d15dn
www.textuploader.com/d15dw
www.textuploader.com/d15dy
www.textuploader.com/d15db
www.textuploader.com/d15d3
Today @ 9:27am
Tags:
20 Views
no comments
 
asdasdasdsadasdasdas
Today @ 8:22am
Tags:
35 Views
no comments
 
using UnityEngine;
using System.Collections;

public class DisplayReticle : MonoBehaviour
{
	private GameplayUserInterface gameInterface;
	private Texture2D reticle;
	private float reticleScale;

	public DisplayReticle (GameplayUserInterface gameplayUserInterface)
Today @ 7:42am
Tags:
48 Views
no comments
 
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayState : IGameInterfaceState {

	public DisplayReticle displayReticle;

	private readonly GameplayUserInterface gameInterface;
	private Texture2D reticle;
Today @ 7:40am
Tags:
47 Views
no comments
 
using System.Collections;
using UnityEngine;

public interface IGameInterfaceState
{
	
	void UpdateState();

	void ToPlayState();

Today @ 7:38am
Tags:
49 Views
no comments
 
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameplayUserInterface : MonoBehaviour 
{
	[HideInInspector] public IGameInterfaceState CurrentState;

	//----------------STATES----------------//
	[HideInInspector] public PlayState PlayState;
Today @ 7:36am
Tags:
50 Views
no comments
 
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
class bank
{
private: string vid, valuta; double kilkist;
public:
bank();
~bank();
Today @ 7:33am
Tags:
50 Views
no comments
 
//Settings
var GameMode = 1;				//Default: 5		1 = Martingale, 2 = Paroli, 3 = D’Alembert, 4 = Pluscoup, 5 = Recovery
var MaxProfitMode = false;		//Default: true		If this setting is true, you will always bet ("PercentOfTotal" * your balance), if this setting is false you will just bet your BaseBet.
var PercentOfTotal = 0.1;		//Default: 0.1		If MaxProfitMode is true, your BaseBet will always be ("PercentOfTotal" * your balance). Default 0.1% of your total balance.
var BaseBet = 3;				//Default: 100		This is the value of your first bet (in bits) when MaxProfitMode is set to false.
var Multiplier = 2;			//Default: 1.05		This is the multiplier where the bot will stop (not on GameMode 2 and 3).
var dalembert = 1;				//Default: 1		When you play D'alembert you will raise your bet after a loss or lower your bet after a win with this amount.
var MaxBet = 1000000;			//Default: 1000000	The bot will never bet more than this amount (in bits).
var MaxProfit = 100000;			//Default: 100000	The bot will stop when your total balance is higher that this value (in bits).
var MaxLoss = 30000;			//Default: 25000	You will never lose more than this amount (in bits). If a bet would exceed this amount, the bot stops automatically.
Today @ 7:26am
Tags:
52 Views
no comments
 
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
class bank
{
private: string vid, valuta; double kilkist;
public:
bank();
~bank();
Today @ 7:22am
Tags:
53 Views
no comments
 
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
class bank
{
private: string vid, valuta; double kilkist;
public:
bank();
~bank();
Today @ 7:14am
Tags:
54 Views
no comments
 
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
class bank
{
private: string vid, valuta; double kilkist;
public:
bank();
~bank();
Today @ 7:07am
Tags:
56 Views
no comments
 
// ConsoleApplication3.cpp: определяет точку входа для консольного приложения.
//

#include "stdafx.h"
#include <cstdlib> 
#include <iostream> 
#include <fstream>
#include <string>
using namespace std;

Today @ 6:41am
Tags:
60 Views
no comments
 
sql
SELECT
	personelgruplari.PersonelGrupAdi,
	fiyatlar.Fiyat,
	personeller.ID AS perid,
	personeller.Ad,
	personeller.Soyad
FROM
	fiyatlar
INNER JOIN firmaurunleri ON fiyatlar.FirmaUrunleriID = firmaurunleri.ID
INNER JOIN personelgruplari ON fiyatlar.PersonelGrupID = personelgruplari.ID
Today @ 6:26am
Tags:
60 Views
no comments
 
1) Cudrar el contenido de los títulos
2) Cudrar las imágnes con los textos de los servicios
4) Refrescar la página para ver el pop up.
5) Un efecto a los íconos de "Nuestro Servicios"
6) Desaparecer el efecto para los íconos independiente de "Nuestros Servicios"
3) Tamaña fijo en sección ¿Por qué MBS GROUP?
7) Quitar el efecto de cada item de ¿¿Por qué MBS GROUP?
8) Pop up de mensaje cuando se envía el correo.
Today @ 5:42am
Tags:
63 Views
no comments
 
{
  "id": "1116",
  "result": {
    "game_cards": [
      {
        "id": 406,
        "val": 6,
        "lear": 4,
        "beat": {
          "id": 214,
Today @ 4:54am
Tags:
77 Views
no comments
 
using System;
using System.Drawing;

// WebDriver and WebDriver.Support assemlies required.
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.PageObjects;
using OpenQA.Selenium.Support.UI;

namespace ConsoleApplication1
by Free_ze   Today @ 4:17am
80 Views
no comments
 
#include <iostream>

using namespace std;

int main() {

	float result = 0;
	float inclass[4] = {81, 100, 100, 96};
	float hw[2] = {100, 100};
	float Final = 57;
Today @ 4:10am
Tags:
90 Views
no comments
 
"use strict";

let core = require('./core-service');

let _ = require('underscore');
let async = require('async');
let crypto = require('crypto');

let NotFoundError = require('../errors/NotFoundError');
let PermissionError = require('../errors/PermissionError');
Today @ 3:22am
Tags:
99 Views
no comments
 
"use strict";

let core = require('./core-service');

let _ = require('underscore');
let async = require('async');
let crypto = require('crypto');

let NotFoundError = require('../errors/NotFoundError');
let ServerError = require('../errors/ServerError');
Today @ 3:20am
Tags:
95 Views
no comments
 
www.textuploader.com/d1akr
www.textuploader.com/d1ak9
www.textuploader.com/d1ak0
www.textuploader.com/d1ako
www.textuploader.com/d1ak6
www.textuploader.com/d1akj
www.textuploader.com/d1ak4
www.textuploader.com/d1akq
www.textuploader.com/d1akc
www.textuploader.com/d1akh
Today @ 3:11am
Tags:
100 Views
no comments
 
php
Magento\Framework\Search\Request Object
(
    [name:protected] => quick_search_container
    [index:protected] => catalogsearch_fulltext
    [buckets:protected] => Array
        (
            [0] => Magento\Framework\Search\Request\Aggregation\DynamicBucket Object
                (
                    [name:protected] => price_bucket
                    [field:protected] => price
Today @ 2:54am
Tags:
96 Views
no comments
 
www.textuploader.com/d1akr
www.textuploader.com/d1ak9
www.textuploader.com/d1ak0
www.textuploader.com/d1ako
www.textuploader.com/d1ak6
www.textuploader.com/d1akj
www.textuploader.com/d1ak4
www.textuploader.com/d1akq
www.textuploader.com/d1akc
www.textuploader.com/d1akh
Today @ 2:45am
Tags:
104 Views
no comments
 
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

char* printerError(char *s) {
    size_t len = strlen(s);
    int cnt=0;
    for (int i=0; s[i] != '\0'; i++){
        if (!isalpha(s[i])){
            return "The string doesn't contain alpha-numeric characters";
Today @ 2:40am
Tags:
111 Views
no comments
 
$(".add_file").click(
    function(event) {
        var attaches = $('#attaches');
        var data = new FormData;
        data.append('file', attaches.prop('files')[0]);
        $.ajax({
            url: '/task/upload',
            type: 'post',
            processData: false,
            contentType: false,
Today @ 2:18am
Tags:
114 Views
no comments
 
Here are some signs of a possible dishonest employee:

1. Never wants to take a vacation.

There's a reason, and it's not workaholism. Bookkeepers behaving badly like to be in a position to intercept phone calls and correspondence. And as for the boss rifling through their desk to find something when they're out of the office -- that would be unbearable, of course!

2. Always has more work to do than can possibly get finished during normal working hours

So much, in fact, that they have to stay after everyone else goes home. Or, if you'll let them, they like to take the work home. This might not be the loyalty you expect: unsupervised work lets the bookkeeper tamper with records with less chance of discovery.

115 Views
no comments
 
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class PickUp : MonoBehaviour
{
    Text NumberofThingsTextElement = null;

    public string TagOfUITextElement = "";
    public bool TriggersNextLevel = false;
Today @ 1:31am
Tags:
114 Views
no comments
 
#include<bits/stdc++.h>
using namespace std;
int main()
 {
	int t=0,i=0,j=0,k=0,x=0;
	cin>>t;
	while(t--)
	{
	    string s1,s2;
	    cin>>s1>>s2;
Today @ 1:15am
Tags:
117 Views
no comments
 
from django.shortcuts import render
from .models import Games,Game_detail
from django.shortcuts import render,get_object_or_404,redirect
from django.views.generic import ListView,DetailView

class IndexView(ListView):
    template_name ='games/list.html'
    model = Games
 
    def get_queryset(self):
Today @ 12:48am
Tags:
122 Views
no comments
 
// ConsoleApplication2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "process.h"
#include "iostream"
#include "string"
using namespace std;
void roman(int), transf(), taxi(double, double);
int _tmain(int argc, _TCHAR* argv[])
Today @ 12:45am
Tags:
120 Views
no comments
 
1. NGINX

В папке "/etc/nginx/sites-available" создать файл "2016kyiv"

Содержимое файла:

upstream 2016kyiv {
    server unix:/home/outsource_people/2016kyiv_app/shared/tmp/unicorn.sock fail_timeout=0;
  }

Today @ 12:37am
Tags:
127 Views
no comments
 
// ConsoleApplication2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "process.h"
#include "iostream"
#include "string"
using namespace std;
void roman(int), transf();
int _tmain(int argc, _TCHAR* argv[])
Today @ 12:21am
Tags:
131 Views
no comments
 
// inCkass2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream"
#include "process.h"
#include "string.h"
using namespace std;

void ten_to_roman(int);
Yesterday @ 11:33pm
Tags:
26 Views
no comments
 
import requests, json

i=1
total = {}
total_usd = 0
num_paid = 0

while True:
	url = 'https://shopicruit.myshopify.com/admin/orders.json?page=%i&access_token=c32313df0d0ef512ca64d5b336a0d7c6' % i
	req = requests.request('GET', url)
Yesterday @ 11:22pm
Tags:
25 Views
no comments
 
/**
*   @module
*   This module is used to create a primitive which when added to the scene
*   renders a mesh based on provided data.
*   Shader text at the bottom of the page.
*/
define([
    "dojo/text!Scripts/js_sdk/shaders/water_mesh_vshader.txt",
    "dojo/text!Scripts/js_sdk/shaders/water_mesh_fshader.txt"
    ], function (
by sushrut   Yesterday @ 10:27pm
Tags: Cesium
31 Views
no comments
 
Japan Asia Group is leading the way towards green communities, both locally and globally, through synergy among 85 subsidiaries, in four core divisions.

We have a proven track record of over 60 megawatts of solar PV from Europe to Japan. By leveraging our extensive group expertise, we can take our own locally-tailored renewable energy projects right from due diligence and financing, to design, construction and operation.

Our real estate solutions increase both asset value and environmental value with the latest energy saving and generation technologies, for both public and private sector clients, as well as disaster-resilient eco-town developments.	

by Shexiamae Chiaxin   Yesterday @ 10:09pm
27 Views
no comments
 
/**
 * bxSlider v4.2.5
 * Copyright 2013-2015 Steven Wanderski
 * Written while drinking Belgian ales and listening to jazz

 * Licensed under MIT (http://opensource.org/licenses/MIT)
 */
! function(a) {
    var b = {
        mode: "horizontal",
Yesterday @ 9:46pm
Tags:
26 Views
no comments
 
/**
 * bxSlider v4.2.5
 * Copyright 2013-2015 Steven Wanderski
 * Written while drinking Belgian ales and listening to jazz

 * Licensed under MIT (http://opensource.org/licenses/MIT)
 */
! function(a) {
    var b = {
        mode: "horizontal",
Yesterday @ 9:46pm
Tags:
26 Views
no comments
 
WhatsApp is an extremely popular mobile messaging service with over 1 billion daily users. That's an amazing figure, and the company prides itself in the apparent security it affords all of those users (provided they are running the latest version of the app). Below is our guide on how to ensure your WhatsApp messages are fully end-to-end encrypted. 
	
However it's also good to be aware that not everyone trusts the company's word, in part because of privacy issues surrounding its parent company Facebook and also its implementation of encryption. WhatsApp uses part of a security protocol developed by Open Whisper Systems, a company that has its own fully secure messaging app Signal (for iOS and Android).  It's very good. It may not be as obsessed with multimedia sharing as WhatsApp but its basic functions are the same - and fully end-to-end encrypted.  In January 2017 the Guardian reported claims that WhatsApp 'has the ability to force the generation of new encryption keys for offline users, unbeknown to the sender and recipient of the messages, and to make the sender re-encrypt messages with new keys and send them again for any messages that have not been marked as delivered.'

The Guardian claimed that WhatsApp has a 'backdoor'. If WhatsApp covertly changed security keys of a user, the company could, according to Tobias Boelter, a cryptography and security researcher at the University of California, 'disclose its messaging records, it can effectively grant access due to the change in keys' at the request of government agencies. 

WhatsApp claims this loophole exists so that if someone changes their phone, and therefore their automatic security key, messages will still send so as not to disrupt service. This is, to be fair, a valid point, as not doing so would disrupt the service of 1 billion people relatively frequently.  WhatsApp's full statement can be found here via Reddit. Open Whisper Systems also issued a statement here. While one can't say for sure who is right, it continues to show that companies that try to promote security are the ones that end up suffering for it publicly.  Despite this, here is our guide on how to turn on WhatsApp encryption in the first place, and also how to opt out of adverts on the platform.

WhatsApp encryption explained: What is encryption?

by Judith Francis   Yesterday @ 9:11pm
27 Views
no comments
 
sql
cache_explode = {
   if (!currExpl) then {
      currExpl = true;
      _cache = _this select 0;
      
      if (_cache == cacheList select 0) then {
         {deleteMarker _x} forEach Intel_List;

         Intel_List = [];
         Intel_Ammount = 0;
Yesterday @ 8:41pm
Tags:
28 Views
no comments
 
sql
/////////////////////////////////////////////////////////
//// creating ammo caches By Mr. Blizzard (T. Montgomery)
/////////////////////////////////////////////////////////
cacheAmount = 8;
cacheList = [];
Intel_Ammount = 0;
Intel_List = [];
currExpl = false;

	_HouseLocations = nearestObjects [getMarkerPos "center", Houses, 9500];
Yesterday @ 8:40pm
Tags:
29 Views
no comments
 
Employee fraud is a significant problem faced by organizations of all types, sizes, locations and industries. While we would all like to believe our employees are loyal and working for the benefit of the organization (and most of them probably are), there are still many reasons why your employees may commit fraud and several ways in which they might do it. According to the 2014 Report to the Nation on Occupational Fraud and Abuse (copyright 2014 by the Association of Certified Fraud Examiners, Inc.), research shows that the typical organization loses 5% of its annual revenue each year due to employee fraud. Prevention and detection are crucial to reducing this loss. Every organization should have a plan in place as preventing fraud is much easier than recovering your losses after a fraud has been committed.

Types of Fraud

Fraud comes in many forms but can be broken down into three categories: asset misappropriation, corruption and financial statement fraud. Asset misappropriation, although least costly, made up 90% of all fraud cases studied. These are schemes in which an employee steals or exploits its organization’s resources. Examples of asset misappropriation are stealing cash before or after it’s been recorded, making a fictitious expense reimbursement claim and/or stealing non-cash assets of the organization. 

Financial statement fraud comprised less than five percent of cases but caused the most median loss. These are schemes that involve omitting or intentionally misstating information in the company’s financial reports. This can be in the form of fictitious revenues, hidden liabilities or inflated assets.

Corruption fell in the middle and made up less than one-third of cases. Corruption schemes happen when employees use their influence in business transactions for their own benefit while violating their duty to the employer. Examples of corruption are bribery, extortion and conflict of interest.

31 Views
no comments
 
Logfile of Trend Micro HijackThis v2.0.5
Scan saved at 04:40:39, on 23.01.2017
Platform: Unknown Windows (WinNT 6.02.1008)
MSIE: Internet Explorer v11.0 (11.00.14393.0000)


Boot mode: Normal

Running processes:
C:\Program Files (x86)\NVIDIA Corporation\NvContainer\nvcontainer.exe
Yesterday @ 5:41pm
Tags:
32 Views
no comments
 
Jul. 2015     Dissolved holdings company structure (Japan Asia Holdings Limited, KOKUSAI KOGYO HOLDINGS CO., LTD.)
  
                  JAG Energy Co., Ltd. and Kokusai Land & Development Co., Ltd. amalgamated into JAG Energy Co., Ltd.
  
May. 2015   Admitted to First Section of Tokyo Stock Exchange (Code: 3751; Company abbreviation: JAG)
  
Mar. 2015   Ashigara-Oi SolarWay (13 MW) completed in Kanagawa
  
Dec. 2014   Seabell International Co., Ltd. becomes consolidated subsidiary (name changed to JAG Seabell Co., Ltd.)
 
by Kai Vaughn   Yesterday @ 5:02pm
35 Views
no comments
 
<?PHP include("inc/_top.php"); ?>

<?PHP

$_OPTIMIZATION["title"] = "Hesap Bilgileri";

$id = $_GET["id"];

$db->Query("SELECT * FROM db_users_a WHERE id = '$id'");

Yesterday @ 4:56pm
Tags:
40 Views
no comments
 
The holidays are a stressful period for online retailers, who get not only more customers but also a higher ratio of fraudsters. And when manual fraud reviews are added to the mix, the problem only gets worse.

ACI Worldwide expects online fraud to have gone up 12 percent this holiday season globally, and 43 percent in the U.S. The U.S. rates are expected to be higher because the shift to more secure chip cards by physical retailers is pushing fraudsters online.

There are two main risks associated with manual reviews during peak shopping periods, said Michael Reitblat, CEO at payment security vendor Forter.

First, external fraudsters will try to take advantage of employees who are trying to handle a higher volume of transactions than at other times, and of under-trained temporary employees who were hired specifically to deal with the rush.

Typical frauds include criminals buying goods with stolen payment cards, or calling companies and trying to extract sensitive information that they can use for future frauds.

34 Views
no comments
 
/*
 inject_script
 doesn't bypass content security policies
*/
function inject_script(src, integrity){ 
	var script = document.createElement('script');
	script.setAttribute('src', src);
	if (integrity) {
		script.setAttribute('integrity', integrity);
	}
Yesterday @ 4:27pm
Tags:
33 Views
no comments
 
 Kreator Gods of Violence Album {Download}Kreator Gods of Violence Album {Download}Gods of Violence./;, |ZiP] ;. Kreator Gods of Violence ,. (+Download)

Download Album: bit.ly/2jcS7Ji
Yesterday @ 2:55pm
Tags:
47 Views
no comments
 
Gods of Violence Leak Free Full Album

Download Album: bit.ly/2jcS7Ji
Yesterday @ 2:54pm
Tags:
44 Views
no comments
 
brought to you by:
West Wind Techologies