This is an variation of BEM/SUIT/RSCSS methodologies.
You will not always need utility classes, but if you want to use then, do in this way.
Syntax: u-<utilityName>
.u-utilityName {}
# lazyload nvm | |
# all props goes to http://broken-by.me/lazy-load-nvm/ | |
# grabbed from reddit @ https://www.reddit.com/r/node/comments/4tg5jg/lazy_load_nvm_for_faster_shell_start/ | |
lazynvm() { | |
unset -f nvm node npm | |
export NVM_DIR=~/.nvm | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
} |
## | |
# Creates an alias called "git hist" that outputs a nicely formatted git log. | |
# Usage is just like "git log" | |
# Examples: | |
# git hist | |
# git hist -5 | |
# git hist <branch_name> | |
# git hist <tag_name> -10 | |
## | |
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short" |
version: '2' | |
services: | |
# Web server - For live reload and development | |
# This environment can be used to run npm and node | |
# commands as well | |
dev: | |
image: ambientum/node:6 | |
command: node build/dev-server.js | |
volumes: |
var slackTeam = "YOUR_SLACK_TEAM_NAME "; | |
var token = 'YOUR_ADMIN_TEST_TOKEN'; | |
// A test token will suffice. | |
// You can generate one at https://api.slack.com/docs/oauth-test-tokens | |
// Just make sure that the user issuing the test token is an admin. | |
var url = 'https://'+ slackTeam + '.slack.com/api/users.admin.invite'; | |
fetch(url, { | |
method: 'POST', | |
headers: {'Content-Type': 'application/x-www-form-urlencoded'}, |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Runtime data # |
Made to work along with gitfiti, you can draw with this tool and then export the data and use it with gitfiti.
##Usage
Left click
to increment the color, right click
to clear the cell, clear
button to clear everything! Dragging also works!ContributionsDraw.export()
into the console.ContributionsDraw.import([...])
NOTE: This is developed for and tested in Chrome, other browsers might not support yet some ES6 stuff, you might need to compile it to ES5.
# Delete branches that are already merged (but master/development/stage) | |
git branch --merged | egrep -v "(^\*|master|development|stage)" | xargs git branch -d | |
# Delete all local branches (but master/development/stage) | |
git branch | egrep -v "(^\*|master|development|stage)" | xargs git branch -D |
FROM mhart/alpine-node:10 AS builder | |
WORKDIR /app | |
COPY package.json . | |
RUN yarn install | |
COPY . . | |
RUN yarn build && yarn --production | |
FROM mhart/alpine-node:10 | |
WORKDIR /app | |
COPY --from=builder /app . |
Live Table: https://diafygi.github.io/webcrypto-examples/
I couldn't find anywhere that had clear examples of WebCryptoAPI, so I wrote examples and made a live table with them. Pull requests welcome!