Skip to content

Instantly share code, notes, and snippets.

View stepancar's full-sized avatar
🎯

Stepan Mikhailiuk stepancar

🎯
View GitHub Profile
@stepancar
stepancar / Hubs.tt
Last active August 29, 2015 14:09 — forked from robfe/Hubs.tt
<#@ template debug="true" hostspecific="true" language="C#" #>
<#@ output extension=".d.ts" #>
<# /* Update this line to match your version of SignalR */ #>
<#@ assembly name="$(SolutionDir)\packages\Microsoft.AspNet.SignalR.Core.1.0.0-rc1\lib\net40\Microsoft.AspNet.SignalR.Core.dll" #>
<# /* Load the current project's DLL to make sure the DefaultHubManager can find things */ #>
<#@ assembly name="$(TargetPath)" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="System.Web" #>
<#@ assembly name="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #>
<#@ assembly name="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #>
ыапвапывапвап
#include "stdafx.h"
#include <stdio.h>
# include <stdlib.h>
#include <locale.h>
void sortq(void* *a1, long n, int(*cmp)(void*, void*))
{
void* p;
void* t;
int i, j;
if (n < 2) /*обязательно */
#include "stdafx.h"
#define _CRT_SECURE_NO_WARNINGS
#pragma once
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <string.h>
#include <malloc.h>
var webpack = require("webpack");
module.exports = {
entry: {
vendorJquery: ['jquery'], // names of modules (name of module, which u use for import statement in ts/js)
vendorReact: ['react', 'react-dom'], // names of modules (name of module, which u use for import statement in ts/js)
app: './scripts/app/app.tsx',
models: "./scripts/models/country.ts",
components: ["./scripts/components/countryTable.tsx", "./scripts/components/countryTableRow.tsx"],
},
// Type definitions for react-dropzone
// Project: https://github.com/paramaggarwal/react-dropzone
// Definitions by: Mathieu Larouche Dube <https://github.com/matdube>
// Definitions: https://github.com/Vooban/DefinitelyTyped
///<reference path='../react/react.d.ts' />
declare module ReactDropzone {
import React = __React;
interface DropzoneProps {
import * as React from 'react';
import * as Dropzone from 'react-dropzone';
class DropzoneDemo extends React.Component<{}, {}> {
onDrop(files) {
console.log('Received files: ', files);
}
render() {
return (
interface SyncAction {
type: any;
}
interface AsyncAction {
(dispatch: (action: SyncAction | AsyncAction)=> any, getState:()=> AppState): void
}
export function connect<P,S,T extends constructorof<ElementClass<P,S>>>(mapStateToProps?: MapStateToProps<P>,
mapDispatchToProps?: MapDispatchToPropsFunction|MapDispatchToPropsObject,
mergeProps?: MergeProps,
options?: Options): ClassDecorator<P,S,T>;
import { Component } from 'react';
import { Store, Dispatch, ActionCreator } from 'redux';
import { connect as reduxConnect} from 'react-redux';
export class ElementClass<P, S> extends Component<P, S> { }
export interface ClassDecorator<P, S, T> {
<P, S, T extends constructorof<ElementClass<P, S>>>(component: T): T
}
interface MapStateToProps<P> {
(state: any, ownProps?: any): P;
}