Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
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| /** | |
| * @author | |
| * David Rivera (jherax) | |
| * https://github.com/jherax | |
| */ | |
| /* eslint-disable no-bitwise */ | |
| /** @private */ | |
| const toString = Object.prototype.toString; |
| import React from 'react'; | |
| let lastScrollY = 0; | |
| let ticking = false; | |
| class App extends React.Component { | |
| componentDidMount() { | |
| window.addEventListener('scroll', this.handleScroll, true); | |
| } |
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
| <!doctype html> | |
| <html ng-app="Demo"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title> | |
| Using URL Interpolation With $http In AngularJS | |
| </title> | |
| </head> |
| Method 1 | |
| git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' -w" | |
| Method 2 | |
| git config --global core.editor "subl -n -w" | |
| Method 3 | |
| $ echo 'alias subl="/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"' >> ~/.bashrc |
| !function(root, _, undefined) { | |
| var Disposable = root.Disposable = function() { | |
| this.disposed = false; | |
| }; | |
| Disposable.prototype = { | |
| _dispose: function() { | |
| if (!this.disposed) { | |
| this.dispose(); | |
| this.disposed = true; |
| angular | |
| .module('uuidApp', ['lvl.services']) | |
| .controller('uuidCtl', ['$scope', 'uuid', function($scope, uuid){ | |
| $scope.generateUuid = function() { | |
| $scope.new = uuid.new(); | |
| $scope.nInfo = new Date(); | |
| }; | |
| $scope.showEmpty = function() { | |
| $scope.empty = uuid.empty(); |