Skip to content

Instantly share code, notes, and snippets.

View 0xF6's full-sized avatar
🧬

Yuuki Wesp 0xF6

🧬
View GitHub Profile
@0xF6
0xF6 / calc.cs
Last active May 3, 2019 21:39
Mini Calculator
namespace Calculator
{
using static System.Console;
using Sprache;
using System.Linq;
internal class Program
{
public static void Main(string[] args)
{
@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 / yandex_ads_blocker.js
Created May 26, 2019 22:57
Yandex ads clearner
// ==UserScript==
// @name Yandex Block
// @namespace http://tampermonkey.net/
// @version 1.3
// @author Yuuki Wesp <ls-micro@ya.ru>
// @match https://yandex.ru/*
// @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
// ==/UserScript==
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:

HTML 14 mins ████████████████▌░░░░ 79.0%
JSON 3 mins ████▍░░░░░░░░░░░░░░░░ 20.9%
Other 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1%
Git Config 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1%
@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__