Skip to content

Instantly share code, notes, and snippets.

@FUNExtreme
FUNExtreme / PhoneWord Translator
Last active August 29, 2015 14:23
Translates a phone number with phoneword letters to a numeric phone number
public static class Phoneword
{
/// <summary>
/// Translates a phonenumber that might contain phoneword letters to the corresponding number
/// NOTE: Expects a valid phone number
/// </summary>
/// <param name="c">The character to translate to the corresponding number</param>
/// <returns>String with the translated phonenumber</returns>
public static string Translate(string rawPhoneNumber)
{
@FUNExtreme
FUNExtreme / YouTube_auto_subscriber.js
Last active August 2, 2023 07:46
YouTube Auto Subscriber which can be used to transfer your subscriptions from one account to another.
/*
* DESCRIPTION
* This script will go through all the subscription buttons on the YouTube page you execute it on, and subscribes to the ones that
* you're not subscribed to yet.
* A random delay is added to each subscription request, this is due to the fact that YouTube starts blocking subscriptions after
* a certain number of consecutive requests. Randomising the delays should trick the detection into thinking it's a valid user doing
* the requests.
*
* HOW TO USE
* Navigate to the page containing the channels you would like to subscribe to. (The subscribe button should be visible!)
@FUNExtreme
FUNExtreme / CopyScript.ps1
Last active February 16, 2016 13:20
This script copies the children of a given directory to the specified destination directory
#
# This script copies the children of a given directory to the specified destination directory
#
# Created by FUNExtreme (Robin Maenhaut <robin.maenhaut.coder@gmail.com>)
# Script Parameters
Param(
[string]$srcDir, # The directory to copy the children from
[string]$destDir, # The directory to recreate the folder and file structure to
@FUNExtreme
FUNExtreme / GlobalVersionedPrefixProvider.cs
Created February 25, 2016 07:22
Allows for easy versioning of an API by extracting the version number from the controller name and using it in the url
public class GlobalVersionedPrefixProvider : DefaultDirectRouteProvider
{
/// <summary>
/// Global prefix, usually "api" to be prepended to the full versioned prefix
/// </summary>
private readonly string _prefix;
public GlobalVersionedPrefixProvider(string prefix)
{
_prefix = prefix;