2017年5月

多合一收款二维码原理及实现(源码)
制作QQ微信支付宝三合一收款码

  1. 列表项目

支付相关教程

http://blog.leungjz.top/2017/05/10/payment-alipay/
http://blog.lixf.cn/essay/2016/10/12/account-3-bank/
http://www.arccode.net/2016/05/02/微信支付SDK-两行代码解决支付/
http://blog.lixf.cn/essay/2016/10/20/account-4-contract/
http://blog.lixf.cn/
https://payjs.cn/
个人网站即时到账收款解决方案 / Personal website instant payment solution

开源

https://github.com/weloveidc/WHMCS-Payment-Gateway-alipay
https://github.com/tension/f2faliPay-For-WHMCS
https://github.com/jmdhappy/xxpay-master

var srcreg=/^.*\.(jpeg|jpg|gif|png|bmp)$/i;
var srcpic=data[i].gdtpwj.match(srcreg);//判断是否为图片后缀
console.log(srcpic);
if(srcpic){
$('#head-img').html('<img src="'+ data[i].gdtpwj +'" />');
}
else{
return false;
}  

                  

https://easy-mock.com/
Mock.js && 文档 && 示例
json-server

easy-mock例子

分页

请求方式为geturl?page=1

{
  code: function({
    _req
  }) {
    if (_req.query.page < 3) {
      return 0
    } else {
      return 41004
    }

  },
  msg: function({
    _req
  }) {
    if (_req.query.page < 3) {
      return "成功"
    } else {
      return "请求失败"
    }

  },
  data: function({
    _req
  }) {
    if (_req.query.page == 1) {
      return {
        total: 12, //总条数
        page: _req.query.page, //当前页码
        pagesize: 10,
        items: [{
            "id": "1",
            "pid": "31",
            "tit": "血压",
            "datetime": '2017-09-01 08:14'
          },
          {
            "id": "2",
            "pid": "32",
            "tit": "空腹血糖",
            "datetime": '2017-09-03 08:14'
          },
          {
            "id": "3",
            "pid": "33",
            "tit": "氧气治疗",
            "datetime": '2017-09-04 08:14'
          },
          {
            "id": "4",
            "pid": "34",
            "tit": "体重",
            "datetime": '2017-09-05 08:14'
          },
          {
            "id": "5",
            "pid": "31",
            "tit": "血压",
            "datetime": '2017-09-01 08:14'
          },
          {
            "id": "6",
            "pid": "32",
            "tit": "空腹血糖",
            "datetime": '2017-09-03 08:14'
          },
          {
            "id": "7",
            "pid": "33",
            "tit": "氧气治疗",
            "datetime": '2017-09-04 08:14'
          },
          {
            "id": "8",
            "pid": "34",
            "tit": "体重",
            "datetime": '2017-09-05 08:14'
          },
          {
            "id": "9",
            "pid": "31",
            "tit": "血压",
            "datetime": '2017-09-01 08:14'
          },
          {
            "id": "10",
            "pid": "32",
            "tit": "空腹血糖",
            "datetime": '2017-09-03 08:14'
          }
        ]
      }
    }

    if (_req.query.page == 2) {
      return {
        total: 12, //总条数
        page: _req.query.page, //当前页码
        pagesize: 10,
        items: [{
          "id": "11",
          "pid": "33",
          "tit": "空腹血糖",
          "datetime": '2017-09-03 08:14'
        }, {
          "id": "12",
          "pid": "34",
          "tit": "空腹血糖",
          "datetime": '2017-09-03 08:14'
        }]
      }
    }

    if (_req.query.page == 3) {
      return {}
    }

  }
}

登陆请求
请求方式为post: url?name=admin&password=123456 或{name:value,password:123456}

{
  code: function({
    _req
  }) {
    if (_req.query.name === 'admin' && _req.query.password === '123456') {
      return 20000
    } else {
      return 41004
    }

  },
  msg: function({
    _req
  }) {
    if (_req.query.name === 'admin' && _req.query.password === '123456') {
      return "登陆成功"
    } else {
      return "登陆失败"
    }

  },
  data: function({
    _req
  }) {
    if (_req.query.name === 'admin' && _req.query.password === '123456') {
      return {
        "roles": [
          "admin"
        ],
        "token": "admin",
        "avatar": "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",
        "name": "Super Admin"
      }
    }

    if (_req.query.name == 'editor') {
      return {
        "roles": [
          "editor"
        ],
        "token": "editor",
        "avatar": "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",
        "name": "editor"
      }
    }

    if (_req.query.page == 3) {
      return {}
    }

  }
}

使用 json-server 搭建 api mock 服务 (一)

http://www.sosoapi.com/
https://github.com/swagger-api
http://editor.swagger.io/

http://rapapi.org/org/index.do

注册mailgun以后,先绑定自己的域名。再去routes设定catch_all(), forward("你的邮箱地址"),这样所有发往你域名的邮件就都被转到你自己的邮箱中了。

