Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji | 
|---|---|
| Initial commit | 🎉 :tada: | 
| Version tag | 🔖 :bookmark: | 
| New feature | ✨ :sparkles: | 
| Bugfix | 🐛 :bug: | 
| const crypto = require('crypto') | |
| const axios = require('axios') | |
| const url = 'https://mp.weixin.qq.com/wxagame/wxagame_settlement' | |
| const sessionId = 'your session id' | |
| function getActionData(key, content, iv) { | |
| const clearEncoding = 'utf8' | |
| const cipherEncoding = 'base64' | |
| let cipherChunks = [] | 
| node_modules | |
| dist/ | |
| yarn.lock | |
| wwwroot | 
| // Read https://en.wikipedia.org/wiki/Otsu%27s_method (added this since JS examples in wikipedia didn't work) | |
| function otsu(histData /* Array of 256 greyscale values */, total /* Total number of pixels */) { | |
| let sum = 0; | |
| for (let t=0 ; t<256 ; t++) sum += t * histData[t]; | |
| let sumB = 0; | |
| let wB = 0; | |
| let wF = 0; | 
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji | 
|---|---|
| Initial commit | 🎉 :tada: | 
| Version tag | 🔖 :bookmark: | 
| New feature | ✨ :sparkles: | 
| Bugfix | 🐛 :bug: | 
| set -e | |
| title='千尋影視' # dmg 文件 mount 了之后在文件系统中显示的名称 | |
| background_picture_name='mac-dmg-bg.png' # dmg 文件在 mount 了之后界面中显示的背景图片路径 | |
| application_name='千尋影視.app' # 应用程序的名称 | |
| # Developer ID 证书的名称(名字的一部分即可,但是需要能在 Keychain Access 中唯一定位到该证书) | |
| developer_id='Developer ID Application: Shanghai Truecolor Multimedia' | |
| # dmg 窗口相关的一些设置,需要根据实际情况做变更 | |
| window_left=200 # 窗口位置的 x 坐标 | 
| /*global chrome*/ | |
| var EventEmitter = require('./events.js').EventEmitter; | |
| var util = require('./util.js'); | |
| function SerialPort(port, options) { | |
| var self = this; | |
| var id; | |
| var bytesToRead = options.buffersize || 1; | 
| # Example MySQL config file for large systems. | |
| # | |
| # This is for a large system with memory = 512M where the system runs mainly | |
| # MySQL. | |
| # | |
| # MySQL programs look for option files in a set of | |
| # locations which depend on the deployment platform. | |
| # You can copy this option file to one of those | |
| # locations. For information about these locations, see: | |
| # http://dev.mysql.com/doc/mysql/en/option-files.html | 
| /** | |
| * depth: 1 - monochrome | |
| * 4 - 4-bit grayscale | |
| * 8 - 8-bit grayscale | |
| * 16 - 16-bit colour | |
| * 32 - 32-bit colour | |
| **/ | |
| function drawArray(arr, depth) { | |
| var offset, height, data, image; | 
| var EventEmitter = require('events').EventEmitter | |
| , proto = require('./proto') | |
| , utils = require('./utils') | |
| , path = require('path') | |
| , basename = path.basename | |
| , fs = require('fs'); | |
| //应用补丁,封装了一些方法 | |
| require('./patch'); |