Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>colorToGrayscale</title> | |
| </head> | |
| <body> |
| /** | |
| * Modify the parts you need to get it working. | |
| */ | |
| var should = require('should'); | |
| var request = require('../node_modules/request'); | |
| var io = require('socket.io-client'); | |
| var serverUrl = 'http://localhost'; |
| /** | |
| * @description 带重试器的jQuery ajax封装方法 | |
| * | |
| * @param {object} opts $.ajax options | |
| */ | |
| function JQ_AJAX(opts) { | |
| var tryCount = opts.tryCount || 0; // 当前重试次数,默认0次 | |
| var retryLimit = opts.retryLimit || -1; // 当前最大重试次数,默认-1,请求失败不重试 |
| // 参考文献 | |
| // https://redis.io/topics/notifications | |
| // https://medium.com/@micah1powell/using-redis-keyspace-notifications-for-a-reminder-service-with-node-c05047befec3 | |
| const Redis = require('ioredis'); | |
| //#region Redis测试 | |
| // subscriber | |
| let RedisSubTester = new Redis({ | |
| port: 6379, // Redis port |
| var path = require('path'); | |
| module.exports = (function () { | |
| return path.dirname(require.main.filename || process.mainModule.filename); | |
| })(); | |
| // Example of usage: | |
| var root = require('root'); // In root will be absolute path to your application |
| import BigNumber from 'bignumber.js'; | |
| /** | |
| * 格式化数字, 保留小数位精度 | |
| * @param {number} originNumber 数字 | |
| * @param {number} precision 小数位精度 | |
| */ | |
| const formatNumber = (originNumber = 0, precision = 2) => { | |
| if (Number.isNaN(Number(originNumber))) { | |
| throw new Error('数字格式错误'); |
An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.
Everything is broken up by tag, but within each the selectors aren't particularly ordered.
I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A
A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:
-webkit-appearance:none;
| .ProseMirror[data-placeholder]::before { | |
| color: global.$placeholder-colour; | |
| position: absolute; | |
| content: attr(data-placeholder); | |
| pointer-events: none; | |
| } |