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
using System; | |
using System.Collections.Generic; | |
using System.Collections.Concurrent; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using DSharpPlus; | |
using DSharpPlus.CommandsNext; | |
using DSharpPlus.CommandsNext.Attributes; | |
using System.Threading; |
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
const fs = require("fs"); | |
const path = require("path"); | |
function getfiles(root, recursive) | |
{ | |
var temp = fs.readdirSync(root); | |
var result = []; | |
for(const str of temp) { | |
try { |
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 YoutubeSkipAd | |
// @version 1.6.3 | |
// @description Automatic skip-ad and hide in youtube. | |
// @author FRNathan13 | |
// @include /(http|https):\/\/www.youtube.com\/(.*) | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
namespace System.IO | |
{ | |
public static class StreamHelper | |
{ | |
public static T Read<T>(this Stream stream, Func<byte[], int, T> converter) | |
where T : struct |
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
----------POSSIBLE OPTIONS---------------------------------------------- | |
--account : [optional] account name to login with | |
--key : [optional] connection key for the server (defaults to 1 in debug) | |
--automationRoutine : [optional] automation routine to run after login | |
--startAutomationGraph : [optional] start up and execute automation global graph using provided guid | |
--gatherEffectStats : [optional] enables effect stat gathering | |
--noautoconnect : [optional] Do not automatically connect to a server | |
--fastQuit | |
--dumpAssetNames : Write to <file> a JSON map of GUID (String "0xabc...") to asset name for all soft assets | |
--startPosition : [optional] start position when joining a map |
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
namespace WarfaceEmulator.Services | |
{ | |
public class DatabaseService | |
{ | |
public MongoClient Client { get; } | |
public IMongoDatabase Database { get; } | |
public DatabaseService() | |
{ | |
this.Client = new MongoClient(new MongoClientSettings |
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
declare module 'ltx' { | |
import { EventEmitter } from "events"; | |
export class Element { | |
name: String; | |
parent?: Element; | |
children: Array<Element>; | |
attrs: any; | |
constructor(name: String, attrs: any); |
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
public delegate Task ApplicationAssetsDownloaderEventHandler(DiscordApplicationAsset asset); | |
class ApplicationAssetsDownloader : IDisposable | |
{ | |
private ConcurrentQueue<DiscordApplicationAsset> _a; | |
private ZipArchive _ar; | |
private MemoryStream _ms; | |
public event ApplicationAssetsDownloaderEventHandler DownloadStartedAsync; | |
public event ApplicationAssetsDownloaderEventHandler DownloadCompletedAsync; |
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
namespace User32 | |
{ | |
public static class MessageBox | |
{ | |
[DllImport("user32.dll")] | |
static extern int MessageBoxA(IntPtr hWnd, | |
string lpText, | |
string lpCaption, | |
uint uType); |
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
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Text; | |
using System.Threading.Tasks; | |
using DSharpPlus.CommandsNext; | |
using DSharpPlus.Entities; | |
namespace DSharpPlus | |
{ |