Skip to content

Instantly share code, notes, and snippets.

View GhostCatcg's full-sized avatar
🤕
Write a BUG

Louis GhostCatcg

🤕
Write a BUG
View GitHub Profile
@mehunk
mehunk / remove-node-modules.sh
Created June 4, 2019 16:33
遍历当前目录和子目录删除所有本地下载的 node_modules 依赖目录以节省磁盘空间。
#! /bin/bash
# 迭代遍历所有的文件夹,清理下载的 node_modules 文件夹
function read_dir(){
if [ -d $1"/node_modules" ]
then
rm -rf $1"/node_modules"
echo "删除依赖成功!"
fi
for file in `ls $1` # 注意此处这是两个反引号,表示运行系统命令
/*! HTML5 Shiv vpre3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
Uncompressed source: https://github.com/aFarkas/html5shiv */
(function(a,b){function h(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function i(){var a=l.elements;return typeof a=="string"?a.split(" "):a}function j(a){var b={},c=a.createElement,f=a.createDocumentFragment,g=f();a.createElement=function(a){if(!l.shivMethods)return c(a);var f;return b[a]?f=b[a].cloneNode():e.test(a)?f=(b[a]=c(a)).cloneNode():f=c(a),f.canHaveChildren&&!d.test(a)?g.appendChild(f):f},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/\w+/g,function(a){return c(a),g.createElement(a),'c("'+a+'")'})+");return n}")(l,g)}function k(a){var b;return a.documentShived?a:(l.shivCSS&&!f&&(b=!!h(a,"article,aside,details,figcaption,figure,footer,header,hgroup,