This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/[if IE 8] <html class="no-js lt-ie9" lang="en"> | |
<!--[if gt IE 8]><!--> | |
%html.no-js{lang: "en"} | |
/<![endif] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin linksignify-superscript { | |
font-size: 0.83em; | |
line-height: 0.5em; | |
vertical-align: baseline; | |
position: relative; | |
top: -0.4em; | |
left: 0.1em; | |
} | |
// Append language abbreviation (EN, RU, PL) in superscript to a link if the language of the page is different. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guard 'sass', :input => '_sass', :output => 'assets', :extension => ".scss.liquid", :style => :compressed, :all_on_start => true | |
guard 'sprockets', :destination => 'assets', :root_file => '_foundation/js/foundation/foundation_all.js' | |
guard 'haml', :default_ext => 'liquid', :run_at_start => true do | |
watch %r{.+(\.liquid\.haml)} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddEncoding gzip .gz | |
RewriteEngine On | |
RewriteCond %{HTTP:Accept-Encoding} gzip | |
RewriteCond %{REQUEST_FILENAME}.gz -f | |
RewriteRule ^(.*)$ $1.gz [QSA,L] | |
<Files *.css.gz> | |
ForceType text/css |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var codeblocks = document.getElementsByClassName('highlight'); | |
for (var i = 0; i < codeblocks.length; ++i) { | |
var item = codeblocks[i]; | |
// console.log("Old height:" + " " + item.offsetHeight); | |
item.style.height = item.offsetHeight + 1 + 'px'; | |
// console.log("New height:" + " " + item.offsetHeight); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Get list of files | |
// 2. For each file: | |
// 2.1 Read a file | |
// 2.2 Find required data | |
// 2.3 Put the information in a JSON object | |
// 3. Convert JSON object to YAML | |
// 4. Write new Markdown file in _posts folder | |
var fs = require('fs') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//************************************************************************// | |
// Generate a variable ($all-text-inputs) with a list of all html5 | |
// input types that have a text-based input, excluding textarea. | |
// http://diveintohtml5.org/forms.html | |
//************************************************************************// | |
$inputs-list: 'input[type="email"]', | |
'input[type="number"]', | |
'input[type="password"]', | |
'input[type="search"]', | |
'input[type="tel"]', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin clearfix { | |
*zoom:1; | |
&:before, &:after { content: " "; display: table; } | |
&:after { clear: both; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec = require('child_process').exec | |
_ = require('lodash') | |
autoprefix = require('gulp-autoprefixer') | |
chalk = require('chalk') | |
concat = require('gulp-concat') | |
es = require('event-stream') | |
gulp = require('gulp') | |
gutil = require('gulp-util') | |
order = require('gulp-order') | |
plumber = require('gulp-plumber') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run the code in developer console, done best through Chrome's Javascript snippets | |
// First add LoDash | |
$('body').append('<script src="//cdn.jsdelivr.net/lodash/2.4.1/lodash.min.js"></script>'); | |
// Add range of steps to Bold Apps Product Option dropdown | |
(function() { | |
var valueRange = _.range(-5, 5.25, 0.25); | |
function addNewValue(value) { |
OlderNewer