This file contains 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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin icon ($name, $code) { | |
$slash: "//"; | |
.#{$name}:before { | |
content: "#{str-slice($slash, 1, 1)}#{$code}"; | |
} |
This file contains 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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
@function char-from-code($iso-char) { | |
$escapeworkaround: "\"\\#{$iso-char}\""; | |
@return unquote($escapeworkaround); | |
} |
This file contains 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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
@function char-from-code($iso-char) { | |
@return unquote('\"\\#{$iso-char}\"'); | |
} | |
.test { |
This file contains 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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
@import "compass"; | |
#home-positions { | |
transform: translateX(#{200 * sin(45deg)}px); |
This file contains 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
fetch: function fetch(options) { | |
// populate serverTime with the date response header | |
options = options || {}; | |
options.method = 'HEAD'; | |
options.success = function (model, response, options){ | |
model.set({ | |
serverTime: options.xhr.getResponseHeader('Date') | |
}); | |
}; | |
Backbone.Model.prototype.fetch.call(this, options); |
This file contains 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
R.compose( | |
R.join(''), | |
R.flatten | |
)([1, 2, [3, 4], 5, [6, [7, 8, [9, [10, 11], 12]]]]); |
This file contains 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
https://jsfiddle.net/8t7ebhtm/4/ |
This file contains 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
html, body { | |
font-size: calc(44px - (2vw)); | |
} |
This file contains 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 fpIncludes = _.curry( function (val, list) { return _.includes(list, val); } ); | |
// or use lodash/fp's includes instead | |
var prop = _.curry( function (val, obj) { return _.get(obj, val); } ); | |
var propOr = _.curry( function (def, val, obj) { return _.get(obj, val, def); } ); | |
var checkForAorD = _.cond([ | |
[fpIncludes('a'), _.constant('matches A')], | |
[fpIncludes('d'), _.constant('matches D')], | |
[_.stubTrue, _.constant('no match')] | |
]); |
This file contains 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
// data | |
const types = [ | |
'typeA', | |
'typeB', | |
'typeC', | |
'all', | |
'typeD' | |
]; | |
const a = ['a', 'b', 'c', 'd']; | |
const b = ['e', 'f']; |
OlderNewer