Skip to content

Instantly share code, notes, and snippets.

View classLfz's full-sized avatar
🎯
Focusing

lfz classLfz

🎯
Focusing
  • guangzhou china
View GitHub Profile
<html>
<head>
<title>region selected box</title>
<style>
body {
margin: 0;
padding: 0;
}
#selectContainer {
position: relative;
@classLfz
classLfz / useful nodejs functions
Last active October 9, 2018 05:16
useful nodejs functions
/**
* create folder sync
* @param {String} rootPath root path.
* @param {String} folderPath folder base on root path.
* @returns {Boolean} created
*/
function mkdirsSync (rootPath, folderPath) {
let dirPath = path.join(rootPath, folderPath)
if (fs.existsSync(dirPath)) {
return true
<html>
<head>
<title>clip image test</title>
<style>
body {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}