Skip to content

Instantly share code, notes, and snippets.

View plasmaboyer's full-sized avatar

Plasmaboyer plasmaboyer

View GitHub Profile
@plasmaboyer
plasmaboyer / Hubs.tt
Last active December 17, 2015 11:39 — forked from robfe/Hubs.tt
Support IList<> as a javascript array
<#@ 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" #>
@joeriks
joeriks / amplify.d.ts
Created October 14, 2012 05:34
typescript-amplify amplifyjs
declare module amplify {
export function subscribe(topic: string, callback: Function): void;
export function subscribe(topic: string, conext: Object, callback: Function): void;
export function subscribe(topic: string, callback: Function, priority: number): void;
export function subscribe(topic: string, context: Object, callback: Function, priority: number): void;
export function unsubscribe(topic: string, callback: Function): void;
export function publish(topic: string, ...args: any[]): void;
@hpbuniat
hpbuniat / popunder.html
Created June 12, 2011 19:44
Test for a popunder working in ff 3-14, chrome 10-21, ie6-9
<!DOCTYPE html>
<html>
<head>
<meta content="Hans-Peter Buniat" name="author">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Form-Submit Popunder</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<form id="testSubmit" action="http://www.google.com">