Last updated: 09/05/24
Discover gists
public class Result | |
{ | |
protected internal Result(bool isSuccess, Error error) | |
{ | |
if (isSuccess && error != Error.None) | |
{ | |
throw new InvalidOperationException(); | |
} | |
if (!isSuccess && error == Error.None) |
// ==UserScript== | |
// @name Aternos Anti Anti-adblock | |
// @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j | |
// @version 0.1.23 | |
// @description Fuck anti-adblock from the free hosting minecraft servers Aternos.org. Parry this you filthy casual! | |
// @author Angry Developer against excessive ADs | |
// @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
// @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a | |
// @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js | |
// @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js |
Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.
The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060
, which represents November 28th, 2018
at 09:01:00
hours for my local time zone (GMT+0100 Central European Standard Time).
Style | Input | Output (12-hour clock) | Output (24-hour clock) |
---|---|---|---|
Default | <t:1543392060> |
November 28, 2018 9:01 AM | 28 November 2018 09:01 |
// Copyright (C) 2022 Evan McBroom | |
// | |
// 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: | |
// | |
// The above copyright notice and this permission notice shall be included in |
The list has been moved to a new home at The Friendly Free Software Directory
As of 27/12/2022 this Gist is deprecated and will no longer be maintained. Please visit the new site for the latest additions to the list
A list of favorite Free/Libre/Open Source Software suggested by members of the Mybroadband.co.za forum community.
To join the discussion or suggest additions to the list go to
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
# Use the sounddevice module | |
# http://python-sounddevice.readthedocs.io/en/0.3.10/ | |
import numpy as np | |
import sounddevice as sd | |
import time | |
# Samples per second | |
sps = 44100 |