This file contains hidden or 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
local function BlendColor(a, b, frac) | |
return a * (1 - frac) + b * frac | |
end | |
-- simple blending example | |
do | |
local red = Color(192, 57, 43) | |
local blue = Color(41, 128, 185) | |
hook.Add("HUDPaint", "color blending cycle", function() |
This file contains hidden or 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
// удаляет всю музыку из вашей библиотеки https://vk.com/audio | |
// ни одно из решений в интернете не работало, пришлось написать свой скрипт | |
var songs = document.querySelector("#content > div > div._audio_page_content_block_wrap.audio_page_content_block_wrap > div.audio_page_sections._audio_page_sections.clear_fix > div.audio_section._audio_section._audio_section__all.audio_section__all.clear_fix.audio_w_covers > div > div:nth-child(2) > div.CatalogSection__columns > div.CatalogSection__leftColumn.CatalogSection__paginatedBlocks > div.CatalogBlock__content.CatalogBlock__my_audios.CatalogBlock__layout--list > div > div > div.audio_page__rows_wrap > div > div.CatalogBlock__itemsContainer.audio_page__audio_rows_list._audio_page__audio_rows_list._audio_pl.audio_w_covers.CatalogBlock__itemsContainer--reorderable"); | |
var list = songs.querySelectorAll(".audio_row"); | |
console.log(`Total songs: ${list.length}`); | |
list.forEach(function(elem) { | |
let obj = AudioUtils.getAudioFromEl(elem); | |
let data_audio = JSON.parse(elem. |
This file contains hidden or 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
// ==UserScript== | |
// @name Gmod Wiki Dark Style | |
// @namespace https://wiki.facepunch.com/gmod/ | |
// @version 0.3 | |
// @description try to take over the world! | |
// @author Phoenixf129 & Beelzebub | |
// @match https://wiki.facepunch.com/* | |
// @exclude *~edit | |
// @icon https://files.facepunch.com/garry/822e60dc-c931-43e4-800f-cbe010b3d4cc.png | |
// @grant none |
This file contains hidden or 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
--[[------------------------------------------------------------------------- | |
2019.01.16 | |
Урезанный класс для склонения русских слов | |
https://github.com/petrovich/petrovich-php | |
В оригинале работает с именами | |
Полезные ссылки: | |
https://petroleks.ru/gramota/13.php | |
https://pymorphy2.readthedocs.io/en/latest/ |
NewerOlder