Types | |
---|---|
Unsigned | uint, u8, u16, u32, u64 |
Signed | sint, s8, s16, s32, s64 |
Floats | TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRC=*.c | |
OBJ=$(SRC:.c=.o) | |
DEP=$(OBJ:.o=.d) | |
TARGET=myprogram | |
.PHONY: all clean | |
all: $(TARGET) | |
$(TARGET): $(OBJ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
i recommend using the browser console for all of this (specifically in discord to avoid CORS issues) | |
get emotes in a string like the following | |
":yes::wmay::waveboye::wavebackboye::vibe::uwu_seal::uwu::turtwo::thonkdead::thonk::this::starkiwmi::starewut::starewow:" | |
no line breaks or anything | |
NOTE: you will need to do this in multiple batches | |
*/ | |
emotes_raw = `<insert_emotes_here>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef ScarfDesign struct { | |
Pattern []byte | |
Length int | |
} | |
// If main throws an error, the return code will be set accordingly | |
fn main() { | |
// Try will use the default error message if catch is not used | |
{pattern, length} := try ReadDesign() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/ioctl.h> | |
#include <stdio.h> | |
#include <sys/poll.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct str_sized { | |
size_t size; | |
char* str; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
usage() { | |
cat << EOF | |
usage: power.sh -i BATTNAME [property] | |
power.sh -e | |
power.sh -h | |
EOF | |
} | |
help() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
// Define class for quick object store | |
class QuickStore { | |
constructor(loc="quickstore.json") { | |
this.loc = loc; | |
this.memObj = {}; | |
this.queue = []; | |
try { | |
this.memObj = JSON.parse(fs.readFileSync(this.loc)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"colorsEnabled": true, | |
"defaultConf": { | |
"info": { | |
"enabled": false, | |
"color": "Blue" | |
}, | |
"warning": { | |
"enabled": true, | |
"color": "Yellow" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>hi</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(map(lambda x: map(lambda y: x.counts=x.count(y), x.triggers), tasks)) |