Синхронизация настроек Sublime Text 3
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
| 'use strict'; | |
| const flatten = (arr) => [].concat.apply([], arr) | |
| /** | |
| * Accepts an iterate collection of promises, resolves them by bundles with accumulate results | |
| * | |
| * @param {Array} promises - array of unresolved promises | |
| * @param {object} settings - object with any settings | |
| * @param {number} settings.from - number of promise, from which to begin new iteration | |
| * @param {number} settings.iteration - number of promises for one iteration |
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
| ;(function() { | |
| 'use strict'; | |
| $.fn.parallax = function(options) { | |
| var $window = $(window); | |
| var defaults = { | |
| 'speed': 6, | |
| 'firstBlock': false | |
| } | |
| var setting = $.extend(defaults, 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
| #!/bin/bash | |
| FONTS=`convert -list FONT | grep "Font:" | sed "s/Font: //g"` | |
| SIZEX=300 | |
| SIZEY=30 | |
| convert -size "${SIZEX}x${SIZEY}" canvas:white canvas.png | |
| for FONT in $FONTS; | |
| do | |
| convert -background none -size ${SIZEX}x${SIZEY} \ | |
| -gravity center -font $FONT caption:"$FONT" font.png | |
| composite font.png canvas.png "$FONT".png |
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
| function getSVGs() { | |
| return $$('svg use').reduce((links, svg) => { | |
| const image = svg.href.baseVal | |
| const includes = links.some(obj => Object.values(obj).image) | |
| if (!includes) { | |
| links.push({ | |
| element: svg, | |
| image: image | |
| }) | |
| } |
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 total = { | |
| hours: 0, | |
| minutes: 0, | |
| seconds: 0 | |
| }; | |
| document.querySelectorAll('.timestamp').forEach(time => { | |
| let arTime = time.textContent.split(':'); | |
| let seconds = parseFloat(arTime[1]); | |
| let minutes = parseFloat(arTime[0]); |
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 $ = q => document.querySelectorAll(q) | |
| var columns = $('table td:nth-child(4)') | |
| var filterNum = n => !isNaN(parseFloat(n)) ? parseFloat(n) : 0 | |
| var kb2mb = n => Math.round(n.toFixed(2)/1024)+' MB' | |
| var arr = nl => Array.from(nl) | |
| var summary = arr(columns).reduce((sum, val) => { | |
| return sum += filterNum(val.innerText) | |
| }, 0) |
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
| function fuck(msg) { | |
| var fuckfExcl = '0'; | |
| var ohoho = msg; | |
| for (var n = 0; n < fuckfEx.length; n++) { | |
| if (msg.toLowerCase().search(fuckfEx[n]) != -1 && (msg.toLowerCase().search(fuckf[0]) == -1 && msg.toLowerCase().search(fuckf[1]) == -1)) { | |
| fuckfExcl = '1'; | |
| } | |
| } | |
| if (fuckfExcl == '0') { | |
| for (var k = 0; k < fuckf.length; k++) { |