Skip to content

Instantly share code, notes, and snippets.

@pineapplebox
pineapplebox / BFjs.md
Last active January 18, 2022 14:58
A 158-byte JS Brainf*ck interpreter

BF.js

Summary

After realizing how bloated most available Javascript brainf*ck interpreters are, I created BF.js- what I believe to be the smallest brainf*ck interpreter built with JS (158 bytes). Please let me know if there are any possible improvements to the code, or if there are any smaller interpreters in JS.

for(a=[p=x=i=0],r="";l=s[i++];">"==l?p++:"<"==l?p--:"+"==l?a[p]++:"-"==l?a[p]--:"."==l?r+="&#"+v:","==l?a[p]=~~prompt():"["==l?x=i:"]"==l&&v>0?i=x:x)v=a[p]|=0

Interpreter with nested loop support (178 bytes):

for(x=[r=""],a=[p=i=c=0];l=s[i++];">"==l?p++:"<"==l?p--:"+"==l?a[p]++:"-"==l?a[p]--:"."==l?r+="&#"+v:","==l?a[p]=~~prompt():"["==l?x[c++]=i:"]"==l&&0<v?i=x[c---1]-1:c--)v=a[p]|=0
@pineapplebox
pineapplebox / Kahoot Flooder v2.md
Last active November 9, 2021 17:44
Instruction/Help page for my Kahoot Flooder Chrome extension

Kahoot Flooder v2

Kahoot Code

Your 7-digit kahoot PIN, in order to join the game.

Ex: 3475629

Bot Name

Hangouts v2 Chrome Extension

Install Instructions

  1. Download the extension .zip file
  2. Navigate to chrome://extensions/
  3. Check to make sure developer is enabled, if not enable it as shown:

Enable developer Mode

  1. Open the file manager app, and drag-and-drop the hangouts.zip file into the chrome extensions page
#!/bin/bash
# Copyright 2015 Will Webberley
# Very simple script to manage a Minecraft server.
#
# Needs a Java runtime, tmux to handle the process, wget to update, and tar to compress backups.
#
# Run with 'help' flag to see a list of available commands.
MINECRAFT_DIR="$HOME"
@pineapplebox
pineapplebox / aac.c
Last active September 11, 2019 22:15
/* AAC - The most powerfull DoS tool with port randomization*/
/* Compile: */
/* gcc -o aac aac.c */
/* Usage: */
/* ./aac <ip> <port> */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
id name
-1 Northern Cyprus; 21.48 Mpbs
-2 Kosovo; Unknown
-3 Somaliland; Unknown
4 Afghanistan; 5.29 Mbps
8 Albania; 16.91 Mbps
10 Antarctica; Unknown
12 Algeria; 3.62 Mbps
16 American Samoa; Unknown
20 Andorra; Unknown
@pineapplebox
pineapplebox / tightcoin
Created April 27, 2018 01:29
tightcoin
<h1>TightCoin</h1>