mailgun取消了pop服务器,所以要找一个可以只设定smtp服务的邮箱来发邮件,这时候gmail就出场了。
先去mailgun的domains,点进你的域名,点Manage SMTP credentials,添加一个你喜欢的邮箱名字,这里密码可以设定的复杂一些,因为只会用到一次。
然后去gmail,设置中设定发邮件账户,把刚才的smtp账户填进去就行,注意smtp服务器是mailgun的smtp.mailgun.org,不是你的域名。

这样,你就可以完美用gmail收发自己域名的邮件了,在mailgun中也可以绑多个域名,然后gmail通通帮你搞定。

利用mailgun搭建私有域名邮箱
mailgun一个强大且适合开发者使用的(群)发邮件服务

这个的shell集成部分应该保留,挺方便的。
官方版本必须安装才可以正常集成到资源管理器,如果一旦安装成便携的就没法改了。
这个是我自己用的给便携版集成到资源管理器的批处理,可以解决便携集成的问题。

@echo off
cd /d "%~dp0"
set BcShell=%~dp0BCShellEx.dll
if exist %Windir%\SysWOW64\cmd.exe set BcShell=%~dp0BCShellEx64.dll
>nul 2>nul reg add "HKLM\SOFTWARE\Classes\*\ShellEx\ContextMenuHandlers\CirrusShellEx" /f /ve /t REG_SZ /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}"
>nul 2>nul reg add "HKLM\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /f /ve /t REG_SZ /d "CirrusShellEx"
>nul 2>nul reg add "HKLM\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32" /f /ve /t REG_SZ /d "%BcShell%"
>nul 2>nul reg add "HKLM\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
>nul 2>nul reg add "HKLM\SOFTWARE\Classes\Directory\ShellEx\ContextMenuHandlers\CirrusShellEx" /f /ve /t REG_SZ /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}"
>nul 2>nul reg add "HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\CirrusShellEx" /f /ve /t REG_SZ /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}"
>nul 2>nul reg add "HKLM\SOFTWARE\Classes\lnkfile\ShellEx\ContextMenuHandlers\CirrusShellEx" /f /ve /t REG_SZ /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}"
>nul 2>nul reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /f /v "{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /t REG_SZ /d "Beyond Compare 3 Shell Extension"
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3" /f /v SupportsMerge /t REG_DWORD /d 1
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v ArchiveMasks /t REG_SZ /d "*.7z;*.7z.001;*.apk;*.bcpkg;*.bcs;*.bcss;*.bz;*.bz2;*.cab;*.chm;*.ear;*.gz;*.jar;*.rar;*.tar;*.tar.bz2;*.tar.gz;*.tbz;*.tbz2;*.tgz;*.war;*.zip;"
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v RegistryViewer /t REG_SZ /d "注册表比较"
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Viewers /t REG_SZ /d "文本比较;MP3比较;版本比较;十六进制比较;数据比较;图片比较;注册表比较"
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v CompareUsing /t REG_DWORD /d 2
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Merge /t REG_DWORD /d 2
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v SelectCenter /t REG_DWORD /d 2
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Sync /t REG_DWORD /d 2
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Edit /t REG_DWORD /d 2
>nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Reg /t REG_DWORD /d 2

取消

@echo off
>nul 2>nul reg delete “HKLM\SOFTWARE\Classes\*\ShellEx\ContextMenuHandlers\CirrusShellEx” /f
>nul 2>nul reg delete “HKLM\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}” /f
>nul 2>nul reg delete “HKLM\SOFTWARE\Classes\Directory\ShellEx\ContextMenuHandlers\CirrusShellEx” /f
>nul 2>nul reg delete “HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\CirrusShellEx” /f
>nul 2>nul reg delete “HKLM\SOFTWARE\Classes\lnkfile\ShellEx\ContextMenuHandlers\CirrusShellEx” /f
>nul 2>nul reg delete “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved” /f
>nul 2>nul reg delete “HKCU\Software\Scooter Software” /f

86 & 64

https://yun.naodai.org/Software/Beyond/
https://down.52pojie.cn/Tools/Editors/
https://blog.csdn.net/lovexiaobaby/article/details/94722136
https://www.jianshu.com/p/596b4463eacd
https://www.cnblogs.com/lobtao/articles/11233892.html
无限延用

https://www.jianshu.com/p/21f95eb5c295
延期
Beyond Compare
https://www.serials.be/search?serial=Beyond+Compare

jetbrains http://www.hostloc.com/thread-459359-1-1.html

wget --no-check-certificate -O jetbrains.sh https://pa.ci/download/shell/jetbrains.sh && chmod +x jetbrains.sh && bash jetbrains.sh

http://idea.lanyus.com/
http://blog.csdn.net/voke_/article/details/76418116
在线免费生成IntelliJ IDEA 15.0(16.+)注册码 https://www.iteblog.com/idea/
http://www.jetbrains.com/webstorm/
webstorm 2017 激活破解

