Updated: 20240917
Discover gists
- Your
/etc/apt/sources.list
should look like something like this:
deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc] main contrib non-free
deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc]-updates main contrib non-free
# security updates
deb http://security.debian.org [bullseye, bookworm, etc]-security main contrib
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
// Developed by Tom Kail at Inkle | |
// Released under the MIT Licence as held at https://opensource.org/licenses/MIT | |
// Must be placed within a folder named "Editor" | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEditor; | |
using UnityEngine; |
If you're wondering what Gateway Intents are, what Privileged Intents are, why your bot can't see statuses, or why your bot can't see member joins anymore, then this page should explain it to you!
if you do not know what intents are, please read this entire page
First, a short explanation of how bots work: bots can make requests over the REST (HTTP) API to retreive information and do actions, and they get real-time updates from Discord in the form of websocket gateway events. They can also fetch server members via the gateway.
Examples of gateway events you are probably familiar with are Message Create (a message was sent) and Guild Member Add (a user joined a server).
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
from tensorflow.python.framework import tensor_shape | |
from tensorflow.python.eager import context | |
from tensorflow.python.framework import common_shapes | |
from tensorflow.python.framework import ops | |
from tensorflow.python.framework import tensor_shape | |
from tensorflow.python.keras import activations | |
from tensorflow.python.keras import backend as K | |
from tensorflow.python.keras import constraints | |
from tensorflow.python.keras import initializers | |
from tensorflow.python.keras import regularizers |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Modified. | |
# Original script source: | |
# http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html | |
# https://web.archive.org/web/20150312172727/http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html | |
# Usage: | |
# Run the script from a folder with file "all.mbox" |
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
import torch | |
def mel_filterbank( | |
n_freqs, | |
f_min, | |
f_max, | |
n_mels, | |
sample_rate, | |
norm=None, | |
mel_scale="htk" |
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
/** | |
* Regular expression to identify the null checker function within MakerSuite's code. | |
* @type {RegExp} | |
*/ | |
const NULL_CHECKER_REGEX = /function\(\){var a=new _\...,b=new ..;return _\.(..)\(a,..,1,b\)}/gm; | |
/** | |
* Default values for the control parameters. | |
* @type {object} | |
*/ |
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
import re | |
# Attempt to import requests and handle if it's missing | |
try: | |
import requests | |
requests_available = True | |
except ImportError: | |
requests_available = False | |
def create_download_url(): |
NewerOlder