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
import json, xmljson, re, types, sqlite3, base64, os, shutil
from mailer import Mailer
from mailer import Message
from lxml.etree import fromstring, tostring
from datetime import datetime
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.parser import Parser
from email.encoders import encode_base64

Today @ 11:47am
Tags:
66 Views
no comments
 
 Starcraft and Brood War Patch Information
--------------------------------------------------------------------------------
- patch 1.17.0
--------------------------------------------------------------------------------
Specific Changes & Improvements
- Increased turn rate to lower unit response times over Battle.net gameplay
- Fixed palette issues to correct "rainbow water" and other graphic artifacts
- Fixed text artifacting in the Battle.net menus
- First client run will migrate saves to avoid issues from Windows system admin changes
Known Issues
Today @ 11:07am
Tags:
82 Views
no comments
 
[16:57:45] [Server thread/INFO]: Starting minecraft server version 1.8.8
[16:57:45] [Server thread/INFO]: Loading properties
[16:57:45] [Server thread/INFO]: Default game type: SURVIVAL
[16:57:45] [Server thread/INFO]: This server is running CraftBukkit version git-PaperSpigot-5be55c3-18fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
[16:57:45] [Server thread/INFO]: Debug logging is disabled
[16:57:45] [Server thread/INFO]: Server Ping Player Sample Count: 12
[16:57:45] [Server thread/INFO]: Using 4 threads for Netty based IO
[16:57:45] [Server thread/INFO]: Data value allowed items: 
[16:57:45] [Server thread/INFO]: Generating keypair
[16:57:45] [Server thread/INFO]: Starting Minecraft server on *:8888
Today @ 11:01am
Tags:
68 Views
no comments
 
