Синхронизация настроек Sublime Text 3
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
#!/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 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 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 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 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++) { |
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
'use strict'; | |
const paths = require('../config/paths'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const svgSprite = require('gulp-svg-sprite'); | |
module.exports = function(gulp, bs) { | |
return gulp.task('svg-symbols', function() { |
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
let eventsList = []; | |
require('./getGithub').then((data) => { | |
for (event in data) { | |
eventsList.push({ | |
title: event.title, | |
url: event.html_url | |
}); | |
} |