var reg = /^([\u4e00-\u9fa5]+)(·[\u4e00-\u9fa5]+)?$/;
var filter=/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/;
#The API
##To convert to a number from a hex string:
parseInt(string, radix)
string: Required. The string to be parsed radix: Optional. A number (from 2 to 36) that represents the numeral system to be used ##To convert from a number to a hex string:
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
.zebra-fushi-slider { | |
position: relative; | |
height: 11.09333333em; | |
background: url(//img.alicdn.com/tps/i3/TB1dTp0IpXXXXbcXFXXt1Aj_XXX-1125-780.jpg) top left no-repeat; | |
background-size: 100%; | |
} | |
.zebra-fushi-slider .viewport { | |
width: 16em; | |
overflow: hidden; |
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
require('chai').should(); | |
var expect = require('chai').expect; | |
var assert = require('chai').assert; | |
function xybkPushSame(dt){ | |
var xybk = []; | |
var obj = {}; | |
for (let i=0; i<dt.length; i++){ | |
obj.title = dt[i].title; | |
obj.id = dt[i].id; |
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
<%- blocks.localScripts %> | |
<% block('localScripts', '<script src="https://maps.googleapis.com/maps/api/js"></script>') %> | |
// you can add as many as you like | |
res.locals.scripts = [ | |
'//maps.googleapis.com/maps/api/js', | |
]; | |
return res.view(); | |
<!--SCRIPTS--> | |
<!--SCRIPTS END--> |
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
<h2>CSS only custom Checkbox and Radio UI <small><a href="http://bootstrapsale.com">http://bootstrapsale.com</a></small></h2> | |
<div class="box"> | |
<div class="checkbox"> | |
<label> | |
<input type="checkbox" /> | |
<i class="input-helper"></i> | |
<span>Maecenas faucibus mollis interdum.</span> | |
</label> | |
</div> |
- Navigate to about:config. (Click accept on any warnings telling you to be careful with advanced features)
- Search for layout.css.devPixelsPerPx and change its value to 1.0 and your issue should be fixed.
http://stackoverflow.com/questions/23099849/stop-firefox-dpi-scaling-when-windows-setting-is-at-125
cross-env NODE_ENV=production my-command
##With Git version 1.7.9 and later
git config --global credential.helper cache //15minutes
git config --global credential.helper "cache --timeout=3600"
git config --global credential.helper osxkeychain //mac os
git config --global credential.helper wincred //windows
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
function easyTab(tab, content){ | |
return this instanceof easyTab ? this.init(tab, content) : new easyTab(tab, content); | |
}; | |
easyTab.prototype.init = function(tab, content) { | |
this.el = { | |
tab: tab, | |
content: content | |
}; | |
document.querySelector(this.el.tab).addEventListener('click', this, false); |