Skip to content

Instantly share code, notes, and snippets.

View voischev's full-sized avatar

Ivan Voischev voischev

View GitHub Profile
@voischev
voischev / gist:9bea6390c5e1f0d37676
Last active August 29, 2015 14:02
Переименование файлов по маске из командной строки
#!/bin/bash
find . -type f \( -name '*.roo' -or -name '*.css' \) -not -path './desktop.bundles/*' -print -exec sh -c 'file={}; newfile="${file/%.roo/.styl}"; mv "$file" "$newfile";' \; | xargs find
@voischev
voischev / javascript-stack-tree.js
Last active April 21, 2016 10:36
javascript-stack-tree
var tree = [
{
val: 1,
next: [
{val: 2, next: null},
{val: 3, next: [{val: 4, next: null}]}
]
}
];
@voischev
voischev / sketch-export-to-svg-linter.md
Last active April 20, 2016 13:35
Sketch export to SVG linter
  • center stroke only
  • check 0.5px
  • fix rx value in rect and elipcise; real rx = (h/2 * rx) / 100
@voischev
voischev / PostHTMLTree.js
Created August 24, 2016 09:06
PostHTMLTree.js ideas
/*
format PostHTMLTree
@see https://dev.w3.org/html5/html-author/
*/
/*
declarations
@see https://dev.w3.org/html5/html-author/#doctype-declaration
<!DOCTYPE
@voischev
voischev / PostHTMLTree.js
Last active October 4, 2016 00:02
PostHTMLTree.js ideas [WIP]
/*
format PostHTMLTree
@see https://dev.w3.org/html5/html-author/
*/
/*
declarations
@see https://dev.w3.org/html5/html-author/#doctype-declaration
<!DOCTYPE
$(function() {
var showInfo = function(message) {
$('div.progress').hide();
$('strong.message').text(message);
$('div.alert').show();
};
$('input[type="submit"]').on('click', function(evt) {
evt.preventDefault();