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
mail.yandex.ru##.ns-view-left-box>:nth-of-type(2) | |
mail.yandex.ru##.mail-Layout-Content>:nth-of-type(2) | |
market.yandex.ru##[data-apiary-widget-name="@marketfront/HeaderPromo"] | |
market.yandex.ru##[data-apiary-widget-name="@marketfront/HeroBannerCarousel"] | |
market.yandex.ru##[data-apiary-widget-name="@marketfront/MadvHeaderPromo"] | |
youtube.com##[is-shorts] | |
docs.nestjs.com##div.banner | |
habr.com##.tm-stories-block |
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
// for https://ui.gitlab-pages.kontur.host/docs/#/icons | |
const data = Array.from(document.querySelectorAll("[data-testid='mountNode']")[2].childNodes[2].children).filter( | |
i => i.localName === "div" | |
); | |
const result = []; | |
let idx = 0; | |
Array.from(data).forEach(a => { | |
Array.from(a.children[0].children).map(i => result.push([i.querySelector("p").innerText.replace(/[\u200b]/, "")])); |
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
type nul >> %* |
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
apiVersion: batch/v1 | |
kind: CronJob | |
metadata: | |
name: cleaner | |
spec: | |
schedule: "0 8 * * *" | |
jobTemplate: | |
spec: | |
template: | |
spec: |
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
gitlabUrl : https://gitlab.com | |
runnerRegistrationToken: TOKEN | |
runners: | |
tags: "docker" | |
privileged: true | |
config: | | |
[[runners]] | |
[runners.kubernetes] | |
image = "ubuntu:20.04" |
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'; | |
class Observable { | |
constructor(subscribe) { | |
this.observers = []; | |
if (subscribe) { | |
subscribe(this) | |
} | |
} |
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
// creatordate нужен потому что в тегах созданных на ранних версиях гита вполне себе может не быть коммитера! | |
const gitLastTag = execSync( | |
`git for-each-ref --count=10 --sort=-creatordate --format='%(refname:short)' refs/tags/release/engine/v*` | |
); | |
const lastReleaseTags = gitLastTag | |
.toString() | |
.split("\n") | |
.map(i => i.replace(/'|"/g, "")) | |
.filter(i => i !== "") |
This file has been truncated, but you can view the full file.
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
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) { | |
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0]); | |
var _Main = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1])); | |
var _SceneMain = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2])); | |
var _miot = _$$_REQUIRE(_dependencyMap[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
- name: Курс евро Московская биржа | |
platform: rest | |
resource: https://iss.moex.com/iss/engines/currency/markets/selt/boards/CETS/securities/EUR_RUB__TOM.json?iss.meta=off&marketdata.columns=LAST,VALUE&securities.columns=n | |
value_template: "{{ value_json.marketdata.data[0][0] }}" | |
unit_of_measurement: "rub" | |
scan_interval: 600 | |
- name: Курс доллара Московская биржа | |
platform: rest | |
resource: https://iss.moex.com/iss/engines/currency/markets/selt/boards/CETS/securities/USD000UTSTOM.json?iss.meta=off&marketdata.columns=LAST,VALUE&securities.columns=n | |
value_template: "{{ value_json.marketdata.data[0][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
#!/bin/sh | |
tscCommand="powershell.exe yarn tsc" | |
lintCommand="powershell.exe yarn lint" | |
echo "[HOOK] Running tsc..." | |
q=$(exec $tscCommand) | |
result=$? | |
if [ "$result" != "0" ] | |
then |
NewerOlder