Hello, I am your first Markdown document within StackEdit[^stackedit]. Don't delete me, I can be helpful. I can be recovered anyway in the Utils
tab of the Settings
dialog.
Documents
[5,10,15].sort() | |
迭代方法 every filter forEach map some | |
markdownpad++ | |
自定义滚轮 | |
ACE Editor |
yaml.save_load(obj, default_flow_style=False) |
function co(Gen) { | |
var gen = Gen | |
if (isGeneratorFunction(gen)) { | |
gen = gen() | |
} | |
return function(cb) { | |
next() | |
function next(err, arg) { | |
if (err) { | |
cb(err) |
Array.prototype.sort = function(compareFN) { | |
var compareFN = compareFN || function(a, b) { | |
return a - b | |
} | |
var arr = this | |
function getThirdIndex(from, to) { | |
// get suitable pivot |
;(function(window, undefined) { | |
function loadScript(url) { | |
count++ | |
var script = document.createElement('script') | |
path = '' | |
script.async = true | |
script.src = path + url + '.js' | |
document.getElementsByTagName("head")[0].appendChild(script) | |
script.onload = function(e) { | |
currentPath = getPath(script.src) |
!function() { | |
function Promise(resolver) { | |
var queue = [] | |
resolver(resolve, reject) | |
function next(i, val) { | |
setTimeout(function() { // dirty but out queue(resolve, reject) must wait then inqueue | |
while (queue.length) { | |
var arr = queue.shift() |
!function(f) { | |
if (window.define && define.amd) define(f) | |
else window.mvvm = f() | |
}(function() { | |
var start = '{{' | |
var end = '}}' | |
function mvvm(sel, opt) { | |
return new MVVM(sel, opt) |
<script src='./template.js'></script> | |
<script id='tmpl' type='x'> | |
<p>Hi {{=name}}</p> | |
<ul> | |
{{for (var i = -1; i++ != arr.length - 1;) { }} | |
<li>{{=arr[i]}}</li> | |
{{ } }} | |
</ul> | |
</script> | |
<div> |
<!-- default tab (easy to paste) --> | |
<!-- html5 is here to replace aria role, no role --> | |
<!-- to validator (http://validator.w3.org/nu/) --> | |
<!doctype html> | |
<!-- no html lang (avoid chrome translation) --> | |
<html> | |
<head> | |
<!-- default utf-8 --> | |
<meta charset="utf-8"> | |
<!-- title --> |