Jetbrains全系列激活服务器 http://idea.liyang.io/
WebStorm 2017激活码破解方法

在激活的时候选择 license server;
输入如下地址激活:
http://idea.imsxm.com

2017-06-15更新

之前都是使用2017.2.27的方法,版本是2017.1.1,还没提示过期,但是根据评论说这个链接已经失效了,评论也给出了个新地址:http://idea.iteblog.com/key.php 
感谢 @qq_35381272 友情提供

2017.2.27更新

选择“license server” 输入:http://idea.imsxm.com/

2016.2.2 版本的破解方式:

安装以后,打开软件会弹出一个对话框;选择“license server” 输入:http://114.215.133.70:41017

2016.2.3 版本的破解方式:

目前最新的就是2.3版本,在打开的License Activation窗口中选择“activation code”,在输入框输入下面的注册码

43B4A73YYJ-eyJsaWNlbnNlSWQiOiI0M0I0QTczWVlKIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTctMDItMjUifSx7ImNvZGUiOiJBQyIsInBhaWRVcFRvIjoiMjAxNy0wMi0yNSJ9LHsiY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAxNy0wMi0yNSJ9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDE3LTAyLTI1In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6IjIwMTctMDItMjUifSx7ImNvZGUiOiJDTCIsInBhaWRVcFRvIjoiMjAxNy0wMi0yNSJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAxNy0wMi0yNSJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDE3LTAyLTI1In0seyJjb2RlIjoiUEMiLCJwYWlkVXBUbyI6IjIwMTctMDItMjUifSx7ImNvZGUiOiJSTSIsInBhaWRVcFRvIjoiMjAxNy0wMi0yNSJ9LHsiY29kZSI6IldTIiwicGFpZFVwVG8iOiIyMDE3LTAyLTI1In0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMTctMDItMjUifSx7ImNvZGUiOiJEQy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YDVR0OBBYEFGEpG9oZGcfLMGNBkY7SgHiMGgTcMEgGA1UdIwRBMD+AFKOetkhnQhI2Qb1t4Lm0oFKLl/GzoRykGjAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBggkA0myxg7KDeeEwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQC9WZuYgQedSuOc5TOUSrRigMw4/+wuC5EtZBfvdl4HT/8vzMW/oUlIP4YCvA0XKyBaCJ2iX+ZCDKoPfiYXiaSiH+HxAPV6J79vvouxKrWg2XV6ShFtPLP+0gPdGq3x9R3+kJbmAm8w+FOdlWqAfJrLvpzMGNeDU14YGXiZ9bVzmIQbwrBA+c/F4tlK/DV07dsNExihqFoibnqDiVNTGombaU2dDup2gwKdL81ua8EIcGNExHe82kjF4zwfadHk3bQVvbfdAwxcDy4xBjs3L4raPLU3yenSzr/OEur1+jfOxnQSmEcMXKXgrAQ9U55gwjcOFKrgOxEdek/Sk1VfOjvS+nuM4eyEruFMfaZHzoQiuw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNbbCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==


备注:资料来源网上

WebStorm2017汉化方法

1、下载安装Webstorm 2017汉化包.
WebStorm 2017汉化包
2、将.\Webstorm 2017.1\lib目录下的resources_en.jar文件复制出来,并更名为resources_cn.jar。
3、双击打开resources_cn.jar(注意是打开而不是解压出来),将下载的汉化包zh_CN目录下的所有文件拖到刚才打开的resources_cn.jar文件内的messages目录中,并保存。
4、将resources_cn.jar文件复制回.\Webstorm\lib目录。或是直接讲汉化包里面的resources_cn.jar复制到.\Webstorm\lib目录即可.
5、汉化完毕,重新打开Webstorm就可以显示中文。

WebStorm 2017中文汉化教程:

软件默认为英文界面,我们打开安装目录下的“lib”文件夹,将汉化补丁“resources_cn.jar”复制入内即可,默认安装路径为C:\Program Files (x86)\JetBrains\WebStorm 2017.1\lib

如果打开后显示乱码,请先删除resources_cn.jar,然后打开phpstorm,在菜单上依次选择
File -> Settings -> Appearance&Behavior -> Appearance -> 选中Override default fonts by(not recommended)
Name: Microsoft YaHei (选择任意中文字体)
然后将resources_cn.jar 复制到 .\lib 目录,重新打开phpstorm 就能正常显示中文了

https://blog.csdn.net/hanchao5272/article/details/79087934
IDEA Terminal替换成Git Bash

Intellij IDEA神器居然还有这些小技巧
https://blog.csdn.net/linsongbin1/article/details/80211919

关于Webstorm webpack经常不能自动热更新问题

https://segmentfault.com/q/1010000007796140
webstrom settings的system settings默认勾选safewrite,勾选去掉就可以了

汉化

下载WebStorm 2017.1汉化补丁resources_cn.jar