Skip to content

Instantly share code, notes, and snippets.

View lnickers2004's full-sized avatar

Larry Nickerson lnickers2004

View GitHub Profile
@dcrosta
dcrosta / gist:1142407
Created August 12, 2011 16:27
launchd plist for mongodb
We couldn’t find that file to show.
@rdingwall
rdingwall / Global.asax.cs
Created March 10, 2012 19:39
camelCase + indented JSON formatter for ASP.NET Web API
...
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();
...
@MikeJansen
MikeJansen / DelegatingActionDescriptor.cs
Created November 5, 2012 13:35
Custom IHttpActionSelector
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;
@markrendle
markrendle / abc.txt
Last active February 4, 2017 05:11
Updated version of Mads Kristensen's commonHTML5Types.xsd with added tags for form parts (e.g. ng-pattern) and AngularJS 1.1.4. Actual hard work and clevers by Mads: http://madskristensen.net/post/AngularJS-Intellisense-in-Visual-Studio-2012.aspx
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.
@lnickers2004
lnickers2004 / DelegatingActionDescriptor.cs
Created December 10, 2013 00:23 — forked from MikeJansen/DelegatingActionDescriptor.cs
CORS and JSONP for Web Api The Old complicated WebApi 1.0 way of doing CORS and JSONP. Have a look at the awesome support for it in WebApi2.0 NOTE: webapi 2 is better so you don't have to jump through as many hoops as this. Hats off to the original developer that figured this out.
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;
anonymous
anonymous / index.html
Created April 24, 2015 02:36
$scope.$apply example // source http://jsbin.com/beniha/1
<!DOCTYPE html>
<html ng-app="app">
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset=utf-8 />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.2/angular.min.js"></script>
<meta name="description" content="$scope.$apply example" />
</script>
<title></title>
</head>
@fmnxl
fmnxl / Ball.js
Last active August 9, 2017 22:50
import React from 'react';
import {
Sphere
} from 'react-vr';
import * as CANNON from 'cannon/build/cannon.js'
export default class Particle extends React.Component {
constructor(props) {
this.body = new CANNON.Body({
mass: 1,