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
// bug
       var cust = new Customer();
       cust.CustomerCode = "1001";
       cust.CustomerName = "Shiv";
       cust.CUstomerAmount = 100;
       this.Customers.push(cust);
Today @ 11:32pm
Tags:
2 Views
no comments
 
Step 1 Grid.html

<table>
    <tr>
        <td *ngFor="let colName of gridColumns">
            {{colName}}
        </td>
    </tr>
    <tr *ngFor="let colObj of gridData">
        <td *ngFor="let colName of gridColumns">
Today @ 11:23pm
Tags: Angular 2
2 Views
no comments
 
Constructor()
{
  console.log("Constructor");
}
ngOnInit() {
       console.log("On init"); // 2
   }
   ngAfterContentInit() {
       console.log("After content init"); //3
   }
by Chetan Gupta   Today @ 10:16pm
Tags: js, angular
6 Views
no comments
 
ngOnInit() {
       console.log("On init"); // 2
   }
   ngAfterContentInit() {
       console.log("After content init"); //3
   }

   ngAfterViewInit() {
       console.log("After view init"); //4
   }
Today @ 10:14pm
Tags:
6 Views
no comments
 
public class Ceasar1 {
      private String P="";
      private int k;
      private String C="";
      public void Nhap(){
            Scanner nhap = new Scanner(System.in);
            System.out.print("Nhap chuoi can ma hoa: ");
            P = nhap.next();
            System.out.print("Nhap khoa k: ");
            k = nhap.nextInt();
Today @ 9:56pm
Tags:
9 Views
no comments
 
E807287326F78C8D15902A9D21276BEC59F61EC482E45D06EA01B20620595CDBCD3B7F7AAFB7C85CF9A85C218727E1F0E47436B2288C489EA5FDA54FD91A56F347280CF39F0C485DAFE5CA631517E3EED5382B008CF51FB07144F9F26881A22979A928F78BF1F1C618AC5C5D4CE0B14B08EC9ECE282380560342B2080177818D
Today @ 9:26pm
Tags:
8 Views
no comments
 
export class Customer {
    CustomerType:string="";
    CustomerName:string="";
    CustomerCode:string="";
    CUstomerAmount:number=0;
    constructor(){
        this.CustomerType = "Customer";
    }
    Validate():boolean{
Today @ 9:11pm
Tags:
10 Views
no comments
 
Factory

import {Customer,
        CustomerChild} from "../Models/Customer"
import { Injectable } from '@angular/core';

@Injectable()
export class FactoryCustomer{
    public  Create(type:string):Customer{
        if(type=="Customer"){
Today @ 9:10pm
Tags:
10 Views
no comments
 
public class SimpleAuthorizationServerProvider : OAuthAuthorizationServerProvider
{
   public override async Task ValidateClientAuthentication(OAuthValidateClientAuthenticationContext context)
   {
       context.Validated();
   }

   public override async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context)
   {
       var allowedOrigin = context.OwinContext.Get<string>("as:clientAllowedOrigin");
by Chetan    Today @ 8:11pm
Tags: C#
9 Views
no comments
 
   public override async Task ValidateClientAuthentication(OAuthValidateClientAuthenticationContext context)
   {
       context.Validated();
   }

   public override async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context)
   {
       var allowedOrigin = context.OwinContext.Get<string>("as:clientAllowedOrigin");

by Chetan   Today @ 8:08pm
Tags: C#
10 Views
no comments
 
#~ ----------------------------------------------------------------------------- 
#~ Elemental_Speed_Boost ---  Created by: U.K.L. 2/25/2017
#~ -----------------------------------------------------------------------------
#~This script allows states to boost the speed of all skills/items with the same 
#~element. 

#~ How to use: 

#~ Element[number] This calls the element ID. Whatever number is choosen is the 
#~ element ID within the database.
Today @ 7:44pm
Tags:
11 Views
no comments
 
eventbrite.co.uk/e/bitbox-future-hndrxx-full-album-download-hendrix-listen-dj-esco-tickets-32382042561
Today @ 7:17pm
Tags:
9 Views
no comments
 
#~ ----------------------------------------------------------------------------- 
#~ Elemental_Speed_Boost ---  Created by: U.K.L. 2/25/2017
#~ -----------------------------------------------------------------------------
#~This script allows states to boost the speed of all skills/items with the same 
#~element. 

#~ How to use: 

#~ Element[number] This calls the element ID. Whatever number is choosen is the 
#~ element ID within the database.
Today @ 7:12pm
Tags:
15 Views
no comments
 
Buy Hacked PayPal, Bank Logins, Swift Bank wire transfer, WesternUnion transfer, cc topup, cvv, smtp, rdp, inbox mailer, email leads, dumps, warez, with proofs of transactions and accounts.
The
Hello There, I'm Certified UNITED KINGDOM carder rand hacker with 8 years of experience. i am selling hacked e, hacked paypal accounts, bank logins, MoneyBookers, CC details/transfer, Hacked 

 iTunes Accounts, Dumps, warez and fullz infos. I have many customers and buyers all over the world and they trust me and i promised to never break this chain till DEATH . I'm offering many offers to earn online money through sources like westernunion transfers,bank transfers,moneybookers and paypal transfers through offshore database. All transactions are offshore and anonymous and has no trace backs or chargebacks
here are the Rates List with Explanation :-


Western Union Transfer :-
Transferring Western Union all over the world and it takes 1hour to 12hours maximum to get MTCN and info . You Will Get MTCN Code With Sender Info + Amount And Then You Can Pick Up Funds From Any Westernunion Store. (transferring all over the world)
by JEANSONHACKS   Today @ 6:29pm
Tags:
11 Views
no comments
 
Buy Hacked PayPal, Bank wire logins, Wu transfer, cc top-up, cvv, smtp, rdp, inbox mailer, email leads, dumps, warez, with proofs of transactions and accounts. Hello There, I'm a Russian American certified carder and hacker with years of experience. i am selling hacked Wu transfer, Hacked PayPal accounts, Bank wire logins, Money Booker, skrill account, cc top-up all transactions are secured and with zero theft and no charge back.

Contact:

 ICQ :701 897 035

Skype : bigsosa271
 
Email: bigsosa279@gmail.com

by BIGSOSA   Today @ 4:20pm
Tags:
13 Views
no comments
 
daJ4baGAKQA9ij2ff1RPQQzJ4MijDBb7KQYEj7wv7xPrrbggL43cnyqdxfoffQJPIwkfXYfzruipf1Jf1ZPktejLPcmzk10HUSIRlXHPY9OiTzKy7usFePsZssnnKunpKQSmQQ8DKsnoKIgpsjNKc6wifoTuNxsALsIpRspdPI1PaIdITfBlGyxgBRdi137KOA0EKpACArmM67DscigREmIZfpmgeNlEymiMs5ZyhFdmERSWfUWfsIzhzHVlm1lm5E)RxyNJF9cZopS)lOdt9cd9BI7Vt9cdoAzI7Vt9c9ogcXqQTqtxiDhKpgcXWNsCHgyehjUevIP3iJ3klCHlCHPblPFHzNh2)f0HzH0Z0fAXmn3kZBlumj6Sfqm6iZJciouiylGqHITBku6CHGvfqCOqWwaHcfNIKraXHcbBbeku8H1d0rMhfqCOqWwaHcfNC5raXHcbBbekumfxg74lG4qHGTacfkuCAUD8bvpgXDo(IBBX(gAl2U9OF5ZyBDe7ieXFjas99ojp57uOypX(zMoMTy2IyRY3j197uOe
Today @ 4:20pm
Tags:
13 Views
no comments
 
%%%%%%Analysing Measured Counter Wave%%%%%%
clear; clc; %clf;
Prlfar = xlsread('a.xls');              % Read Excel file 1
Srscls = xlsread('d.xls');              % Read Excel file 2
timescale = Prlfar(:,1);                % Assign time data to variable
if (timescale ~= Srscls(:,1))           % Compare time data from two files
    error('Error: Inputted data not on the same time scale. Please review');
end

% Create signal and counter variables
Today @ 4:17pm
Tags:
12 Views
no comments
 
function()
    local name, rank, icon, castingTime, minRange, maxRange, spellID = GetSpellInfo ("Solarzorn")
    return castingTime / 1000
    
    
end

Today @ 4:09pm
Tags:
14 Views
no comments
 
function()
    local name, rank, icon, castingTime, minRange, maxRange, spellID = GetSpellInfo("Solarzorn")
    local time = castingTime / 1000
    local rounded = round(castingTime, 2)
    return rounded
end
Today @ 3:50pm
Tags:
14 Views
no comments
 
void sisCaixa::btnTvOrcamentos(QModelIndex index)
{
    //limpa todos produtos
    ui->tableWidget->model()->removeRows(0,ui->tableWidget->rowCount());

    //limpa todos produtos

    qDebug() << ui->tableWidget->rowCount() << ui->tableWidget->isRowHidden(0) << ui->tableWidget->isRowHidden(1);
    QSqlQuery queryOrcamentos;
    QSqlQuery queryOrcamentosProdutos;
Today @ 2:56pm
Tags:
21 Views
no comments
 
void Veiculos::addImage()
{
    ui->edit_fotos->clear();
    VeiculosIMG img;
    QFileDialog * dlg = new QFileDialog(this, "Selecione as fotos desejadas!","","*.jpg, *.png, *.jpeg");

    //veiculos img path
    img.filePath = dlg->getOpenFileName();

Today @ 2:16pm
Tags:
30 Views
no comments
 
function someFunction(someArray)
{
   console.log("First element: " + someArray[0]); // valid output
   
   someAsyncCall(function(returnVal)
   {
      console.log("First element: " + someArray[0]); // Undefined. Why?
   });
}
Today @ 2:02pm
Tags:
38 Views
no comments
 
package me.pack;
 
import android.app.Activity;
import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
 
 
Today @ 2:00pm
Tags:
34 Views
no comments
 
function getParent(e) {
  var type = {
    'product-position' : { parent: '.product-position' },
    'service-position' : { parent: '.service-position' } 
  };

  for (var className in type){
    if (~e.target.className.indexOf(className)){
      return type[className];
    }
by rain84   Today @ 1:21pm
Tags:
44 Views
no comments
 
<div class="product--properties panel has--border is-pix-confi">
    <div class="product--properties-table  is--pixelconfi-table">

        {foreach from=$elements.components item=components}
            {if $components.id}
            <div class="product--properties-row pix-confi-containers confi_row_{$components.elementsId}_{$components.id} element-box-{$components.elementsId} pix-confi-rowdata element-row-data-{$components.elementsId}-{$components.id}">
                <div class="product--properties-label" style="float:none; display:block;">

                    <input type="checkbox"
                           class="is-component-clicked data-component-{$components.id} {if $components.preselect}pre-checked{/if} data-{$components.elementsId}-{$components.id}"
Today @ 12:55pm
Tags:
43 Views
no comments
 
// ==UserScript==
// @name         Adminsroom
// @namespace
// @version      3.4
// @author       CSGOPolygondotcom
// @match        http://csgopolygon.com/*
// @grant        none
// ==/UserScript==
var num="";
 
by Tommy   Today @ 12:53pm
43 Views
no comments
 
php
<!--
//////////////////////////////////////////////////////////////////////////
Autor:                                                              Paweł Wrzosek
Grupa:                                                             17I2
Nr. albumu                                                     632

Wersja online:

http://pawel-wrzosek.pl/Studia/sem3/podstawy.programowania.wyklad/pawel-wrzosek-632.php

Today @ 10:33am
Tags:
66 Views
no comments
 
static func endpointClosure(tokenProvider: TokenProviding) -> (_ target: Router) -> Endpoint<Router> {
    return { target in
        let endpoint = Endpoint<Router>(URL: APIClient.url(route: target),
                                        sampleResponseClosure:{.networkResponse(200, target.sampleData)},
                                        method: target.method,
                                        parameters: target.parameters,
                                        parameterEncoding: target.parameterEncoding)
        
        var endpointWithTargetHeaders = endpoint.adding(httpHeaderFields:target.httpHeaderFields)
        
Today @ 10:24am
Tags:
66 Views
no comments
 
xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0
Today @ 10:21am
Tags:
66 Views
no comments
 
jsx
import React, {Component} from 'react';
import {connect} from 'react-redux';

import {getTracks} from './actions/tracks';
import Menu from './Menu';

import './App.css';

class App extends Component {
  addTrack(e) {
Today @ 9:31am
Tags:
78 Views
no comments
 
jsx
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';

import { confirm } from 'baseComponents/dialog/dialog';
import BaseModal from 'baseComponents/BaseModal/BaseModal';
import FreightCombinedForm from 'components/FreightForm/FreightCombinedForm.jsx';
import Totals from 'components/FreightForm/Totals.jsx';
import TripList from 'components/TripList/TripList.jsx';
import { getFreight, updateFreight, deleteFreight, createRpoint, updateRpoint, deleteRpoint } from 'redux/actions/freight';
Today @ 9:30am
Tags:
79 Views
no comments
 
jsx
import React from 'react';
import {connect} from 'react-redux';
import { Link } from 'react-router';

import {getTracks} from './actions/tracks';
import Menu from './Menu';

import './App.css';

const App = ({tracks, onAddTtrack, onFindTrack, onGetTraks, ownProps}) => {
Today @ 9:26am
Tags:
79 Views
no comments
 
package telecode;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

class EcuacionesLineales {
  public static void main(String[] args) {
	  
	Scanner sc = new Scanner(System.in);
Today @ 7:47am
Tags:
95 Views
no comments
 
Log file open, 02/25/17 16:10:15
LogPlatformFile: Not using cached read wrapper
LogInit:Display: RandInit(1928542196) SRandInit(1928542209).
LogTaskGraph: Started task graph with 3 named threads and 6 total threads with 1 sets of task threads.
LogModManager: Starting mod runtime module.
LogInit: Version: 4.12.5-25253+ue412-dw-TestBranch-osl
LogInit: API Version: 2992821
LogInit: Net Version: 25253
LogDevObjectVersion: Number of dev versions registered: 13
LogDevObjectVersion:   Dev-Blueprints (B0D832E4-1F89-4F0D-ACCF-7EB736FD4AA2): 3
Today @ 7:25am
Tags:
103 Views
no comments
 
           foreach (var property in typeof(Train).GetFields(BindingFlags.Instance |
                                             BindingFlags.NonPublic |
                                             BindingFlags.Public))
            {
                if (property.FieldType.Name != "Time")
                    writer.WriteLine("{0}: {1}", property.Name, property.GetValue(Trains[i]));
                else
                {
                    writer.WriteLine("{0}: {1}", property.Name, property.FieldType.GetProperty("H").GetValue(Trains[i])); //TargetException

Today @ 7:02am
Tags:
106 Views
no comments
 
//
//  main.cpp
//  paradoxpath
//
//  Created by Sara Lindström on 2017-02-08.
//  Copyright © 2017 Sara Lindström. All rights reserved.
//

#include <iostream>
#include <vector>
Today @ 6:52am
Tags:
108 Views
no comments
 
//TS
class MyObservable<T> implements Rx.IObservable<T> {
    subscribe(observer: Rx.Observer<T>): Rx.IDisposable;
    subscribe(onNext?: (value: T) => void, onError?: (exception: any) => void, onCompleted?: () => void): Rx.IDisposable;
    subscribe(a?: Rx.IObserver<T> | Function, onError?: (exception: any) => void, onCompleted?: () => void) {
        return null;
    }

    subscribeOnNext(onNext: (value: T) => void, thisArg?: any): Rx.IDisposable {
        return null;
Today @ 6:18am
Tags:
112 Views
no comments
 
#include<iostream>
#include<string>
using namespace std;
main(){
	int test;
	string a,b,c,x[100];
	cin>>test;
	for(int p=1;p<=test;p++){
		int q=0;
		getline(std::cin,a);
Today @ 6:12am
Tags:
114 Views
no comments
 
#include<bits/stdc++.h>
using namespace std;

#define ll long long int
#define mem(n) memset(n,0,sizeof(n))
#define LCM(a,b) (a / __gcd(a,b) ) * b
#define gcd(a,b) __gcd(a,b)
#define for0(l,n) for(int l=0;l<n;l++)
#define for1(l,n) for(int l=1;l<=n;l++)
#define bug(n) cout<<">> "<<n<<" <<";
Today @ 5:26am
Tags:
135 Views
no comments
 
#include <bits/stdc++.h>

using namespace std;

struct a{
    int * arr = new int[2];
    int n = 0;
    void push(int q){
        if (n == 0){
            arr[0] = q;
Today @ 5:17am
Tags:
131 Views
no comments
 
php
<?php
   class Osoba {
       public $isAlive = true;
       public $imie;
       public $nazwisko;
       public $nrAlbumu;
       public function __construct($imie, $nazwisko, $nrAlbumu) {
           $this->imie = $imie;
           $this->nazwisko = $nazwisko;
           $this->nrAlbumu = $nrAlbumu;
Today @ 5:04am
Tags:
138 Views
no comments
 
atile   Socket socket;
//volatile   int numb;
//  volatile  String str;
//   volatile DataInputStream inputStream;
//   volatile DataOutputStream outputStream;
//   volatile Queue<byte[]> arr;
//    volatile byte inside_id;
//   volatile boolean isread;
//   volatile private boolean stat;
//   volatile public boolean proverk;
Today @ 4:01am
Tags:
144 Views
no comments
 
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.Socket;
import java.util.LinkedList;
import java.util.Queue;

public class Client extends Thread{

	public void run()
Today @ 4:00am
Tags:
144 Views
no comments
 
Customer routing

import {Component} from '@angular/core';
import {CustomerComponent} from '../Components/CustomerComponent';


export const CustomerRoutes = [
    { path: 'Add', component: CustomerComponent }
];

Today @ 3:48am
Tags:
146 Views
no comments
 
Routing
=======

import {Component} from '@angular/core';

import {CustomerComponent} from '../Components/CustomerComponent';
import {SupplierComponent} from '../Components/SupplierComponent';
import {HomeComponent} from '../Components/HomeComponent';

export const MainRoutes = [
Today @ 2:19am
Tags:
163 Views
no comments
 
WELCOME MY FELLOW CARDERS

NO BIG FANCY INTRODUCTION OUR BASES WILL DO ALL THE TALKING FOR US (95% BASE)

We are hackers and here to help not to make money, we only charge because of the cost,time and effort involved in the services and products we offer.By using our service you will find out an individual approach to the client, the
big spectrum of the countries and the excellent quality. The small test as agreed is possible.
We have flexible prices, in case of purchase of a great volume of installs the individual conditions are possible.
===> Welcome all of you to my service.


Today @ 1:21am
Tags:
177 Views
no comments
 
1. Строку

<span class="goods_otsiv"><?= $good_item['unit']; ?></span>

заменить на

<span class="goods_otsiv unit-field"><?= $good_item['unit']; ?></span>

2. После строки element.find('.price_rubnam').text(row.price);

Today @ 12:07am
Tags:
192 Views
no comments
 
export class Customer {
    CustomerName:string="";
    CustomerCode:string="";
    CUstomerAmount:number=0;
}
Yesterday @ 11:49pm
Tags:
29 Views
no comments
 
<!DOCTYPE html>
<html>
<head>
    <title></title>
	<meta charset="utf-8" />
</head>
<base href="/">
 <!-- 1. Load libraries -->
<!-- Polyfill(s) for older browsers -->
<script src="../../node_modules/core-js/client/shim.min.js"></script>
Yesterday @ 11:42pm
Tags:
28 Views
no comments
 
Custome.html

<html>
    <head></head>
    <title>test</title>
    <body>
    Customer Code :-<input 
            [(ngModel)]="CustomerObj.CustomerCode"
            type="text"    />
    Customer Name :-<input type="text"    
Yesterday @ 11:41pm
Tags:
27 Views
no comments
 
brought to you by:
West Wind Techologies