⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
#list{width:500px;height:auto;background-color: #eee;} | |
.ph{width:500px;height:600px;background-color: #cde;margin:2em 0;} | |
</style> | |
</head> | |
<body> | |
<div style="height:100px;background:#cde;">placeholder1</div> |
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
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div data-ID="3" data-blogId="4" data-comment-id="4" data-cat_id="5"></div> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script> |
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 iter = 100 * 100; | |
bm('instanceof',iter,function() { | |
f instanceof Function | |
}) | |
bm('typeof',iter,function() { | |
typeof f === 'function' | |
}) | |
*/ |
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
/* | |
* 频率控制 返回函数连续调用时,action 执行频率限定为 次 / delay | |
* @param delay {number} 延迟时间,单位毫秒 | |
* @param action {function} 请求关联函数,实际应用需要调用的函数 | |
* @param tail? {bool} 是否在尾部用定时器补齐调用 | |
* @return {function} 返回客户调用函数 | |
*/ | |
var throttle = function(delay,action,tail,debounce) { | |
var now = Date.now, last_call = 0, last_exec = 0, timer = null, curr, diff, | |
ctx, args, exec = function() { |
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
// ==UserScript== | |
// @name Disguise Surfing | |
// @namespace anonymous | |
// @description 伪装上网模式 | |
// @version 0.1 | |
// @include * | |
// ==/UserScript== | |
// make array | |
var $A = function(obj) { return [].slice.call(obj) } |
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
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<script> | |
document.body.appendChild( document.createElement('script') ) | |
</script> |
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
/** | |
* ❤ dabblet.com CSS3 playground! | |
*/ | |
html{ | |
font-family: Monaco; | |
transform: scale(2,.5) rotate(30deg); | |
background-color: silver; | |
background-size: 58px 58px; | |
background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px; |
marginLeft = - ( $container.width() / 2 - parseInt($g.css('right')) - $g.innerWidth() ) = -(450 + 200 - 156)
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 BinPacker = require('./binpacker') | |
var blocks = [] | |
blocks.push( | |
// 宽的 | |
{w: 300,h: 390}, | |
{w: 300,h: 390}, | |
// 窄的 | |
{w: 150,h: 195}, |