Skip to content

Instantly share code, notes, and snippets.

@hyonschu
hyonschu / deleteDiscordMessages.js
Created Jul 11, 2019 — 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 <https://www.github.com/victornpb>
* @see https://gist.github.com/victornpb/135f5b346dea4decfc8f63ad7d9cc182
@hyonschu
hyonschu / README.md
Created Apr 26, 2016
Tufte Minimal Line Plot
@hyonschu
hyonschu / README.md
Created Apr 26, 2016
Tufte slopegraph
View README.md
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
// GO AHEAD AND POPULATE THE TEXT
var unstack = function(obj) {
var tmp = Math.round(obj);
if (tmplist.indexOf(tmp)>=0) {
while (tmplist.indexOf(tmp)>=0) {
tmp++
}
tmplist.push(tmp)
} else {
View gist:d2909d7eebac1199933a0aca7e2b61bc
<!DOCTYPE html>
<html>
<head><meta charset="UTF-8">
<title>Page Titles</title>
<script src='lib/d3.min.js'>
</script>
<style>
div.bar {
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
http://www.apache.org/licenses/LICENSE-2.0
@hyonschu
hyonschu / _.md
Created Nov 6, 2014
Tributary inlet
View _.md
@hyonschu
hyonschu / _.md
Last active Aug 29, 2015
Tributary inlet
View _.md