- Lavalink-Client (JDA or generic, Java)
- LavaClient (Java)
- Lavalink.py (discord.py, Python)
- pylava (discord.py, Python)
- SandySounds (JavaScript)
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
module.exports = { | |
mentions: { | |
userOrMember: /^(?:<@!?)?(\d{17,19})>?$/, | |
channel: /^(?:<#)?(\d{17,19})>?$/, | |
role: /^(?:<@&)?(\d{17,19})>?$/, | |
snowflake: /^(\d{17,19})$/, | |
}, | |
misc: { | |
emoji: /^(?:<a?:\w{2,32}:)?(\d{17,19})>?$/, | |
username: /.{2,32}/, |
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
# Copyright 2020 Anish Shobith P S. | |
# | |
# This is just a little script that can be downloaded from the internet to | |
# install Java on Windows Operating system with chocolatey package manager | |
# Function to test if the script is running with adminstrative privileges | |
function Administrator-Test { | |
$CurrentUser = [Security.Principal.WindowsIdentity]::GetCurrent(); | |
(New-Object Security.Principal.WindowsPrincipal $CurrentUser).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator) | |
} |
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
/** | |
*@copyright 2021 Anish Shobith P S | |
*/ | |
import * as fetch from 'node-fetch'; | |
export type subRedditType = "top" | "hot" | "controversial" | "new" | "rising"; | |
/** | |
* Fetchs a subreddit with a limit to 100 responses | |
* @param {string} subreddit - subreddit you wanna fetch. |
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
/* Implementation of Quadratic Search in c++ | |
* Research Paper : https://research.ijcaonline.org/volume65/number14/pxc3886165.pdf | |
* Author : Parveen Kumar | |
* Code Author: Anish Shobith P S | |
*/ | |
#include<bits/stdc++.h> | |
class QuadraticSearch | |
{ | |
private: |
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 java.util.*; | |
class Item { | |
public double weight; | |
public double profit; | |
public double ratio; | |
Item(double weight, double profit) { | |
this.weight = weight; | |
this.profit = profit; |
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
{ | |
"types": [ | |
{"name":"Password","regexPattern":".*password.*", "sensitive":false, "onKey": true}, | |
{"name":"Username","regexPattern":".*username.*", "sensitive":true, "onKey": true}, | |
{"name":"token","regexPattern":".*token.*", "sensitive":true, "onKey": true}, | |
{"name":"secret","regexPattern":".*secret.*", "sensitive":true, "onKey": true}, | |
{"name":"database","regexPattern":".*database.*", "sensitive":true, "onKey": true}, | |
{"name":"db","regexPattern":".*db.*", "sensitive":true, "onKey": true} | |
] | |
} |
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
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Create two EC2 instances, one for cron and one for mongo | |
Resources: | |
CronInstance: | |
Type: AWS::EC2::Instance | |
Properties: | |
InstanceType: t2.micro | |
ImageId: ami-0123456789abcdef0 | |
SecurityGroups: | |
- !Ref CronSecurityGroup |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mDMEZWMBKxYJKwYBBAHaRw8BAQdAhAPsKm7gxfWJSsBaTpjV95Aosc1mODnJECGD | |
gZYVpoW0PEFuaXNoIFNob2JpdGggUCBTIChBU1VTLVJPRy1HMTQpIDxhbmlzaC5z | |
aG9iaXRoMTlAZ21haWwuY29tPoiTBBMWCgA7FiEEEwt8idxfwK+emVvx2JY2akuV | |
co4FAmVjASsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQ2JY2akuV | |
co4JnAD/VWD7yvyraMwXhie/r1XXcC4ieyetTZ1GziHDUu2HO5sA/AnJIW1S89Le | |
1VVdMDB0xZdKyXb+wTpmjRNSpjAS3VwHuDgEZWMBKxIKKwYBBAGXVQEFAQEHQFq3 | |
xj49LL+2B4n4oeHPBbIlXJhDeldbzXBvnetxGmV6AwEIB4h4BBgWCgAgFiEEEwt8 | |
idxfwK+emVvx2JY2akuVco4FAmVjASsCGwwACgkQ2JY2akuVco7GtAEA3++ccSxF |
OlderNewer