- Local Storage x2
- Geolocation
- Media Recorder
- Sensors
- Push
- Offline
- PWA install
- Bluetooth + Voice Recognition
- Shape Detection + Voice Synthesis
This file contains 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
/* | |
* Binary Ajax 0.1.7 | |
* Copyright (c) 2008 Jacob Seidelin, cupboy@gmail.com, http://blog.nihilogic.dk/ | |
* Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] | |
*/ | |
var BinaryFile = function(strData, iDataOffset, iDataLength) { | |
var data = strData; | |
var dataOffset = iDataOffset || 0; |
This file contains 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
// code that allows attaching ShareJS to HTML <select> fields | |
sharejs.Doc.prototype.attachSelect = function (innerElem, ctx) { | |
var i; | |
var rawValue = innerElem.value; | |
var elem = { | |
get value () { | |
return rawValue; | |
}, |
This file contains 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
<!-- see http://notherdev.blogspot.com/2014/10/sharejs-073-working-example.html --> | |
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<textarea id="pad"></textarea> |
This file contains 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
# based on https://github.com/share/ShareJS/blob/master/examples/ws.coffee | |
# see http://notherdev.blogspot.com/2014/10/sharejs-073-working-example.html | |
{Duplex} = require 'stream' | |
http = require 'http'; | |
connect = require 'connect' | |
morgan = require 'morgan' | |
serveStatic = require 'serve-static' | |
argv = require('optimist').argv | |
livedb = require 'livedb' |
This file contains 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
// Extension method for ordering an IEnumerable<T> with custom ranking. | |
// http://notherdev.blogspot.com/2013/02/extension-for-ordering-enumerable-with-ranking.html | |
public class Ranked<T> | |
{ | |
public Ranked(T item, int rank) | |
{ | |
Item = item; | |
Rank = rank; | |
} |
This file contains 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
// ASP.NET MVC: Replacing the default ActionInvoker to do something useful with non-ActionResult return types | |
// See more: http://notherdev.blogspot.com/2012/09/non-actionresult-return-type-aspnet-mvc.html | |
public class MyControllerFactory : DefaultControllerFactory | |
{ | |
public override IController CreateController(RequestContext context, string controllerName) | |
{ | |
var controller = base.CreateController(context, controllerName); | |
return ReplaceActionInvoker(controller); | |
} |
This file contains 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
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] | |
public class LinkWithinAreaAttribute : Attribute | |
{ | |
public string AreaName { get; private set; } | |
public string OrSwitchTo { get; set; } | |
public LinkWithinAreaAttribute(string areaName) | |
{ | |
AreaName = areaName; | |
} |
This file contains 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
// see http://notherdev.blogspot.com/2012/02/on-loquacious-interfaces-again.html | |
public class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// the Building instance created "manually" | |
var classicBuilding = new Building() | |
{ | |
Address = "1 Example Street", |
This file contains 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
internal class NodeBuilder | |
{ | |
private readonly XmlDocument _doc; | |
private readonly XmlNode _node; | |
public NodeBuilder(XmlDocument doc, XmlNode node) | |
{ | |
_doc = doc; | |
_node = node; | |
} |
NewerOlder