Skip to content

Instantly share code, notes, and snippets.

View ryanwarsaw's full-sized avatar

Ryan Warsaw ryanwarsaw

View GitHub Profile
{
"quiz-log": [
{
"week-id": "0",
"completed-date": "05-24-18",
"attempts": [
[0, "i don't understand this quiz"],
[2, "i feel great"]
]
},
@ibrahima
ibrahima / CodeBlock.jsx
Last active December 3, 2020 10:23
Syntax highlighting for react-markdown
import React from 'react';
import PropTypes from 'prop-types';
import SyntaxHighlighter from 'react-syntax-highlighter';
export default class CodeBlock extends React.PureComponent {
static propTypes = {
value: PropTypes.string.isRequired,
language: PropTypes.string,
}
@rcx
rcx / delete-all-messages.js
Last active November 9, 2023 19:12 — forked from niahoo/delete-all-messages.js
Delete all your messages in a Discord channel
/*
* Discord: Don't copy stuff into this box
* Me: dOn'T COpy sTuFf iNtO tHIs bOx
*/
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) {
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") {
alert("Oops! You forgot to set the guild_id. Please fill it in.")
return;
}
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") {