If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| str = 'This hyperlink should be stripped out: http://www.bhalash.com. word www.google.ie, more word https://www.twitter.com!' | |
| regex = /(\b(http(s?)|www).*?(?=(\s|[[:punct:]]\s|.(?=$))))/ | |
| p = str.scan(regex).each { |url| | |
| link = url[0] | |
| link_text = url[0] | |
| link_href = url[0] | |
| if !link_href.match(/^http(s?):\/\//) |
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| // Validated against http://www.modularscale.com/ | |
| // http://www.modularscale.com/?1&&1.5&web&text | |
| $mod-scale--size: 1rem !default; | |
| $mod-scale--ratio: 1.5 !default; | |
| @function modular-scale($increment, $base-size, $ratio) { |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| @mixin selectorer($selector: null) { | |
| &#{if($selector, ' ' + unquote($selector), $selector)} { | |
| background: center/100% auto no-repeat url('foo'); | |
| } | |
| } |
| /** | |
| * Time and Date Checker | |
| * ----------------------------------------------------------------------------- | |
| * Does: | |
| * | |
| * 1. Append either time (hour:minute) or date (day/month/year) selects to | |
| * target element. | |
| * 2. Selects are prefixed with a given string, and suffixed with the input | |
| * type foo_year, foo_month, etc. | |
| * 3. A given time and date can be provided by a Unix timestamp, and the inputs |
| " Set mode for backspace use. | |
| set nocompatible | |
| " Enable syntax highlighting | |
| syntax on | |
| " Change backspace for OSX | |
| set backspace=indent,eol,start | |
| " Enable line numbers. |
| /** | |
| * Asymmetrical Floated Elements | |
| * ----------------------------------------------------------------------------- | |
| * float-of() provides regularly-sized floated columns side by side. This allows | |
| * for an asymmetrical structure. SIZES ARE INCLUSIVE OF MARGIN, EXCEPT IN | |
| * PERCENTAGE COLUMNS. | |
| * | |
| * Seriously -- do NOT use this mixin for regularly-spaced columns. Use | |
| * float-of() if you need regular columns, because the right margin will look | |
| * all fucked. This is *only* for asymmetric columns. |
| ;(function($, window, document, undefined) { | |
| 'use strict'; | |
| $.fn.addLightbox = $.fn.addLightbox || function(args) { | |
| var defaults = { | |
| classes: { | |
| hasLightbox: 'has-lightbox', | |
| lightbox: 'rmwb-lightbox' | |
| }, | |
| imgData: { |
| <?php | |
| /* | |
| * Get, Set and Check Twerking time | |
| * ----------------------------------------------------------------------------- | |
| * @param string $content Post content. | |
| * @return string $content Post content. | |
| */ | |
| function for_miley_cyrus($content) { |
| /** | |
| * Internet Explorer | |
| * ----------------------------------------------------------------------------- | |
| * I am happy to exclude Internet Explorer 11 because it is decently good. My | |
| * IE problems inecrease exponentially as I work backwards in time. | |
| * | |
| * @link http://keithclark.co.uk/articles/moving-ie-specific-css-into-media-blocks/ | |
| * @link http://keithclark.co.uk/articles/moving-ie-specific-css-into-media-blocks/media-tests/ | |
| * @link http://www.limecanvas.com/css-hacks-targeting-ie-10/ | |
| * @link http://www.paulirish.com/2009/browser-specific-css-hacks/ |