In this guide we will cover two main cases:
- Ember specific library
- vendor library
The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.
git log --shortstat --format=format:"%cd" --date=short --no-merges | sed -e '/^$/d;N;s/\n//;s/files changed, //;s/insertions(+), //;s/ deletions(-)//' | |
just delta info: | |
git log --shortstat --format=format:"" --no-merges --all | sed '/^$/d;s/[a-z()+,-]//g' | |
git log --format=format:"%cd" --date=short --no-merges --all | wc -l | |
num commits total | |
git log --format=format:"%cd" --date=short --no-merges --all | uniq -c | |
num commits for each day |
var fs = require('fs') | |
, net = require('net') | |
, http = require('http') | |
, port = process.env.PORT; | |
var app = function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}; |
#!/bin/bash | |
## TODO: | |
# Figure out how to get nginx file-aio module working (incompatible?) | |
## Get and install tools and dependencies | |
sudo apt-get -y install build-essential zlib1g-dev libpcre3 libpcre3-dev libbz2-dev | |
## Get installed OpenSSL version | |
# Use `whereis openssl` to check if installed first |
# install ffmpeg via homebrew - visit brew.sh if you don't have Homebrew | |
brew install ffmpeg | |
# cd to directory of FLAC files | |
cd /path/to/flacs/ | |
# run the magic one-liner | |
for i in *.flac; do ffmpeg -i "$i" -acodec alac "`basename "$i" .flac`.m4a"; done; |
/* and now with 100% more branding */ | |
body { border: 10px solid #82FA32; min-height: 720px; } | |
.container { width: inherit; } | |
.header { display: none; } | |
.gh-header { padding: 30px 0px 30px 0px; background-color: black; color: white; } | |
.gh-header-actions { float: inherit; text-align: center; } | |
.btn-primary { border-color: #000; background-image: linear-gradient(#333, #000); } | |
.gh-header-actions .btn { float: inherit; } | |
.gh-header-title { padding-top: 20px; text-align: center; font-size: 4.2em; margin-right: 0px; font-weight: 100; } | |
.pagehead { display: none; } |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
/* -------------------------------------------------------------------------- */ | |
// All Bootstrap 4 Sass Mixins [Cheat sheet] | |
// Updated to Bootstrap v4.5.x | |
// @author https://anschaef.de | |
// @see https://github.com/twbs/bootstrap/tree/master/scss/mixins | |
/* -------------------------------------------------------------------------- */ | |
/* | |
// ########################################################################## */ | |
// New cheat sheet for Bootstrap 5: |