##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
extension CollectionType { | |
/// Return a lazy SequenceType containing pairs *(i, x)*, | |
/// where *i*s are the sequential indices and *x*s are the elements of `base`. | |
func enumerateWithIndex() -> AnySequence<(Index, Generator.Element)> { | |
var index = startIndex | |
return AnySequence { | |
return anyGenerator { | |
guard index != self.endIndex else { return nil } | |
return (index, self[index++]) | |
} |
##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
if (window.devicePixelRatio && devicePixelRatio >= 2) { | |
var testElem = document.createElement('div'); | |
testElem.style.border = '.5px solid transparent'; | |
document.body.appendChild(testElem); | |
if (testElem.offsetHeight == 1) | |
{ | |
document.querySelector('html').classList.add('hairlines'); | |
} | |
document.body.removeChild(testElem); | |
} |
/** | |
* A Javascript object to encode and/or decode html characters using HTML or Numeric entities that handles double or partial encoding | |
* Author: R Reid | |
* source: http://www.strictly-software.com/htmlencode | |
* Licences: GPL, The MIT License (MIT) | |
* Copyright: (c) 2011 Robert Reid - Strictly-Software.com | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABI |