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
php
<div class="social-icons">
    <?php
    //social share buttons, only if they're enabled
    if($redux_demo['enable_fbshare'] != '2') { ?>
        <a href="javascript:void(0)" data-href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink();?>" class='facebook has-tooltip' data-title="<?php _e('Share on Facebook', 'TQS');?>">facebook</a>
    <?php }
    if($redux_demo['enable_twshare'] != '2') { ?>
        <a href="javascript:void(0)" data-href="https://twitter.com/intent/tweet?source=tweetbutton&amp;text=<?php the_title();?>&url=<?php the_permalink();?>" class='twitter has-tooltip' data-title="<?php _e('Share on Twitter', 'TQS');?>">twitter</a>
    <?php }
    if($redux_demo['enable_gplusshare'] != '2') { ?>
Today @ 2:44pm
Tags:
2 Views
no comments
 
#include <stdio.h>
#include "../utils.h"

int
main(int argc, char* argv[])
{
    int s;
    uint16_t porta;
    struct in_addr server_ip;
    struct sockaddr_in saddr;
Today @ 10:54am
Tags:
10 Views
no comments
 
#include <stdio.h>
#include "../utils.h"

int
main(int argc, char* argv[])
{
    uint16_t porta;
    struct sockaddr_in saddr, caddr;
    socklen_t addrlen;
    int s, res, childpid;
Today @ 10:42am
Tags:
11 Views
no comments
 
#include <stdio.h>
#include "../utils.h"
#include <netdb.h>

int
main(int argc, char* argv[])
{
    int s;
    uint16_t porta;
    struct in_addr server_ip;
Today @ 10:40am
Tags:
11 Views
no comments
 
sql
USE [InsideEd]
GO

INSERT INTO [dbo].[PlayerStats_Hitters_byYear]
           ([Covering]
           ,[HitterID]
           ,[Total_AB]
           ,[OverallGrade]
           ,[OverallScore]
           ,[OverallEffectivenessGrade]
by noli   Today @ 9:40am
Tags:
14 Views
no comments
 
sql
USE [InsideEd]
GO

INSERT INTO [dbo].[PlayerStats_Pitchers_byYear]
           ([Covering]
           ,[PlayerID]
           ,[TotalOutings]
           ,[TotalPitches]
           ,[OverallGrade]
           ,[OverallScore]
by noli   Today @ 9:38am
Tags:
14 Views
no comments
 
--Description: lấy những sản phẩm hết hàng
--Note:
CREATE proc [dbo].[usp_K_Report_EmptyProduct]
@beginAt	int,
@Length	int
as
begin
----
	 SELECT *
	  FROM ( 
by xukien   Today @ 3:23am
Tags:
17 Views
no comments
 
--Description: sap xep cac san pham theo tang (giam) so luong trong kho
--Note: 
ALTER proc [dbo].[usp_K_Report_SortProduct_by_Stock]
@categoryID int,
@sortType int, -- [1:ascending] [-1:descending]
@beginAt	int,
@Length	int
as
begin
----
by xukien   Today @ 3:12am
Tags:
16 Views
no comments
 
Illuminated teeth works quickly as you apply it. After the removal you will get extremely beneficial results. I was just went into sock that how much money.I had wasted with dentist but did not get results but it first application gave me awesome change. Carbamide peroxide provides natural cover to teeth and keeps them protected to get stained by the chemicals and keep them white. Illuminated teeth also provide you protection from the decolouration of the teeth. All these effects are beneficial for your teeth. An illuminated tooth is best companion of your teeth.

http://illuminatedteethadvice.com/
by samvic   Today @ 2:47am
15 Views
no comments
 
void Graph::Backtracking(string Startknoten, string Zielknoten) {
    int Start = SearchName(Startknoten);
    int Ziel = SearchName(Zielknoten);
    bool gefunden = false;
    queue<int> q;
    vector<int> Weg;
    Weg.push_back(Start);
    while (!gefunden) {
        if (arcs[Start][Ziel] != -1)//Direkte Verbindung vorhanden?
            gefunden = true;
Today @ 2:40am
Tags:
17 Views
no comments
 
<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Demo</title>
    <style>
    	a.test {
    		font-weight: bold;
    	}
    </style>
by Jose David Parra   Today @ 1:43am
Tags: JQuery
14 Views
no comments
 
                                                                                                                                                                                                                                                               
Delivered-To: sadikko@gmail.com
Received: by 10.58.237.71 with SMTP id va7csp273216vec;
        Wed, 23 Jul 2014 00:45:54 -0700 (PDT)
X-Received: by 10.52.116.194 with SMTP id jy2mr40559192vdb.39.1406101548421;
        Wed, 23 Jul 2014 00:45:48 -0700 (PDT)
Authentication-Results: mx.google.com;
       spf=softfail (google.com: domain of transitioning yonetim+bncBD63J2FRXUKRBJGFXWPAKGQECHQBJAA@studiooffices.com does not designate 209.85.217.200 as permitted sender) smtp.mail=yonetim+bncBD63J2FRXUKRBJGFXWPAKGQECHQBJAA@studiooffices.com
Received-SPF: softfail (google.com: domain of transitioning yonetim+bncBD63J2FRXUKRBJGFXWPAKGQECHQBJAA@studiooffices.com does not designate 209.85.217.200 as permitted sender) client-ip=209.85.217.200;
Received: by 10.220.218.139 with POP3 id hq11mf918085vcb.30;
Today @ 1:33am
Tags:
17 Views
no comments
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GRAS_example
{
    enum EQUALSIGN {NONE, EQAUL, LESS, LESSEQUAL, GREATER, GREATEREQUAL};
    enum TRIGGERTYPE { NUMERIC, STRING }
    
Today @ 12:22am
Tags:
17 Views
no comments
 
CREARTE proc [dbo].[usp_K_Report_ProductBestseller_by_Date]
@fromDate varchar(50),
@toDate varchar(50),
@number int
as
begin
--
	declare @d1 datetime=CONVERT(datetime,@fromDate,105)
	declare @d2 datetime=CONVERT(datetime,@toDate,105)
--
by xukien   Yesterday @ 11:23pm
Tags:
18 Views
no comments
 
#include<iostream>
#include<string>
using namespace std;

class truck;
class bus{
private:
	int speed,wona,raod;
	string feri;
public:
Yesterday @ 9:15pm
Tags:
16 Views
no comments
 
#include<iostream>
using namespace std;

class book{
   public:
   virtual void print()=0;
   virtual double cost()=0;
   
};

Yesterday @ 1:29pm
Tags:
21 Views
no comments
 
php
<h1>Lista Imagenes Profesores</h1>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'imagen-p-grid',
	'itemsCssClass' => 'table table-bordered table-hover table-striped centrar',
	'htmlOptions'=>array('style'=>'text-align: center'),
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		//'id',
		//'id_profesor',
Yesterday @ 1:27pm
Tags:
16 Views
no comments
 
php
<?php

class ImagenP extends CActiveRecord{

	public $picture;
	public $nombreProfesor;      /*CAMPO PERSONALIZADO CGRidView */
	public $apellidoProfesor;    /*CAMPO PERSONALIZADO CGRidView */


	public function tableName(){
Yesterday @ 1:17pm
Tags:
16 Views
no comments
 
//Call function
.fontPXtoEM(21);// Output: 1.3174218881742188em

//create function for Pixcel to EM
.fontPXtoEM(@PXValue)
{
    @pt: (3 / 4) * @PXValue;
    @emVal: (@pt / 11.955168);
    font-size: ~"@{emVal}em";
}
by Ehsan Munna   Yesterday @ 12:50pm
15 Views
no comments
 
Traceback (most recent call last):
  File "/Users/rowend/Projects/buckets/venv/lib/python2.7/site-packages/django/core/management/base.py", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/rowend/Projects/buckets/venv/lib/python2.7/site-packages/django/core/management/base.py", line 254, in execute
    self.validate()
  File "/Users/rowend/Projects/buckets/venv/lib/python2.7/site-packages/django/core/management/base.py", line 280, in validate
    num_errors = get_validation_errors(s, app)
  File "/Users/rowend/Projects/buckets/venv/lib/python2.7/site-packages/django/core/management/validation.py", line 35, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/Users/rowend/Projects/buckets/venv/lib/python2.7/site-packages/django/db/models/loading.py", line 166, in get_app_errors
by error   Yesterday @ 11:07am
Tags:
18 Views
no comments
 
 class sample{
int N;
const int A;
public:
sample();
sample (int );
~sample();
void change(int );
int getN() {return N;}
int getA() {return A;}
Yesterday @ 9:55am
Tags:
16 Views
no comments
 
//... Removed error handling for clarity
var response = client.PostAsJsonAsync<ValidationServiceRequest>(VALIDATE_URI, request).Result;
if (response.IsSuccessStatusCode)
{
	if (response.Headers.Contains("Set-Cookie"))
	{
		var cookieVal = response.Headers.GetValues("Set-Cookie").FirstOrDefault();

		if (!string.IsNullOrEmpty(cookieVal) 
			&& (string.IsNullOrWhiteSpace(SessionHelper.VIPCookieToken) || cookieVal != SessionHelper.VIPCookieToken))
Yesterday @ 9:10am
Tags:
18 Views
no comments
 
var client = new HttpClient();

if (!string.IsNullOrEmpty(SessionHelper.CachedBusinessUnit.VIPHost))
	client.BaseAddress = new Uri(SessionHelper.CachedBusinessUnit.VIPHost);

else
	client.BaseAddress = new Uri(Settings.Default.VIPValidateServiceBaseAddress);

client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
client.DefaultRequestHeaders.Add("x-user", customerAcct.BusinessUnit.VIPUserName);
Yesterday @ 9:07am
Tags:
18 Views
no comments
 
<?php require_once('Connections/Connection.php'); ?>
<?php require_once('includes/functions.php'); ?>
<?php
if (!isset($_SESSION)) {
  session_start();
}
$MM_authorizedUsers = "1";
$MM_donotCheckaccess = "false";

// *** Restrict Access To Page: Grant or deny access to this page
by ddd   Yesterday @ 8:55am
Tags: dd
17 Views
no comments
 
#include <iostream>
#include <string>
#include<fstream>
#include<algorithm>
using namespace std;
class Young{
protected:
	string fullname;
	int age;
Yesterday @ 7:48am
Tags:
18 Views
no comments
 
brought to you by:
West Wind Techologies