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
(function() { | |
if(navigator.appVersion.indexOf('MSIE 8') > 0) { | |
var _slice = Array.prototype.slice; | |
Array.prototype.slice = function() { | |
if(this instanceof Array) { | |
return _slice.apply(this, arguments); | |
} else { | |
var result = []; | |
var start = (arguments.length >= 1) ? arguments[0] : 0; | |
var end = (arguments.length >= 2) ? arguments[1] : this.length; |
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 numonly = /\d{1,12}/; | |
// personalid.verify | |
// ------------------- | |
// Takes a personal number and checks it. | |
// true - personal number is well formed and complete | |
// false - personal number is not well formed | |
// null - personal number is well formed but not complete | |
var verify = function(num) { |
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 Nustache.Core; | |
using System; | |
using System.IO; | |
using System.Text; | |
public static class TemplateExtensions | |
{ | |
public static Template Load(this Template template, string html) | |
{ | |
using (var reader = new StringReader(html)) |
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 http = require('http'), | |
httpSignature = require('http-signature'), | |
crypto = require('crypto'); | |
var data = JSON.stringify({ foo: 'bar' }); | |
var md5 = crypto.createHash('md5'); | |
md5.update(data); | |
var options = { | |
host: 'localhost', |
OlderNewer