Skip to content

Instantly share code, notes, and snippets.

hyonschu / deleteDiscordMessages.js
Created July 11, 2019 19:36 — forked from victornpb/deleteDiscordMessages.js
Delete all your messages from DM or Channel in Discord
View deleteDiscordMessages.js
//Paste this function in DevTools console inside Discord
* Delete all messages in a Discord channel or DM
* @param {string} authToken Your authorization token
* @param {string} authorId Author of the messages you want to delete
* @param {string} channelId Channel were the messages are located
* @param {string} afterMessageId Only delete messages after this, leave blank do delete all
* @author Victornpb <>
* @see
hyonschu /
Created April 26, 2016 03:49
Tufte Minimal Line Plot
hyonschu /
Created April 26, 2016 03:45
Tufte slopegraph
View gist:c10025d7cb17beb1bd237f9b6ddf01b8
d3.csv('cancer_survival_rates.csv', function(csv) {
var dataset = []
for (var i=0; i<csv.length; i++) {
// console.log(data[i])
dataset.push( csv[i] )
// // layout variables
var pad = 50;
var hh = 1200;
View gist:f44e880d7d7ebd3c88fada93529e8257
var unstack = function(obj) {
var tmp = Math.round(obj);
if (tmplist.indexOf(tmp)>=0) {
while (tmplist.indexOf(tmp)>=0) {
} else {
View gist:d2909d7eebac1199933a0aca7e2b61bc
<!DOCTYPE html>
<head><meta charset="UTF-8">
<title>Page Titles</title>
<script src='lib/d3.min.js'>
<style> {
display: inline-block;
width: 20px;
View gist:57f9cefda245337d8b5d
this was done using make sysinstall on a Retina MacBook Pro 2015
### in ipython ###
args = parser.parse_args()
### output
2016-02-15 10:59:21,891 - neon.backends.nervanacpu - WARNING - Problems inferring BLAS info, CPU performance may be suboptimal
View gist:882056e8660748a9f565
<?xml version="1.0" encoding="UTF-8" ?>
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
hyonschu /
Created November 6, 2014 16:08
Tributary inlet
hyonschu /
Last active August 29, 2015 14:08
Tributary inlet