Skip to content

Instantly share code, notes, and snippets.

View paulvonlecter's full-sized avatar
🙄
Странности

Paul paulvonlecter

🙄
Странности
View GitHub Profile
@paulvonlecter
paulvonlecter / discord-streamkit-funny-maze.css
Created June 19, 2022 16:32
Весёлое испытание для участников голосовых каналов в Discord, которое можно вывести в качестве оверлея на экран трансляции.
* {
margin:0;
padding:0;
}
html, body, div#app-mount, div#app-mount>div, .voice-container, .voice-container .voice-states, .voice-container .voice-states .voice-state {
display: block !important;
position: absolute!important;
top:0;bottom:0;left:0;right:0;
/* Размеры исходного изображения */
width: 800px!important;
@paulvonlecter
paulvonlecter / rutube-chat-overlay.css
Created April 7, 2022 08:32
Простое оформление чата RuTube для встраивания в трансляцию
/* Made by Paul von Lecter */
/* https://paulvonlecter.name/ */
body {
background:transparent!important;
text-shadow:0 0 1em #000;
overflow-y: hidden;
}
div {
background-color: transparent!important;
}
@paulvonlecter
paulvonlecter / bitmask.php
Created November 7, 2017 20:00
Stupid case to process bitmask on PHP
<?php
// source data
$source = array(
false,
true,
true,
false,
true,
true,
false,
@paulvonlecter
paulvonlecter / get-post-functions.cs
Created March 30, 2017 07:02
GET & POST requests' functions in C#
private static string POST(string Url, string Data) {
System.Net.WebRequest req = System.Net.WebRequest.Create(Url);
req.Method = "POST";
req.Timeout = 100000;
req.ContentType = "application/x-www-form-urlencoded";
// Кодировка указывается в зависимости от кодировки клиента
byte[] sentData = Encoding.GetEncoding(1251).GetBytes(Data);
req.ContentLength = sentData.Length;
System.IO.Stream sendStream = req.GetRequestStream();
sendStream.Write(sentData, 0, sentData.Length);