Skip to content

Instantly share code, notes, and snippets.

View boomboompower's full-sized avatar
🐧
LGTM

boomboompower boomboompower

🐧
LGTM
View GitHub Profile
@unnikked
unnikked / Brainfuck.java
Last active September 7, 2022 00:20
Tiny Brainfuck Interpreter Written in Java
import java.util.*;
public class Brainfuck {
private Scanner sc = new Scanner(System.in);
private final int LENGTH = 65535;
private byte[] mem = new byte[LENGTH];
private int dataPointer;
public void interpret(String code) {
int l = 0;
for(int i = 0; i < code.length(); i++) {
/**
Simple(ish) example of discord gateway
This code will get to ready, and then remain connected with heartbeats
see https://discordapi.com/topics/gateway for more info
zlib compression is implemented as it will be required in gateway v7 (so get used to it now)
*/
const WebSocket = require('ws'); // npmjs.org/ws
const zlib = require('zlib-sync'); // npmjs.org/zlib-sync
const erlpack = require('erlpack'); // github.com/discordapp/erlpack
@ssshake
ssshake / isWrit
Last active June 21, 2024 10:28
Photon PUN Cheat Sheet
## Photon Methods
**public class Blank : Photon.PunBehaviour**
instead of mono behavior, use this to receive photon callbacks in your script.
**public override void OnLeftRoom()**
An example of overriding a punbehavior callback
@Stalruth
Stalruth / stage_2021-12-18.md
Last active May 10, 2022 10:00
December 2021 Discord Developer stage
@NovaFox161
NovaFox161 / december-summary.md
Created December 17, 2021 21:00
DDevs Q&A Summary 17/12/2021

DDevs Q&A December 2021 Summary - Happy Holidays!

Forward

This is a nonexhaustive summary of the DDevs Q&A stage. Most of the points below are paraphrased for brevity. Ephasis is my own unless explicitly stated, and my opinions on certain things may shine through. Please refer to a VOD of the stage for the exact wording from the Discord Developers.

Upcoming Features (and demos if available)

  • Application Commands Permissions V2
    • "Super super super close"
    • Will not release before the holidays because fixing things on christmas is just not cool
  • Closed beta testing will occur after the holidays
@XYZenix
XYZenix / experiments.csv
Last active July 5, 2024 17:30
discord experiments
id name hash type
channel_categories 2070146447
recommend_mobile_notice RECOMMEND_MOBILE_NOTICE 1486371970
report-experiment Report Experiment 2207596622 user
survey_video_chat SURVEY_VIDEO_CHAT 3678716185
search_experiment_dm 1770646087
search_experiment_dm_canary 612745901
search_experiment_guild 2512661867
search_experiment_guild_2 2937879064
search_experiment_guild_canary 3007049259
@OrionReed
OrionReed / dom3d.js
Last active July 18, 2024 03:49
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