Skip to content

Instantly share code, notes, and snippets.

Avatar

Ivan Voischev voischev

View GitHub Profile
View image download
$(function() {
var showInfo = function(message) {
$('div.progress').hide();
$('strong.message').text(message);
$('div.alert').show();
};
$('input[type="submit"]').on('click', function(evt) {
evt.preventDefault();
@voischev
voischev / PostHTMLTree.js
Last active Oct 4, 2016
PostHTMLTree.js ideas [WIP]
View PostHTMLTree.js
/*
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
Created Aug 24, 2016
PostHTMLTree.js ideas
View PostHTMLTree.js
/*
format PostHTMLTree
@see https://dev.w3.org/html5/html-author/
*/
/*
declarations
@see https://dev.w3.org/html5/html-author/#doctype-declaration
<!DOCTYPE
@voischev
voischev / sketch-export-to-svg-linter.md
Last active Apr 20, 2016
Sketch export to SVG linter
View sketch-export-to-svg-linter.md
  • center stroke only
  • check 0.5px
  • fix rx value in rect and elipcise; real rx = (h/2 * rx) / 100
@voischev
voischev / javascript-stack-tree.js
Last active Apr 21, 2016
javascript-stack-tree
View javascript-stack-tree.js
var tree = [
{
val: 1,
next: [
{val: 2, next: null},
{val: 3, next: [{val: 4, next: null}]}
]
}
];
@voischev
voischev / gist:9bea6390c5e1f0d37676
Last active Aug 29, 2015
Переименование файлов по маске из командной строки
View gist:9bea6390c5e1f0d37676
#!/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
You can’t perform that action at this time.