Skip to content

Instantly share code, notes, and snippets.

@hyonschu
hyonschu / deleteDiscordMessages.js
Created July 11, 2019 19:36 — forked from victornpb/deleteDiscordMessages.js
Delete all your messages from DM or Channel in Discord
//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 April 26, 2016 03:49
Tufte Minimal Line Plot
@hyonschu
hyonschu / README.md
Created April 26, 2016 03:45
Tufte slopegraph
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;
// 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 {
<!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;
"""
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
<?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 November 6, 2014 16:08
Tributary inlet
@hyonschu
hyonschu / _.md
Last active August 29, 2015 14:08
Tributary inlet