- We've got some components
A
,B
andC
which provide different slots.const A = { template: `<div><slot name="a">Default A Content</slot></div>` }
const B = {
// ==UserScript== | |
// @name v2ex 绝对时间 | |
// @namespace http://phpz.org/ | |
// @version 0.1.5 | |
// @description 显示 v2ex 中的绝对时间 | |
// @author Seven Yu | |
// @match *.v2ex.com/* | |
// @run-at document-end | |
// @grant none | |
// @updateURL https://gist.github.com/dofy/38c8d67405a5597f4e7e/raw |
Simple and reorganized version of http://www.w3.org/2014/07/mobile-web-app-state/
Community
- System Applications Working Group
http://www.w3.org/2012/05/sysapps-wg-charter.html
/* | |
检测 两组任意(不限个数 不限花色) 的扑克牌, 混到一起后能否构成任意长度(大于1 小于15)的顺子. | |
A可表示1或14,小王可表示1--5,大王可表示1--14 | |
说明: | |
1 我微博里说 小王代表 1到9有误, 我这边实际遇到的场景是 小王代表 1--5 (当然 这个无所谓) | |
2 牌是可以有重复的 : 例如 可以 4个小王 9个大王 等等, 可以理解为是从无数副扑克牌当中随意抽取出两组 | |
3 组成的顺子 可以不是5张 , 其实严格说 就是 等差为1的等差数列 | |
4 能且只能组成一组顺子, 组成顺子后, 牌没有剩余 |
@echo off | |
SET CMDER_ROOT=%~dp0 | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /ve /d "Cmder Here" /f | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Icon" /d "\"%CMDER_ROOT%cmder.exe\"" /f | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder" /v "Extended" /f | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\Cmder\command" /ve /d "\"%CMDER_ROOT%cmder.exe\" \"%%V\"" /f | |
pause |
function quicksort(input) { | |
if(input.length === 0) return input; | |
var head = input[0], | |
tail = input.slice(1); | |
var less = tail.filter(function(i) { | |
return i < head ? true : false; | |
}); |
admin account info" filetype:log | |
!Host=*.* intext:enc_UserPassword=* ext:pcf | |
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd | |
"AutoCreate=TRUE password=*" | |
"http://*:*@www” domainname | |
"index of/" "ws_ftp.ini" "parent directory" | |
"liveice configuration file" ext:cfg -site:sourceforge.net | |
"parent directory" +proftpdpasswd | |
Duclassified" -site:duware.com "DUware All Rights reserved" | |
duclassmate" -site:duware.com |
function StartTagToken(){ | |
} | |
function EndTagToken(){ | |
} | |
function Attribute(){ | |
} | |
function randomColor(){ | |
return "rgb("+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+")"; | |
} | |
function showBoxes(window) { | |
var rects = []; | |
function getRects(node){ | |
var range = window.document.createRange(); | |
range.setStartBefore(node); | |
range.setEndAfter(node); |
// ==UserScript== | |
// @author iParanoid | |
// @name V2EX_User_Script | |
// @namespace https://zone-huangxc.rhcloud.com | |
// @description Position fixed the navigation , Scroll to top when double click navigation bar or Page Footer | |
// @include * | |
// @updateURL https://gist.github.com/paranoidxc/5065236/raw/10bc3ee7501b86f2e579657ef64348e642cc2a70/V2EX.user.js | |
// ==/UserScript== | |
function iparanoid_wrapper() { |