Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
(/[A-z\u00C0-\u00ff]+/g) |
module.exports = { | |
'HOSTPATH': 'http://your.host.here', | |
'PORT': 80, | |
'EXPRESS_SESSION_SECRET': '123456', | |
'TWITTER_CONSUMER_KEY': 'your-consumer-key-here', | |
'TWITTER_CONSUMER_SECRET': 'your-secret-here', | |
'GOOGLE_APP_ID': 'your-app-id-here', | |
'GOOGLE_CONSUMER_SECRET': 'your-consumer-secret-here', | |
}; |
/* ******************************************************************************************* | |
* THE UPDATED VERSION IS AVAILABLE AT | |
* https://github.com/LeCoupa/awesome-cheatsheets | |
* ******************************************************************************************* */ | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
# remove .DS_Store file from GitHub that MAC OS X creates | |
# find and remove .DS_Store | |
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch | |
# create .gitignore file, if needed | |
touch .gitignore | |
echo .DS_Store > .gitignore | |
# push changes to GitHub |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
function weightedMean(arrValues, arrWeights) { | |
var result = arrValues.map(function (value, i) { | |
var weight = arrWeights[i]; | |
var sum = value * weight; | |
return [sum, weight]; | |
}).reduce(function (p, c) { |
There is no way to store an empty object/array/null value. | |
There are also no actual arrays. Array values get stored as objects with integer keys. | |
(If all keys are integers, it will be returned as an array.) | |
Basically, it's one giant tree of hashes with string keys. | |
Simply write a value to any location, and the intermediary locations will automatically come into existance. | |
── Classes ── | |
DataSnapshot : Container for a subtree of data at a particular location. |
var express = require('express'); | |
var app = express(); | |
// response header for sever-sent events | |
const SSE_RESPONSE_HEADER = { | |
'Connection': 'keep-alive', | |
'Content-Type': 'text/event-stream', | |
'Cache-Control': 'no-cache', | |
'X-Accel-Buffering': 'no' | |
}; |
The only way I've succeeded so far is to employ SSH.
Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config
file in a .ssh
directory. The config
file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh
directory by default. You can navigate to it by running cd ~/.ssh
within your terminal, open the config
file with any editor, and it should look something like this:
Host * AddKeysToAgent yes
> UseKeyChain yes