Skip to content

Instantly share code, notes, and snippets.

View timcole's full-sized avatar
🦄

Timothy Cole timcole

🦄
View GitHub Profile
{
"name": "DZ60RGB ANSI V2",
"vendorProductId": 1146753569,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_GESC",
"KC_1",
"KC_2",
"KC_3",
@timcole
timcole / README.md
Last active May 3, 2022 17:12
Spotify now playing via Phineas/lanyard with ComputerCraft

Spotify now playing via Phineas/lanyard with ComputerCraft

There was no reason for me to waste time making this by friends and I were playing Create: Above and Beyond and I was bored.

@timcole
timcole / Hiven_Perms.ipynb
Created August 29, 2021 13:16
Example for calculating hiven permissions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timcole
timcole / eventsub-clear.ts
Created December 15, 2020 12:34
Clear all events in Twitch's Eventsub API
import fetch from 'node-fetch';
async function main(): Promise<void> {
let cursor: string | undefined;
do {
const { pagination, total, data } = await getEvents(cursor);
cursor = pagination?.cursor;
console.log(cursor, total, data.length);
@timcole
timcole / octotree-theme.css
Last active December 8, 2020 22:21
Makes octotree match githubs theme
@-moz-document url-prefix("https://github.com/") {
.octotree-sidebar.octotree-github-sidebar .octotree-view-header,
.octotree-sidebar.octotree-github-sidebar .octotree-footer,
.octotree-sidebar.octotree-github-sidebar .octotree-views .octotree-tree-view .jstree-default .jstree-wholerow-clicked,
.octotree-sidebar.octotree-github-sidebar .octotree-views .octotree-tree-view .jstree-default .jstree-wholerow-hovered,
.octotree-sidebar.octotree-github-sidebar .octotree-bookmark__item:hover,
.octotree-sidebar.octotree-github-sidebar .octotree-bookmark__search,
.octotree-tabs-nav__bar::before,
.octotree-tabs-nav__bar .octotree-tabs-nav__item.active,
.octotree-tabs-nav__bar .octotree-tabs-nav__item::after,
@timcole
timcole / deno-one-dark.css
Created May 20, 2020 12:42
One Dark Pro for deno.land
@-moz-document url-prefix("https://deno.land/") {
:root {
--border: #262831bd;
--background: #313440;
--text: #dee2f7;
--sidebar: #262831;
--sidebar_text: #9ea1b3;
--magenta: #bb7ed7;
--red: #d27277;
@timcole
timcole / log.js
Last active February 16, 2020 00:22
Custom Log Example
export function Log(caller = "Router", ...logs) {
console.log(
`%c Notify.me %c ${caller} `,
"background: #a36ad8; color: #e8e8e8; border-radius: 3px 0 0 3px;",
"background: #6e4693; color: #e8e8e8; border-radius: 0 3px 3px 0;",
...logs
);
}
@timcole
timcole / alerts.ts
Last active October 5, 2021 04:08
Twitch Activity Alerts Example
class PubSub {
private url: string = "wss://pubsub-edge.twitch.tv";
protected connection: WebSocket;
private heartbeat: number;
private topic: string;
constructor(channel: number) {
this.topic = `dashboard-activity-feed.${channel}`;
this.connection = new WebSocket(this.url);
@timcole
timcole / keybase.md
Last active March 25, 2019 23:26
keybase.md

Keybase proof

I hereby claim:

  • I am timothycole on github.
  • I am modesttim (https://keybase.io/modesttim) on keybase.
  • I have a public key ASAvJ_a2NROBCn_ZqsXp9oVSRF38gaSQao7XASiLDDp_Dwo

To claim this, I am signing this object:

.chat-header {
padding: 16px 15px;
}
.chat-title {
font-size: 14px;
}
#chat-messages {
font-family: "Dank Mono";