This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
--------- | |
Masstag | |
--------- | |
Batch adds tags to all files in the current or specified directory | |
Filenames can be formatted as: | |
Show Name S01E01.mp3 | |
Show Name - 01.mp3 | |
[Group] Show Name - 1.mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name discogshide | |
// @namespace dicksogs | |
// @match *://*.discogs.com/release/stats/* | |
// @grant none | |
// @version 1.0 | |
// @author yui | |
// @description Hides specified users from discogs "have" lists | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Licensed under LGPLv3, Copyright (c) 2020 Yui | |
using System; | |
namespace Blocc.Engine.Common | |
{ | |
public class Array3D<T> | |
{ | |
private readonly Memory<T> _mem; | |
private readonly int _width; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Licensed under LGPLv3, Copyright (c) 2020 Yui | |
import { defineGlobals } from "./helpers"; | |
export interface Star { | |
x: number; | |
y: number; | |
age: number; | |
maxAge: number; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Licensed under LGPLv3, Copyright (c) 2020 Yui Kerver | |
#include "Image.hpp" | |
#include <fstream> | |
namespace Engine | |
{ | |
Image Image::Load(const std::string path) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# | |
# Licensed under GPLv3, Copyright (c) 2020 Yui | |
# | |
import sys | |
import dbus | |
def cut_text_scrolling(text: str, offset: int, maxlen=20, sep=' :: ', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{ | |
error::Error, | |
fmt::{self, Display}, | |
}; | |
macro_rules! wrap_err { | |
($err:expr) => { | |
ErrorWrapper::from($err) | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <string.h> | |
bool validate_email(const char* str, size_t length) | |
{ | |
if (!length) return false; | |
size_t at_sign_idx = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Licensed under GPLv3, Copyright (C) 2020 Yui | |
#ifndef __MIDI_EVENT_H__ | |
#define __MIDI_EVENT_H__ | |
#include <cstddef> | |
#include <cstdint> | |
#include <vector> | |
#include <functional> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Licensed under GPLv3, Copyright (c) 2020 Yui | |
#ifndef __BUFINT_H__ | |
#define __BUFINT_H__ | |
#include <stdint.h> | |
#define BUFINT_UNION(bits) \ | |
union int##bits##_buf_t \ | |
{ \ |
NewerOlder