Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View geforester's full-sized avatar
🚀
Focusing

Roman Ilin geforester

🚀
Focusing
View GitHub Profile
@geforester
geforester / delete-files.ps1
Created May 10, 2017 20:37
Remove files on PowerShell by mask
Get-ChildItem "*].mp3" -recurse | foreach {$_.delete()}
// Удаление элемента из массива.
// String value: значение, которое необходимо найти и удалить.
// return: массив без удаленного элемента; false в противном случае.
Array.prototype.remove = function(value) {
var idx = this.indexOf(value);
if (idx != -1) {
// Второй параметр - число элементов, которые необходимо удалить
return this.splice(idx, 1);
}
(function (root, factory) {
'use strict'
/* global define */
if (typeof define === 'function' && define.amd) {
define([], factory)
} else if (typeof exports === 'object') {
module.exports = factory()
} else {
root.xorCrypt = factory()
}
(function (root, factory) {
'use strict'
/* global define */
if (typeof define === 'function' && define.amd) {
define([], factory)
} else if (typeof exports === 'object') {
module.exports = factory()
} else {
root.xorCrypt = factory()
}
<?xml version="1.0" encoding="utf-8"?>
<windows>
<window>
<available>1</available>
<color>белый</color>
<dimensions>Размеры</dimensions>
<title>Название</title>
<spec>Заполнение</spec>
<price>Цена</price>
<comment>Комментарий</comment>
@geforester
geforester / slideDown.js
Created June 16, 2020 22:22 — forked from ludder/slideDown.js
Vanilla JavaScript slideUp and slideDown functions
/*
Element to slide gets the following CSS:
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.4s ease 0s;
*/
/**
* Like jQuery's slideDown function - uses CSS3 transitions
@geforester
geforester / gist:547bde6b712d151463884e44165c925d
Created January 11, 2021 08:18
remove ads from mail.yandex.ru
.ns-view-infoline-box + div, .b-banner, .PSHeader-Pro, .PSHeader-Center, .mail-ProLeftColumnButton__pro-button {
display: none !important;
}
<?xml version="1.0" encoding="UTF-8"?>
<items>
<item>
<order>Заявка №ПЛ0083229</order> <!-- Номер заявки неликвида -->
<name>Дверь открывание наружу 60 мм, Alt 100, Дверная фурнитура, 2000х860, Белый 9016, Белый 9016</name> <!-- Название -->
<price>7714</price> <!-- Цена -->
<image>items/0083229.jpg</image> <!-- Ссылка на картинку, где имя файла – номер заявки или другой уникальный id -->
<features> <!-- Список всех особенностей заявки: цвет, способы запирания, типы ручек и тп -->
<feature>
<feature-name>Тип ручки</feature-name>
<feed>
<building>
<building-id>121244</building-id>
<studio>
<price>10000000</price>
<area>54.4</area>
</studio>
<room-1>
<price>10000000</price>
<area>54.4</area>
@geforester
geforester / versionCleanX.php
Created September 14, 2017 16:43
Remove old versions from VersionX
<?php
/**
* versionCleanX
*
* @author Scott Pronych, September 27, 2013
*
* DESCRIPTION
*
* For use with VersionX to delete old content
*