This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* simple JSONP support | |
* | |
* JSONP.get('https://api.github.com/gists/1431613', function (data) { console.log(data); }); | |
* JSONP.get('https://api.github.com/gists/1431613', {}, function (data) { console.log(data); }); | |
* | |
* gist: https://gist.github.com/gists/1431613 | |
*/ | |
var JSONP = (function (document) { | |
var requests = 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
ViewBag.Title = "SignalR Auction"; | |
} | |
<div class="row-fluid""> | |
<div class="page-header"> | |
<h1> | |
<strong data-bind="text: Title"></strong> | |
<small data-bind="text: Info"></small> | |
</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Radar.Common.WebServer.Api.Controllers | |
{ | |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Web.Http.Controllers; | |
using System.Web.Http.Filters; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
var config = GlobalConfiguration.Configuration; | |
// Replace the default JsonFormatter with our custom one | |
var index = config.Formatters.IndexOf(config.Formatters.JsonFormatter); | |
config.Formatters[index] = new JsonCamelCaseFormatter(); | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Back up C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\schemas\html\commonHTML5Types.xsd | |
2. Delete C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\schemas\html\commonHTML5Types.bin if it exists | |
3. Replace it with the file below. | |
4. Restart Visual Studio 2012. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Contact Metro Golf Mobile</title> | |
<link href="css/bootstrap.min.css" rel="stylesheet" /> | |
<link href="css/mgm-bootstrap.css" rel="stylesheet" /> | |
<link href="css/site.css" rel="stylesheet" /> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//using this pattern protects the global scope from vars defined inside | |
(function () { | |
//self executing anaonymous function | |
"use strict" | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//then promis handler to tack onto an $http call... | |
.then(function(){ | |
//success | |
}, | |
function(){ | |
//error | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="dropdown"> | |
<button id="pickButton" class="btn btn-success">Pick One...</button> | |
<button class="btn btn-success" data-toggle="dropdown"><span class="caret"></span></button> | |
<ul id="reasonDropdown" class="dropdown-menu"> | |
<li><a href="#" tabindex="-1">Reason</a></li> | |
<li><a href="#" tabindex="-1">Ordering a White Russian</a></li> | |
<li><a href="#" tabindex="-1">Complaint</a></li> | |
<li><a href="#" tabindex="-1">I am lost</a></li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--alternative to radio buttons--> | |
<div class="btn-group btn-group-sm btn" data-toggle="buttons"> | |
<label class="btn btn-success"> | |
<input type="radio" name="Favorite" value=" " />Dude</label> | |
<label class="btn btn-success"> | |
<input type="radio" name="Favorite" value=" " />Donny</label> | |
<label class="btn btn-success"> | |
<input type="radio" name="Favorite" value=" " />Maude</label> | |
</div> |
OlderNewer