Skip to content

Instantly share code, notes, and snippets.

View miere43's full-sized avatar

Vladislav Vorobev miere43

View GitHub Profile
@gre
gre / easing.js
Last active June 27, 2024 15:37
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
@soeminnminn
soeminnminn / DDSImageParser.cs
Last active November 18, 2023 16:39
Read DDS image in C# way. Converted from "[il_dds.c] https://github.com/DentonW/DevIL/blob/master/DevIL/src-IL/src/il_dds.c" (DevIL).
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
using System.IO;
namespace S16.Drawing
{
#region DDSImage Class
@alirobe
alirobe / reclaimWindows10.ps1
Last active July 3, 2024 09:36
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@PetterKraabol
PetterKraabol / chatreplay.py
Last active February 20, 2021 19:27
ChatReplay (Moved)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests, sys, time
#
# DEPENDENCIES
#
# You'll need the Requests library: http://docs.python-requests.org/en/master/user/install/#install
#
@SecondReality
SecondReality / AnkiSuspender.py
Created February 10, 2018 19:16
Exports a list of suspended cards from Anki, and re-suspends them in another deck
from aqt import mw
from aqt.utils import showInfo
from aqt.qt import *
import json
def exportSuspendedCards():
cards = mw.col.findCards("\"deck:KKLC No Audio\"")
showInfo("Card count: %d" % len(cards))