Skip to content

Instantly share code, notes, and snippets.

View xarantolus's full-sized avatar

Philipp xarantolus

View GitHub Profile
@noelbundick
noelbundick / LICENSE
Last active May 19, 2025 10:54
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mickmister
mickmister / youtube-history-purge.js
Last active May 11, 2022 01:06
YouTube Search and Watch History Purge
/*
Tired of YouTube giving you the same recommendations all the time?
As it turns out, the recommendations are calculated directly from your search and watch history.
Instructions:
1. Visit
youtube.com/feed/history/search_history
or
youtube.com/feed/history
2. Scroll down on the page so there are many results visible.
@dheffx
dheffx / rust-http-json-example.rs
Created February 11, 2018 21:50
rust-http-json-example
extern crate reqwest;
extern crate serde;
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
use std::io::Read;
use serde_json::Error;
@thomasbnt
thomasbnt / code_colors_discordjs.md
Last active May 20, 2025 15:16
Code colors for embed discord.js

Here is an updated list of the colors that are currently implemented with a name. To using colors on discord.js, this is a typedef Colors, Colors.Aqua to get the Aqua color.

Name Int value Hex Code
Default 0 #000000
Aqua 1752220 #1ABC9C
DarkAqua 1146986 #11806A
Green 5763719 #57F287
DarkGreen 2067276 #1F8B4C
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active June 6, 2025 15:12
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@duanckham
duanckham / ajax.js
Last active January 19, 2018 15:56
AJAX
var ajax = function(url, data) {
var wrap = function(method, cb) {
var xhr = new XMLHttpRequest();
xhr.open(method, url, true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(data ? JSON.stringify(data) : null);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status > 0)
@james2doyle
james2doyle / scrollTo.js
Last active October 25, 2024 14:12
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
// easing functions http://goo.gl/5HLl8
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
}
t--;
return -c/2 * (t*(t-2) - 1) + b;
};