[16:52:49] [Server thread/INFO]: Starting minecraft server version 1.8.8
[16:52:49] [Server thread/INFO]: Loading properties
[16:52:49] [Server thread/INFO]: Default game type: SURVIVAL
[16:52:49] [Server thread/INFO]: This server is running CraftBukkit version git-PaperSpigot-5be55c3-18fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
[16:52:49] [Server thread/INFO]: Debug logging is disabled
[16:52:49] [Server thread/INFO]: Server Ping Player Sample Count: 12
[16:52:49] [Server thread/INFO]: Using 4 threads for Netty based IO
[16:52:49] [Server thread/INFO]: Data value allowed items: 
[16:52:49] [Server thread/INFO]: Generating keypair
[16:52:49] [Server thread/INFO]: Starting Minecraft server on *:8888
Today @ 10:56am
Tags:
75 Views
no comments
 
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace WindowsFormsApplication2
{
by Ertan Çakır   Today @ 10:50am
Tags:
72 Views
no comments
 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
by Ertan Çakır   Today @ 10:47am
Tags:
72 Views
no comments
 
//-----------------------------------------------------------------------------------------------------
//     This code was generated by the Wmi Delphi Code Creator (WDCC) Version 1.9.9.350
//     http://code.google.com/p/wmi-delphi-code-creator/
//     Blog http://theroadtodelphi.wordpress.com/wmi-delphi-code-creator/
//     Author Rodrigo Ruz V. (RRUZ) Copyright (C) 2011-2015
//----------------------------------------------------------------------------------------------------- 
//
//     LIABILITY DISCLAIMER
//     THIS GENERATED CODE IS DISTRIBUTED "AS IS". NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED.
//     YOU USE IT AT YOUR OWN RISK. THE AUTHOR NOT WILL BE LIABLE FOR DATA LOSS,
Today @ 10:34am
Tags:
73 Views
no comments
 
php
<?php

require_once("../views/controle.php");
require_once("../classes/class.upload.php");

if($_POST){
    $user_id = $_POST['user_id'];
    $image  = new upload($_FILES['image']);
    $content = stripslashes(strip_tags(htmlspecialchars($_POST['share-content'])));
    $images  = array();
Today @ 10:19am
Tags:
80 Views
no comments
 
/*
 * @brief: Function sets the custom data identified with provided UUID to the advertiser's BT_ADAPTER_LE_PACKET_SCAN_RESPONSE packet.
 * Before the advertiser is updated, it has to be stopped and cleared. Once the advertiser is cleared, it has to be configured again
 * by provision of relevant properties. Afterwards the solicitation UUID is added and the provided data bound to this UUID.
 * Finally the advertiser is started again.
 * @param[adv_h]: the handle of the advertiser to be altered.
 * @param[uuid]: the UUID of the service's to be correlated with the provided data.
 * @param[data]: the custom data array to be added.
 * @param[data_size]: the size of the data passed.
Today @ 9:01am
Tags:
88 Views
no comments
 
map='<C><P Ca="" /><Z><S><S L="25" o="CDCDCD" H="25" X="402" Y="96" T="12" P="0,0,0,0,0,0,0,0" /><S L="25" o="CDCDCD" H="25" X="421" Y="96" T="12" P="0,0,0,0,22,0,0,0" /><S L="25" o="CDCDCD" H="25" X="437" Y="96" T="12" P="0,0,0,0,45,0,0,0" /><S L="25" o="CDCDCD" H="25" X="448" Y="96" T="12" P="0,0,0,0,68,0,0,0" /><S L="25" o="CDCDCD" H="25" X="452" Y="96" T="12" P="0,0,0,0,90,0,0,0" /><S L="25" o="CDCDCD" H="25" X="448" Y="96" T="12" P="0,0,0,0,112,0,0,0" /><S L="25" o="CDCDCD" H="25" X="437" Y="96" T="12" P="0,0,0,0,135,0,0,0" /><S L="25" o="CDCDCD" H="25" X="421" Y="96" T="12" P="0,0,0,0,158,0,0,0" /><S L="25" o="CDCDCD" H="25" X="402" Y="96" T="12" P="0,0,0,0,180,0,0,0" /><S L="25" o="CDCDCD" H="25" X="383" Y="96" T="12" P="0,0,0,0,202,0,0,0" /><S L="25" o="CDCDCD" H="25" X="367" Y="96" T="12" P="0,0,0,0,225,0,0,0" /><S L="25" o="CDCDCD" H="25" X="356" Y="96" T="12" P="0,0,0,0,248,0,0,0" /><S L="25" o="CDCDCD" H="25" X="352" Y="96" T="12" P="0,0,0,0,270,0,0,0" /><S L="25" o="CDCDCD" H="25" X="356" Y="96" T="12" P="0,0,0,0,292,0,0,0" /><S L="25" o="CDCDCD" H="25" X="367" Y="96" T="12" P="0,0,0,0,315,0,0,0" /><S L="25" o="CDCDCD" H="25" X="383" Y="96" T="12" P="0,0,0,0,338,0,0,0" /></S><D><DS Y="70" X="403" /></D><O /></Z></C>'
mice={}
diff=(Diff=="e" and )
mg={
colorcubes=function(a)
if a then
local g={}
while #g<diff do
local r={90,80,70,60,-60,-70,-80}
function G()
by Tocuto   Today @ 8:43am
Tags:
90 Views
no comments
 
void edd(){
   
}
Today @ 8:40am
Tags:
93 Views
no comments
 
setTimeout(function() {
        $(function () {
            $('#file_table').dynatable({
                readers: {
                    'id1': function (el, record) {
                        return Number(el.innerHTML) || 0;
                    }
                },
                writers: {
                    _rowWriter: myRowWriter1
Today @ 7:36am
Tags:
100 Views
no comments
 
using UnityEngine;
using System.Collections;
using System; 
using System.Collections.Generic;
using UnityEngine.UI; 
using CodeStage.AntiCheat.ObscuredTypes;

public class AS_CanvasUI : MonoBehaviour
{
    /*
Today @ 7:21am
Tags:
100 Views
no comments
 
private void processMainScreenClick(){
    if(Minimap.minimapState != 0)
        return;
    if(mouseButtonPressed == 1){
        int i = clickX - 20 - 530;
        int j = clickY - 8;
        if(i >= 0 && j >= 0 && i < 153 && j < 153 && canClickMap()){
            if(inCircle(0, 0, i, j, 77)){
                i -= 77;
                j -= 77;
Today @ 7:10am
Tags:
103 Views
no comments
 
#include <stdio.h>
#include <string.h>
#include <vector>
#include <queue>
#include<iostream>
#define MAX 100
using namespace std;

struct Node{
by Amit Ghosh   Today @ 3:46am
Tags:
142 Views
no comments
 
binom::Integer->Integer->Integer
binom n k = 
	if k==0 then 1
		else if n==k then
			1
			else
				(binom (n-1) (k-1)) + (binom (n-1) k)
--b)
binom':: Integer->Integer->Integer
binom' 0 k = 1
Today @ 2:58am
Tags:
158 Views
no comments
 
#include <QApplication>
#include <QTimer>
#include <QFontDialog>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QTimer::singleShot(0, [] () -> void {
        bool ok;
Today @ 1:55am
Tags:
162 Views
no comments
 
{
	"always_show_minimap_viewport": true,
	"bold_folder_labels": true,
	"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
	"ensure_newline_at_eof_on_save": true,
	"font_options":
	[
		"gray_antialias"
	],
	"font_size": 14,
Today @ 1:22am
Tags:
165 Views
no comments
 
using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class PhysicsEngine : MonoBehaviour
{
    public Vector3 Velocity;          
    public Vector3 NetForce;          
    public float Mass;                      
by Harri Hinto   Today @ 12:37am
Tags:
176 Views
no comments
 
Workplace exposure assessments involve determining which chemical or biological hazards exist within the workplace and then sampling to determine if levels are within tolerances established by ACGIH, as required by the Manitoba Workplace Safety and Health Act (Part 36). Consulting services would include an evaluation of the workplace, determination of applicable chemical substances to be analyzed, collection of the samples and interpretation of the results.

Samples are collected according to NIOSH (National Institute for Occupational Safety and Health) or other applicable standards and are analyzed by laboratories accredited by AIHA (American Industrial Hygiene Association), CALA (Canadian Association for Laboratory Accreditation) or other applicable agency.

MWI Consultants

We offer a wide variety of services related to workplace exposure assessments, including the following services:

Welding exposure assessments, including metals analysis according NIOSH Method 7303 and NIOSH 0500/0600 md-Gravimetric Hygiene Methods. This could include situations where it had been found by Manitoba Labour and Immigration Workplace Safety and Health Division that the assessments of chemical and biological substances in the workplace were absent or not adequate.

by Liane Mckee   Today @ 12:21am
186 Views
no comments
 
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <FastLED.h>
#include <SimpleTimer.h>

#define DATA_PIN           12
#define NUM_LEDS           10

int varHue;
Today @ 12:09am
Tags:
183 Views
no comments
 
	$p_name = $_POST['pageName'];
	$p_ozet = $_POST['pageOzet'];
	$p_icerik = $_POST['pageIcerik'];
	$klasor="dist/img";
	$dosya_sayi=count($_FILES['pageResim']['name']); 
		for($i=0;$i<$dosya_sayi;$i++){ 
			if(!empty($_FILES['pageResim']['name'][$i])){ 
			 move_uploaded_file($_FILES['pageResim']['tmp_name'][$i],$klasor."/".$_FILES['pageResim']['name'][$i]); 
			 
			} 
by Kerim   Yesterday @ 11:51pm
Tags:
192 Views
no comments
 
Other Factors that Affect Indoor Air Quality

Aside from the common concerns that affect indoor quality, MWI also provides service to eliminate often-neglected or unrecognized substances that can endanger health or affect living and working environments. Here are some of them:

1.Allergens

Many people take simple colds and allergies for granted and buy over-the-counter drugs to try to cure them, until they have really terrible and serious attacks. Skin rashes and asthma attacks are two of the common symptoms of the power of allergens to cause disease and discomfort. 

Allergens come in many various forms and sources: from insects such as from roaches, dust mites, from animals such as dogs, cats, mice and from human-made materials such as furniture, carpets and others. MWI Consultants conducts testing to determine the extent of the problem and the right solutions to eliminate the source(s). The analysis requires the use of qualified lab technicians undertaking an enzyme-linked immunobsorbent (ELISA) assay. 

by Tara Minjares   Yesterday @ 11:08pm
198 Views
no comments
 
sql
delimiter //
CREATE TRIGGER Hosting_Insert BEFORE INSERT ON tblhosting
    FOR EACH ROW
    BEGIN
        IF NEW.userid = 0 THEN
            SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'userid is 0';
        ELSEIF NEW.userid = '0' THEN
            SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'userid is 0';
        END IF;
    END;//
Yesterday @ 10:27pm
Tags:
198 Views
no comments
 
#include <iostream>
#include <iomanip>
#include <string>
#include <typeinfo>
#include <cstdlib>
#include <ctime>
using namespace std;

template <typename T>
string type() {
Yesterday @ 10:23pm
Tags:
216 Views
no comments
 
На устройствах jailbroken должен быть отключен функционал аутентификации в личном кабинете.
На устройствах с root доступом должен быть отключен функционал аутентификации в личном кабинете.
Не хранить учетные и персональные данныепользователей в файловой системе телефона. Данные приложения должны загружатьсяна устройство с сервера после успешной процедуры аутентификации.
Там, где необходимо хранение иликэширование информации использовать библиотеки шифрования стандарта iOSCommonCrypto. 
Для локального хранения данных приложения на устройстве android использовать device administration API для принудительного шифрования файлов с использованием «setStorageEncryption»
Для хранения данных приложения на SD карте использовать библиотеку«javax.crypto» для шифрования текстовых данных с мастер-паролем по алгоритму  AES 128.
Для хранения ключей шифрования использовать apple keychain API
Не допускается хранение  ключей шифрования в коде приложения Обеспечить все общие настройки свойства не MODE_WORLD_READABLE если явно требуется для обмена информацией между приложениями.
Для баз данных Sqlite использовать SQLcipher для шифрования данных
Для более крупных или более общих видов потребительского класса данных, может безопасно использоваться механизм защиты файлов от Apple (см. ссылку класса NSData для опции защиты).
Yesterday @ 9:36pm
Tags:
215 Views
no comments
 
#include <iostream>
#include <iomanip>
using namespace std;

class intArray{

private:

public:
	intArray(){};
Yesterday @ 9:01pm
Tags:
221 Views
no comments
 
if (bag.BagType == BagType.TerminalCasset)
                {
                    return TreasuryInfoTypeEnum.TerminalCassetTreasuryInfo;
                }
                if (bag.BagType == BagType.PodkerplenieVivoz || bag.BagType == BagType.IncomeIncassViruchka
                    || bag.BagType == BagType.IncasBanks || bag.BagType == BagType.IncomeIncassViruchka
                    || bag.BagType == BagType.MiniBranches)
                {
                    return TreasuryInfoTypeEnum.BagsTreasuryInfo;
                }
Yesterday @ 8:48pm
Tags:
220 Views
no comments
 
#include <iostream>
#include <iomanip>
using namespace std;

#include "templatelib.h"

int main() {

	tArray<int> a;
	tArray<int> b(20);
Yesterday @ 8:45pm
Tags:
221 Views
no comments
 
新增兩個函數:frand()、irand(),可產生亂數,並自定義亂數範圍的最大跟最小值。

#include <iostream>
#include <iomanip>
#include <string>
#include <typeinfo>
#include <cstdlib>
#include <ctime>
using namespace std;

Yesterday @ 8:42pm
Tags:
231 Views
no comments
 
using UnityEngine;
using System.Collections;

public class LevelCount : MonoBehaviour {
	
	public static int levelCount = 0;

	void Awake () {
		DontDestroyOnLoad (transform.gameObject);
	}
by Dustin   Yesterday @ 8:00pm
Tags:
228 Views
no comments
 
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>

#define BIT_SHIFTL(A, B) ((A) << (B))
#define BIT_SHIFTR(A, B) ((A) >> (B))
#define BIT_CHECK(A, B) (A & (1 << B))

typedef struct packet_descriptor_s {
    char*buffer_p;
Yesterday @ 6:49pm
Tags:
236 Views
no comments
 
Content-Type:application/json;charset=UTF-8

{
	"image": ["data:image/jpeg;base64,/9j/4AA...","data:image/jpeg;base64,/9j/4AAQ"],
	"description": "Semaforos averiados hace mas de una semana",
	"category": 2,
	"latitude": -26.8375284,
	"longitude": -65.2029306,
	"streetName": "San Martin",
	"streetNumber": 49,
by Pabl0x   Yesterday @ 5:39pm
Tags:
270 Views
no comments
 
#include <iostream>
#include <time.h>
using namespace std;
void nhap(int a[], int &n)
{
	for (int i = 0; i < n; i++)
	{
		cin >> a[i];
	}
}
Yesterday @ 5:37pm
Tags:
241 Views
no comments
 
Achieving a unique and interesting home is possible if you place some bespoke furniture in it.  Bespoke furniture or custom-made furniture can have a simple or complicated design, depending on your needs. You can also save a certain amount of money and find quality pieces if you're going to be wise in buying bespoke furniture. 

It's known in some parts of London that people look for the professional attention of Hamilton Marsden Custom Furniture when they need to alter their old furniture into beautiful and stylish pieces, but some people still choose to buy brand new pieces. Provided in the following are basic tips in finding the best bespoke furniture for your home.

Search for reviews

The internet is the best source of reviews on certain products and services to avoid being scammed. It would be a smart choice to gather data on a specific company first before buying any furniture. Ensure that the company is really trustworthy and provides high-quality pieces with an affordable price.  

Look at online furniture stores

259 Views
no comments
 
#include<iostream>
using namespace std;
int main()
{
   cout<<"hi! anh thành dep trai";
   return 0;
}
Yesterday @ 4:27pm
Tags:
269 Views
no comments
 
SexArt Premium Account 25 July 2016 
SexArt Password 25/07/2016 
SexArt Free Account 25.07.2016
SexArt Login Free 25-07-2016
SexArt Password Hack 25/07/2016
SexArt Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:06pm
Tags:
285 Views
no comments
 
Brazzers.com Premium Account 25 July 2016 
Brazzers.com Password 25/07/2016 
Brazzers.com Free Account 25.07.2016
Brazzers.com Login Free 25-07-2016
Brazzers.com Password Hack 25/07/2016
Brazzers.com Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:06pm
Tags:
286 Views
no comments
 
Holly Randall Premium Account 25 July 2016 
Holly Randall Password 25/07/2016 
Holly Randall Free Account 25.07.2016
Holly Randall Login Free 25-07-2016
Holly Randall Password Hack 25/07/2016
Holly Randall Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:05pm
Tags:
291 Views
no comments
 
AllofGfs.com Premium Account 25 July 2016 
AllofGfs.com Password 25/07/2016 
AllofGfs.com Free Account 25.07.2016
AllofGfs.com Login Free 25-07-2016
AllofGfs.com Password Hack 25/07/2016
AllofGfs.com Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:04pm
Tags:
286 Views
no comments
 
Boobiepass Premium Account 25 July 2016 
Boobiepass Password 25/07/2016 
Boobiepass Free Account 25.07.2016
Boobiepass Login Free 25-07-2016
Boobiepass Password Hack 25/07/2016
Boobiepass Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:03pm
Tags:
285 Views
no comments
 
1pass for all sites Premium Account 25 July 2016 
1pass for all sites Password 25/07/2016 
1pass for all sites Free Account 25.07.2016
1pass for all sites Login Free 25-07-2016
1pass for all sites Password Hack 25/07/2016
1pass for all sites Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:03pm
Tags:
287 Views
no comments
 
GF Revenge Premium Account 25 July 2016 
GF Revenge Password 25/07/2016 
GF Revenge Free Account 25.07.2016
GF Revenge Login Free 25-07-2016
GF Revenge Password Hack 25/07/2016
GF Revenge Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:03pm
Tags:
284 Views
no comments
 
TeenAnalyzed Premium Account 25 July 2016 
TeenAnalyzed Password 25/07/2016 
TeenAnalyzed Free Account 25.07.2016
TeenAnalyzed Login Free 25-07-2016
TeenAnalyzed Password Hack 25/07/2016
TeenAnalyzed Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:03pm
Tags:
289 Views
no comments
 
Giving A Handjob Premium Account 25 July 2016 
Giving A Handjob Password 25/07/2016 
Giving A Handjob Free Account 25.07.2016
Giving A Handjob Login Free 25-07-2016
Giving A Handjob Password Hack 25/07/2016
Giving A Handjob Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:03pm
Tags:
288 Views
no comments
 
PremiumGfs.com Premium Account 25 July 2016 
PremiumGfs.com Password 25/07/2016 
PremiumGfs.com Free Account 25.07.2016
PremiumGfs.com Login Free 25-07-2016
PremiumGfs.com Password Hack 25/07/2016
PremiumGfs.com Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:03pm
Tags:
283 Views
no comments
 
GF Revenge Premium Account 25 July 2016 
GF Revenge Password 25/07/2016 
GF Revenge Free Account 25.07.2016
GF Revenge Login Free 25-07-2016
GF Revenge Password Hack 25/07/2016
GF Revenge Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:03pm
Tags:
283 Views
no comments
 
Mofos Premium Account 25 July 2016 
Mofos Password 25/07/2016 
Mofos Free Account 25.07.2016
Mofos Login Free 25-07-2016
Mofos Password Hack 25/07/2016
Mofos Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:03pm
Tags:
287 Views
no comments
 
Digital Playground Premium Account 25 July 2016 
Digital Playground Password 25/07/2016 
Digital Playground Free Account 25.07.2016
Digital Playground Login Free 25-07-2016
Digital Playground Password Hack 25/07/2016
Digital Playground Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:02pm
Tags:
292 Views
no comments
 
ILoveLupe Premium Account 25 July 2016 
ILoveLupe Password 25/07/2016 
ILoveLupe Free Account 25.07.2016
ILoveLupe Login Free 25-07-2016
ILoveLupe Password Hack 25/07/2016
ILoveLupe Videos Download
***********************************************************
Get It Here :

=>   http://adf.ly/1cbQVJ
Yesterday @ 3:02pm
Tags:
290 Views
no comments
 
brought to you by:
West Wind Techologies