Skip to content

Instantly share code, notes, and snippets.

View ckiee's full-sized avatar

mei🌒 ckiee

View GitHub Profile
@ckiee
ckiee / first.ts
Last active January 8, 2018 13:58
My *first* TypeScript app, woo!
// This app is not intended to hurt any business, brand and/or person. This was made for educational purposes only.
enum BoopType {
BeepyBoop,
DankBoop,
DarkSoulBoop
}
class Boop {
name: string;
type: BoopType;
const fs = require("fs") ;
const code = fs.readFileSync("kslaslala.js").toString().split("\r").join("") ;
const validChars = "{;})".split("") ;
const lines = code.split("\n") ;
let badchars = "" ;
for (let line of lines) {
console.log(padCharToEnd(line) )
}
/**
* @param {String} line
@ckiee
ckiee / badbots.txt
Last active July 8, 2018 19:34
Collection of Bad Discord Bot IDs - send me a message on twitter if there's a false positive
337080129954119680 MASS DM
351883492424024074 MASS DM
402153479164002305 MASS DM
369158719738478592 MASS DM
419819751469088769 MASS DM
367075441879547904 MASS DM
412657792785317918 MASS DM
369666476686442507 MASS DM
425005732338073600 MASS DM
403032412847603722 MASS DM
@ckiee
ckiee / packages.txt
Created July 3, 2018 07:55
packages you need for node-canvas on arch linux
https://www.archlinux.org/packages/extra/x86_64/cairo/
https://www.archlinux.org/packages/extra/x86_64/libjpeg-turbo/
https://www.archlinux.org/packages/extra/x86_64/pango/
https://www.archlinux.org/packages/extra/x86_64/giflib/
https://www.archlinux.org/groups/x86_64/base-devel/
pacman -S base-devel cairo libjpeg-turbo pango giflib
# untested code
@ckiee
ckiee / cloudSettings
Last active May 1, 2020 15:17
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-05-01T15:17:48.335Z","extensionVersion":"v3.4.3"}
#include <FastLED.h>
#include <EEPROM.h>
// How many leds in your strip?
#define NUM_LEDS 60
// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
#define DATA_PIN 3
#define CLOCK_PIN 13
@ckiee
ckiee / bug.v
Created November 29, 2019 05:50
fn main() {
}
struct Example {
cb fn(int, bool) int
}
fn foo(cb fn(int, bool) int) Example {
println(cb(5, true)) // NO ERROR
return Example {
cb: cb
@ckiee
ckiee / structure_importer2.js
Created April 18, 2020 11:47
patched version of the structure_importer plugin for blockbench that works well on linux
var plugin_data = {
id: "structure_importer2",
title: "Structure Importer (patched)",
icon: "restore_from_trash", //Material icon name
author: "JannisX11 & Krozi",
description: "Import structure files",
version: "2.0.2", //Plugin version
variant: "both", // 'both', 'web', 'desktop'
};
@ckiee
ckiee / gh-nixpkgs.js
Last active May 25, 2021 13:26
Add a nixpk.gs quick link on nixpkgs github PRs
// ==UserScript==
// @name GitHub nixpk.gs
// @namespace http://tampermonkey.net/
// @version 0.1
// @description add a nixpk.gs quick link on nixpkgs github PRs
// @author ronthecookie <me@ronthecookie.me>
// @match https://github.com/NixOS/nixpkgs/pull/*
// @icon https://www.google.com/s2/favicons?domain=github.com
// @grant none
// ==/UserScript==