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 ruby | |
AUTH_TOKEN = ENV["DISCORD_TOKEN"] | |
OUTPUT_DIR = "./emoji-archive" | |
SERVER_LIST = [ | |
# List of server IDs here | |
] | |
require 'net/http' |
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
/** | |
* @name Mij_Discord | |
* @version 0.2 | |
* @author Mijyuoon | |
* @description Mijyuoon's simple Discord theme | |
*/ | |
:root { | |
--old-green: #43b581; | |
--info-positive-foreground: var(--old-green); | |
--status-positive-background: var(--old-green); |
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
local mt_wraptxt = {} | |
mt_wraptxt.__index = mt_wraptxt | |
scr.META_WordWrapper = mt_wraptxt | |
local worditer | |
local CK_NONE = 0 | |
local CK_SPACE = 1 | |
local CK_TAB = 3 | |
local CK_LINE = 2 |
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
CREATE OR REPLACE FUNCTION | |
markov_learn(a_chain BIGINT, a_source TEXT) RETURNS VOID | |
AS $$ | |
DECLARE | |
t_depth INTEGER; | |
t_index INTEGER; | |
t_words TEXT[]; | |
BEGIN | |
t_depth := a_chain & 7; | |
t_words := array_remove(regexp_split_to_array(a_source, E'\\s+'), ''); |
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
require 'optparse' | |
require 'parslet' | |
require 'erubis' | |
module DicGen | |
# Dummy interface for node values | |
module NodeValue | |
def nodes(*) | |
enum_for(:nodes) unless block_given? |
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.Globalization; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TestProject { | |
public static class WinAPI { |
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 Microsoft.Win32; | |
namespace IntelDPSTDisable { | |
class Program { | |
static string RegPath = @"System\{0}\Control\Class\{{4d36e968-e325-11ce-bfc1-08002be10318}}\{1}"; | |
static string[] CSs = new[] { "ControlSet001", "CurrentControlSet" }; | |
static string[] IDs = new[] { "0000", "0001" }; | |
static string FeatValue = "FeatureTestControl"; |
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
require 'rest-client' | |
require 'json' | |
require 'time' | |
require 'digest/sha1' | |
require 'fileutils' | |
TARGET_CHAN = "CHANNEL_ID" | |
ARCHIVE_FROM_ID = nil # or "MESSAGE_ID" | |
ARCHIVE_UNTIL = Time.parse "2018-01-01" | |
BATCH_MIN_WAIT = 5.000 |
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
Shitty English v0.3 | |
=================== | |
Noun Cases | |
---------- | |
NOM -Ø | |
GEN -(e)s | |
ACC -(e)m | |
DAT -(e)t | |
INS -with |
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.ComponentModel; | |
using System.Runtime.CompilerServices; | |
namespace Mijyuoon.MVVM { | |
public abstract class BaseModel : INotifyPropertyChanged { | |
#region INotifyPropertyChanged | |
public event PropertyChangedEventHandler PropertyChanged; |
NewerOlder