Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
/** | |
* Fuse - Lightweight fuzzy-search | |
* | |
* Copyright (c) 2012 Kirollos Risk <kirollos@gmail.com>. | |
* All Rights Reserved. Apache Software License 2.0 | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
/* | |
Copyright (C) 2012-2013 Yusuke Suzuki <utatane.tea@gmail.com> | |
Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com> | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
⌘T | 前往文件 |
⌘⌃P | 前往项目 |
⌘R | 前往 method |
⌘⇧P | 命令提示 |
<div class="spinner"> | |
<div class="top"></div> | |
<div class="bottom"></div> | |
</div> | |
<h4>Loader #4</h4> | |
<style> |
"use strict"; | |
/** | |
* The <code>AliasRegistry</code> is provides access to the aliases used within | |
* the application. | |
* | |
* <p>An alias is simply an alternate logical name for a class, such that specifying | |
* this logical name in your source code, whether it be Javascript, HTML or CSS, will | |
* cause the class to be bundled and sent to the browser. It is therefore, at it's | |
* simplest, a mechanism for ensuring that all the code your app needs, and no more, |
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
// Copy to SVG | |
// This plugin copies the selected object to the clipboard, as SVG | |
function make_temp_folder(){ | |
var guid = [[NSProcessInfo processInfo] globallyUniqueString] | |
var path = tmp_path + guid | |
[[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:true attributes:nil error:nil] | |
export_path = path | |
} | |
function copy_text(txt){ |