Skip to content

Instantly share code, notes, and snippets.

View Kampfkarren's full-sized avatar
🐶
Doge

boyned//Kampfkarren Kampfkarren

🐶
Doge
View GitHub Profile
@Kampfkarren
Kampfkarren / testez-selene.md
Last active June 5, 2022 02:26 — forked from nezuo/testez-selene.md
TestEZ standard library for selene

Instructions

  1. Copy the file below into one called testez.yml
  2. In selene.toml, replace std = "roblox" with std = "roblox+testez"
# This file was @generated by generate-roblox-std at 2022-06-04 18:09:36.972430600 -07:00
---
base: lua51
name: roblox
globals:
Axes.new:
args:
- type: "..."
BrickColor.Black:
args: []
local function curryWithNumberOfArgs(callback, numArgs)
local function curried(...)
local passedArgs = table.pack(...)
if passedArgs.n > numArgs then
error("too many arguments passed to curried function (called after already ran)")
elseif passedArgs.n == numArgs then
return callback(...)
end
local weakInstanceTable = {}
weakInstanceTable.__tostring = "<Weak Instance Table>"
function weakInstanceTable:__newindex(key, value)
assert(typeof(key) == "Instance", "keys need to be an Instance")
assert(key:IsDescendantOf(game), "key is not a descendant of the DataModel")
rawset(self, key, value)
key.AncestryChanged:connect(function()
if not key:IsDescendantOf(game) then
use lazy_static::lazy_static;
use std::collections::{HashMap, HashSet};
use std::env;
use std::fs;
use std::path::{Component, Path};
use std::process;
use walkdir::WalkDir;
lazy_static! {
static ref SOURCE: &'static str = option_env!("SOURCE_LANGUAGE").unwrap_or("en-us");
@Kampfkarren
Kampfkarren / rbxsync2rojo.rs
Created August 19, 2018 00:33
A tool used to rename all RbxSync-formatted names to Rojo-formatted names
extern crate walkdir;
use std::env;
use std::fs;
use std::path::Path;
use walkdir::WalkDir;
fn main() -> std::io::Result<()> {
println!("RbxSync -> Rojo name format");
@Kampfkarren
Kampfkarren / rojocoverage.rs
Created August 18, 2018 16:10
An internal tool used to track how much of my game's code is on Rojo. Also my first experience writing Rust.
extern crate regex;
extern crate serde_json;
extern crate walkdir;
use regex::Regex;
use serde_json::{ Value };
use std::env;
use std::fs;
use std::path::Path;
use walkdir::WalkDir;
//written entirely by boyned
//doesnt take any inputs bc im using coderpad
#include <stdio.h>
#include <string.h>
#define TAPE_LEN 256
#define ECHO_BEHAVIOR 0 //0 - ASCII (real bf), 1 - actual number
void brainfuck(const char* code){
@Kampfkarren
Kampfkarren / brainfuck-with-bubsy.c
Last active March 8, 2017 05:10
a brainfuck interpreter i wrote with a friend with comments everywhere
/*
> - moves to the next index
< - moves to the previous index
+ - increases the current index's value by one
- - decreases the current index's value by one
. - prints the ascii character of the current index
, - takes an input of a single character and sets the current value to that character (doesn't print it tho)
[ - if the current value isn't 0, start loop. otherwise, go to ]
] - end of loop
*/
"use strict";
/*
npm install discord.js
make a file with config.json that looks like this
{
"email": "botemail",
"password": "password"
}