Just for fun :)
Inspired by Monica Dinculescu.
| /** | |
| * Detects support for emoji character sets. | |
| * | |
| * Based on the Modernizr emoji detection. | |
| * https://github.com/Modernizr/Modernizr/blob/347ddb078116cee91b25b6e897e211b023f9dcb4/feature-detects/emoji.js | |
| * | |
| * @return {Boolean} true or false | |
| * @example | |
| * | |
| * hasEmojiSupport() |
| ## | |
| # Deploy all the stuff | |
| ## | |
| keyfile="path/to/id_rsa" | |
| username="user" | |
| hostname="example.com" | |
| remotePath="/my/remote/path" | |
| folders="to-deploy/*" |
Just for fun :)
Inspired by Monica Dinculescu.
| { | |
| "name": "my-app", | |
| "version": "0.0.0", | |
| "devDependencies": { | |
| "browserify": "^10.2.4", | |
| "watchify": "^3.2.3", | |
| "node-sass": "^3.2.0", | |
| "uglify": "^2.4.23", | |
| "mkdirp": "^0.5.1", | |
| "parallelshell": "^1.2.0", |
| #!/bin/sh | |
| # Run `chmod +x pre-commit` to make it executable then put it into .git/hooks/. | |
| ## | |
| # gitshots | |
| # | |
| # Requires imagesnap from https://github.com/alexwilliamsca/imagesnap (brew install imagesnap) | |
| # Create a .gitshots directory at the same level as the .git directory. | |
| # To assemble the video use http://www.dayofthenewdan.com/projects/tlassemble |
| --- | |
| myPartial: | |
| cssClass: myPartialCssClass | |
| --- | |
| {{> partial myPartial}} |
| function getAge(dateString) { | |
| var today = new Date(); | |
| var birthDate = new Date(dateString); | |
| var age = today.getFullYear() - birthDate.getFullYear(); | |
| var m = today.getMonth() - birthDate.getMonth(); | |
| if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) { | |
| age--; | |
| } | |
| return age; | |
| } |
| function selectContent(el) { | |
| var range = document.createRange(); | |
| var selection = window.getSelection(); | |
| range.selectNodeContents(el); | |
| selection.removeAllRanges(); | |
| selection.addRange(range); | |
| } | |
| var el = document.getElementById("elementId"); | |
| selectContent(el); |