Skip to content

Instantly share code, notes, and snippets.

View 0xF6's full-sized avatar
🧬

Yuuki Wesp 0xF6

🧬
View GitHub Profile
@0xF6
0xF6 / vk_to_tg.cs
Created May 17, 2019 21:34
VK Sticker to Telegram Sticker
// Open stickers preview and run this code in console
$(".im_stickerpack_preview").each(function (index, value) {
var url = $(value).children().attr("src");
console.log(url);
});
// copy links and replace -128 end in sticker id to -512
var urls = new[] { "https://vk.com/sticker/1-12467-512","https://vk.com/sticker/1-12468-512", ... };
@0xF6
0xF6 / vk_feed_clean.js
Created May 26, 2019 22:56
VK Feed repost disabler
// ==UserScript==
// @name Disable VK Repost
// @namespace http://tampermonkey.net/
// @version 0.1
// @author Yuuki Wesp
// @match https://vk.com/*
// @match http://vk.com/*
// @grant none
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @require https://code.jquery.com/ui/1.12.1/jquery-ui.min.js
@0xF6
0xF6 / spell.rjndael
Last active May 26, 2019 23:46
Spell Dictionary #1
U2FsdGVkX18ShxO/vb45qfNARIEUuh3/vmq+LvEARtaqmF0I3SOzcsMEHzQFvVVy
HqttlNDgfHr6tqaR0dp7B2WZj7DxNgkucz/a6Y9Hj8vhF0bnp75effyZz26cSwP1
ji25pkWvVs/gzAqdP3PbuuEm7lF00mgCE1HTLqxrCQy632XABKaR+ZnHYgy3I/Cy
c8lEi7qyhDK/lZxaX3u/ZVXKHx1FcjuHn5aCx/Xs4JcSdxXTVZVIGspyUqLzlfdu
6qmDVOufqIxH/t/8DTyqYyphTeUuIT7iGLRw4WDOp4WBgLLMJkKAm5iijVZqRPMg
2EgSy5tutFe8EhjwIdSeG7GCnNKTtLW0yamssyRFEcP4QZqWWDbvIKifOPqoNjip
ywHh38zpXBDxkrR8vbW5oDJjZ365xyKJcU8LtnsaDMMv8ltvEht0Kpb6RX2HWGsd
hJ6w0IvcXcRznvL/ezmo7PeieLGBSYdxABaeD41qq30EWc/Ce6DKuu1QhZQwYwii
z3OVrToCw93Paw7/8xCMLOWSMYvACyM7d2YKHdimQTmkJ6PtmQHnQXnywguLHKyi
3Kd8FM+yt9zAn3MGniXjUTLCzUbZWsaUlX1Ep1hicnssgd3RAxFC2lrwXzorwH1h
namespace ConsoleApp9
{
using System;
using Pixie;
using Pixie.Code;
using Pixie.Markup;
using Pixie.Terminal;
using Pixie.Terminal.Render;
using Pixie.Transforms;

Keybase proof

I hereby claim:

  • I am 0xf6 on github.
  • I am ivysola (https://keybase.io/ivysola) on keybase.
  • I have a public key ASCfQSPaCC6X4o6E4p_PVTgzGYygbGE5UjriKcaP_1qhNgo

To claim this, I am signing this object:

@0xF6
0xF6 / Driver_CO2.cpp
Created January 29, 2020 22:51
Display CO2 ppm value contains in air.
#include "Arduino.h"
#include "TM74.h"
#define DIO 5
#define RCLK 6
#define SCLK 7
#define ALARM 10
TM74 display(SCLK, RCLK, DIO);
@0xF6
0xF6 / bgd.csx
Created July 9, 2020 13:06
BigInt divide
double Divide(BigInteger x, BigInteger y)
=> Math.Exp(BigInteger.Log(x) - BigInteger.Log(y));
@0xF6
0xF6 / fn_name.h
Created September 17, 2020 15:50
#pragma once
#if defined(__GNUC__) || (defined(__ICC) && (__ICC >= 600))
#define G_FUNCTION_NAME __PRETTY_FUNCTION__
#elif defined(__FUNCSIG__)
#define G_FUNCTION_NAME __FUNCSIG__
#elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600))
#define G_FUNCTION_NAME __FUNCTION__
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
#define G_FUNCTION_NAME __func__
HTML 14 mins ████████████████▌░░░░ 79.0%
JSON 3 mins ████▍░░░░░░░░░░░░░░░░ 20.9%
Other 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1%
Git Config 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1%
@0xF6
0xF6 / AdBannerSafeRegion.cs
Last active November 2, 2020 19:31
Apply a safe region calculation using classic ad banner.
/// <summary>
/// Only <see cref="BannerPosition.BOTTOM_*"/>
/// </summary>
public static void ApplyAdsSafeRegion(this RectTransform target, Rect safeRegion)
{
static float getAdHeight() =>
((Screen.height / (Screen.dpi / 160f)) > 720f) ? 90f * (Screen.dpi / 160f)
: ((Screen.height / (Screen.dpi / 160f)) > 400f) ? 50f * (Screen.dpi / 160f)
: 32f * (Screen.dpi / 160f);
r.y += getAdHeight();