This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
def yes_or_no(question): | |
reply = str(raw_input(question+' (y/n): ')).lower().strip() | |
if reply[0] == 'y': | |
return True | |
if reply[0] == 'n': | |
return False | |
else: | |
return yes_or_no("Uhhhh... please enter ") |
{ | |
"scripts": { | |
"dev": "webpack-dev-server --hot --open", | |
"dist": "rm -rf public && NODE_ENV=production webpack --config webpack-dist.config.js --display-optimization-bailout", | |
"jbdist": "tnpm i && NODE_ENV=production webpack --config webpack-dist.config.js" | |
}, | |
"dependencies": { | |
"babel-runtime": "^6.23.0", | |
"badjs-report": "^1.3.2", | |
"classnames": "^2.2.5", |
var toast=function(msg){ | |
$("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h3>"+msg+"</h3></div>") | |
.css({ display: "block", | |
opacity: 0.90, | |
position: "fixed", | |
padding: "7px", | |
"text-align": "center", | |
width: "270px", | |
left: ($(window).width() - 284)/2, | |
top: $(window).height()/2 }) |
Axure RP 7.0注册码 | |
用户名:axureuser | |
序列号:8wFfIX7a8hHq6yAy6T8zCz5R0NBKeVxo9IKu+kgKh79FL6IyPD6lK7G6+tqEV4LG |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
CSS 1中定义的选择器 | |
选择器 类型 说明 | |
E 类型选择器 选择指定类型的元素 | |
E#myid ID选择器 选择匹配E的元素,且匹配元素的id属性值等于myid。注意,E选择符可以省略,表示选择指定id属性 | |
等于myid的任意类型的元素 | |
E.warning 类选择器 选择匹配E的元素,且匹配元素的class属性值等于warning。注意,E选择符可以省略,表示选择指定 | |
class属性值等于warning的任意类型的任意多个元素 |