Skip to content

Instantly share code, notes, and snippets.

View izy521's full-sized avatar
👨‍💻
New Project Hype

Izy521 izy521

👨‍💻
New Project Hype
  • California
View GitHub Profile
@izy521
izy521 / mission1.go
Last active August 13, 2019 06:56
HENNGE GoLang Code Challenge
package main
import (
"bufio"
"os"
"strconv"
"fmt"
"log"
"strings"
)
@izy521
izy521 / main.js
Last active November 12, 2021 06:14
Use CTRL + Enter to send a Discord Embedified message. You'll need to provide your account token to the code, on line 3. Will be removed if you refresh. Highlighting a selection of your message will let you send only that as the embed, and the rest as a normal message.
(function start_embed_generator(window, document) {
var my_token = "-YOUR_TOKEN_HERE-";
var color_reg = /(\#.+?)(\s|$)/;
var text_bar_color = "rgb(92, 156, 199)";
window.addEventListener('keydown' , handle_event);
window.addEventListener('keyup' , revert_bar );
return !console.log("Embed generator up!");
@izy521
izy521 / archivechannel.js
Last active November 11, 2016 12:15
For use with >= 2.0
var Discord = require('discord.io');
var fs = require('fs');
var client = new Discord.Client({
token: "",
autorun: true
});
var channelToArchive = "",
channelToPost = ""
@izy521
izy521 / objectdeepcopy.js
Created July 30, 2016 17:28
`JSON.parse( JSON.stringify( obj) )` has been regarded as the fastest method for deep copying Objects, but is it? This is mainly just to test. Obviously Functions aren't allowed in JSON.
var Types = new Map();
Types.set(Array, function(v) {
var l = v.length; i = 0, a = Array(l);
for (i; i<l; i++) {
a[i] = v[i];
}
return a;
});
Types.set(Number, function(v) {
return v * 1;