1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

Base: Move "js" and "little" HackStudio projects into ~/Source/

This commit is contained in:
Andreas Kling 2020-08-05 17:25:01 +02:00
parent bc615572a9
commit db450dbc44
28 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,17 @@
PROGRAM = little
OBJS = main.o
CXXFLAGS = -g
all: $(PROGRAM)
$(PROGRAM): $(OBJS)
$(CXX) -o $@ $(OBJS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -o $@ -c $<
clean:
rm $(OBJS) $(PROGRAM)
run:
./$(PROGRAM)

View file

@ -0,0 +1,4 @@
main.cpp
Makefile
little.hackstudio
test.frm

View file

@ -0,0 +1,26 @@
#include <stdio.h>
#include <sys/stat.h>
enum TestEnum {
ValueOne,
ValueTwo
};
struct MyStruct {
int x { -1 };
bool status { false };
TestEnum test_value { ValueOne };
};
int main(int, char**)
{
MyStruct my_struct;
my_struct.status = !my_struct.status;
printf("my_struct.x is %d\n", my_struct.x);
for (int i = 0; i < 3; ++i) {
// This is a comment :^)
printf("Hello friends!\n");
mkdir("/tmp/xyz", 0755);
}
return 0;
}

View file

@ -0,0 +1 @@
{"name":"Form1","widgets":[{"enabled":true,"forecolor":"#000000ff","ruler_visible":false,"autofill":false,"x":155,"tooltip":null,"height":121,"width":126,"y":10,"class":"GTextEditor","text":"Hi","backcolor":"#c0c0c0ff","visible":true},{"tooltip":null,"backcolor":"#c0c0c0ff","forecolor":"#000000ff","text":"Okydoky","class":"GButton","autofill":false,"enabled":true,"visible":true,"x":10,"height":21,"y":70,"width":81},{"tooltip":null,"backcolor":"#c0c0c0ff","forecolor":"#000000ff","class":"GGroupBox","autofill":true,"enabled":true,"visible":true,"title":"groupie","x":10,"height":71,"y":100,"width":141},{"tooltip":null,"forecolor":"#000000ff","y":10,"max":100,"autofill":false,"x":10,"min":0,"class":"GProgressBar","backcolor":"#c0c0c0ff","height":21,"enabled":true,"visible":true,"width":136,"value":50},{"tooltip":null,"backcolor":"#c0c0c0ff","forecolor":"#000000ff","text":"Looks like success!","class":"GLabel","autofill":true,"enabled":true,"visible":true,"x":10,"height":26,"y":35,"width":136},{"enabled":true,"forecolor":"#000000ff","checked":false,"autofill":false,"x":160,"tooltip":null,"height":26,"width":91,"y":140,"class":"GCheckBox","text":"checkbox_1","backcolor":"#c0c0c0ff","visible":true},{"enabled":true,"forecolor":"#000000ff","checked":false,"autofill":false,"x":160,"tooltip":null,"height":26,"width":61,"y":160,"class":"GRadioButton","text":"radio_1","backcolor":"#c0c0c0ff","visible":true},{"tooltip":null,"forecolor":"#000000ff","y":125,"max":100,"autofill":false,"x":25,"min":0,"class":"GSlider","backcolor":"#c0c0c0ff","height":26,"enabled":true,"visible":true,"width":116,"value":"60"}]}