Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| function slugify(text) | |
| { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| <img src="http://lorempixel.com/400/200/sports/" alt="" class="fader"> |
| @mixin vendor-prefix($property, $value) | |
| -webkit-#{$property}: $value | |
| -moz-#{$property}: $value | |
| -ms-#{$property}: #{$value} | |
| -o-#{$property}: #{$value} | |
| #{$property}: #{$value} | |
| @mixin value-vendor-prefix($property, $value) | |
| #{$property}: -webkit-#{$value} | |
| #{$property}: -moz-#{$value} |
| /*! | |
| * VERSION: 0.0.1 | |
| * DATE: 2013-12-03 | |
| * | |
| * @description: Plugin to manipulate transform properties of SVGJS objects, heavily based on the RaphaelPlugin | |
| * | |
| * @author: Rob Aldred, raldred@gmail.com | |
| */ | |
| (window._gsQueue || (window._gsQueue = [])).push( function() { |
| @echo off | |
| SET PhpStormPath=C:\Program Files (x86)\JetBrains\PhpStorm 8.0.2\bin\PhpStorm64.exe | |
| echo Adding file entries | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm" /t REG_SZ /v "" /d "Open in PhpStorm" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm" /t REG_EXPAND_SZ /v "Icon" /d "%PhpStormPath%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open in PhpStorm\command" /t REG_SZ /v "" /d "%PhpStormPath% \"%%1\"" /f | |
| echo Adding folder entries |
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amendThis will open your $EDITOR and let you change the message. Continue with your usual git push origin master.
| <!doctype html> | |
| <html> | |
| <head><title>Log-In</title></head> | |
| <script> | |
| if (window.opener) { | |
| window.opener.postMessage("popup-done", "*"); | |
| setTimeout(function() { window.close() }, 0); | |
| } | |
| </script> | |
| </head> |