Skip to content

Instantly share code, notes, and snippets.

Avatar
🙄
Странности

Paul paulvonlecter

🙄
Странности
View GitHub Profile
@paulvonlecter
paulvonlecter / discord-streamkit-funny-maze.css
Created Jun 19, 2022
Весёлое испытание для участников голосовых каналов в Discord, которое можно вывести в качестве оверлея на экран трансляции.
View discord-streamkit-funny-maze.css
* {
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 Apr 7, 2022
Простое оформление чата RuTube для встраивания в трансляцию
View rutube-chat-overlay.css
/* 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 Nov 7, 2017
Stupid case to process bitmask on PHP
View bitmask.php
<?php
// source data
$source = array(
false,
true,
true,
false,
true,
true,
false,
@paulvonlecter
paulvonlecter / get-post-functions.cs
Created Mar 30, 2017
GET & POST requests' functions in C#
View get-post-functions.cs
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);