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
tplink archer t4u driver | |
https://askubuntu.com/questions/802205/how-to-install-tp-link-archer-t4u-driver |
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
// breakpoints from bootstrap 4 | |
$grid-breakpoints: ( | |
xs: 0, | |
sm: 576px, | |
md: 768px, | |
lg: 992px, | |
xl: 1200px | |
) !default; | |
@mixin breakpoint($point) { |
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
$('#mse2_results .mse2-row').sort(function(a,b) { | |
function getViews(el) { | |
return Number($(el).find('table tr:last td').text().trim().match(/\d+$/ig)[0]) | |
} | |
return getViews(b) - getViews(a); | |
}).appendTo('#mse2_results'); |
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
/** | |
* Dependencies | |
* moment | |
* ramda | |
*/ | |
/** | |
* | |
* @param {string} date | |
* @param {Object} options |
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
export function declination(num, titles) { | |
const cases = [2, 0, 1, 1, 1, 2]; | |
return titles[(num % 100 > 4 && num % 100 < 20) | |
? 2 | |
: cases[(num % 10 < 5) ? num % 10 : 5] | |
]; | |
} | |
declination(1, ['яблоко', 'яблока', 'яблок']); // яблоко | |
declination(2, ['яблоко', 'яблока', 'яблок']); // яблока |
NewerOlder