This file contains hidden or 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 Discord = require('discord.js'); | |
const R = require('ramda'); | |
const bot = new Discord.Client(); | |
const request = require('request'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const mkdirp = require('mkdirp'); | |
const prog = require("commander"); |
This file contains hidden or 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 Discord = require("discord.js") | |
import fs = require("fs"); | |
import path = require("path"); | |
namespace ISeeEverything { | |
enum LogType { | |
MESSAGE_SENT, | |
MESSAGE_EDITED, | |
MESSAGE_DELETED, | |
USER_JOINED, |
This file contains hidden or 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
template <class T> | |
class EventHandler | |
{ | |
vector<void(*)(Event<T>&)> subs; | |
public: | |
EventHandler::EventHandler(); | |
void EventHandler::subscribe(void(*handler)(Event<T>&)); | |
void EventHandler::emit(Event<T> value); | |
}; |
This file contains hidden or 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
String.prototype.shuffle = function () { | |
var a = this.split(""), | |
n = a.length; | |
for(var i = n - 1; i > 0; i--) { | |
var j = Math.floor(Math.random() * (i + 1)); | |
var tmp = a[i]; | |
a[i] = a[j]; | |
a[j] = tmp; |
This file contains hidden or 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
String.prototype.shuffle = function () { | |
var a = this.split(""), | |
n = a.length; | |
for(var i = n - 1; i > 0; i--) { | |
var j = Math.floor(Math.random() * (i + 1)); | |
var tmp = a[i]; | |
a[i] = a[j]; | |
a[j] = tmp; |
This file contains hidden or 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
class Fraction | |
@top | |
@bot | |
# top is the x in (x/n) | |
# bot is the n in (x/n) | |
def initialize top, bot | |
@top = top |
NewerOlder