Instantly share code, notes, and snippets.

View export-html-table-to-excel.md

Export HTML table to Excel in AngularJS

myApp.factory('Excel',function($window){
		var uri='data:application/vnd.ms-excel;base64,',
			template='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>',
			base64=function(s){return $window.btoa(unescape(encodeURIComponent(s)));},
			format=function(s,c){return s.replace(/{(\w+)}/g,function(m,p){return c[p];})};
		return {
View .npmrc
registry="http://172.30.41.176:7001"
disturl="https://npm.taobao.org/dist" # node-gyp 编译依赖的 node 源码镜像
chromedriver_cdnurl="http://npm.taobao.org/mirrors/chromedriver" # chromedriver 二进制包镜像
phantomjs_cdnurl="http://npm.taobao.org/mirrors/phantomjs" # phantomjs 二进制包镜像
sass_binary_site="http://npm.taobao.org/mirrors/node-sass" # node-sass 二进制包镜像
selenuim_cdnurl="http://npm.taobao.org/mirrors/selenium" # selenium 二进制包镜像
View cloudSettings
{"lastUpload":"2018-09-06T01:44:46.906Z","extensionVersion":"v3.1.2"}
View multiple_ssh_setting.md

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"