aboutsummaryrefslogtreecommitdiff
path: root/config/projects.php
blob: 36a150e16421afed29c86124156e5da33e289b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
class ProjectURL {
    /**
     * @var string The name of the ProjectURL.
     */
    public $name;

    /**
     * @var string The URL of the ProjectURL.
     */
    public $url;

    /**
     * Bookmark constructor.
     * @param string $name The name of the ProjectURL.
     * @param string $url The URL of the ProjectURL.
     */
    public function __construct($name, $url) {
        $this->name = $name;
        $this->url = $url;
    }
}

class Project {
    /**
     * @var string The name of the project.
     */
    public $name;

    /**
     * @var string The description of the project.
     */
    public $description;

    /**
     * @var string The URL of the project.
     */
    public $url;

    /**
     * @var array Languages used in the project.
     */
    public $languages;

    /**
     * BookmarkCategory constructor.
     * @param string $name The name of the project.
     * @param string $description The description of the project.
     * @param string The URL of the project.
     * @param array  $languages Languages used in the project.s
     */
    public function __construct($name, $description, $url, $languages = array()) {
        $this->name = $name;
        $this->description = $description;
        $this->url = $url;
        $this->languages = $languages;
    }
}

class ProjectCategory {
    /**
     * @var string The name of the bookmark category.
     */
    public $name;

    /**
     * @var array An array of Project objects.
     */
    public $projects;

    /**
     * BookmarkCategory constructor.
     * @param string $name The name of the bookmark category.
     * @param array $projects An array of Project objects.
     */
    public function __construct($name, $projects = array()) {
        $this->name = $name;
        $this->projects = $projects;
    }
}


return [
    new ProjectCategory("Websites", [
        new Project(
            "diskfloppy.me",
            "The website you're looking at right now!",
            "https://github.com/floppydisk05/diskfloppy.me",
            [ "PHP", "CSS" ]),
        new Project(
            "NetDrivers",
            "Driver downloads website.",
            "https://github.com/floppydisk05/NetDrivers",
            [ "Ruby", "CSS" ])
    ]),
    new ProjectCategory("APIs", [
        new Project(
            "trivia-api",
            "API to serve random trivia questions.",
            "https://github.com/floppydisk05/trivia-api",
            [ "JavaScript" ]
        )
    ]),
    new ProjectCategory("Discord Bots", [
        new Project(
            "PlexBot",
            "A basic bot to play music from the configured Plex server in a Discord voice channel.",
            "https://github.com/floppydisk05/PlexBot",
            [ "Python" ]
        )
    ]),
    new ProjectCategory("Abandoned Projects", [
        new Project(
            "website-cf",
            "Rewrite of my personal website in Adobe ColdFusion.",
            "https://github.com/floppydisk05/website-cf",
            [ "Adobe ColdFusion" ]
        ),
        new Project(
            "WinBotJDA",
            "Rewrite of CamK06's WinBot using Java and DiscordJDA.",
            "https://github.com/floppydisk05/WinBotJDA",
            [ "Java" ]
        ),
        new Project(
            "delayed-eject",
            "Scripts which eject the cd drive a lot to annoy nick.",
            "https://github.com/floppydisk05/delayed-eject",
            [ "Shell", "C" ]
        ),
        new Project(
            "php-sound",
            "Plays a specified sound file or files on the web server when a php page is loaded.",
            "https://github.com/floppydisk05/php-sound",
            [ "PHP", "Shell" ]
        )
    ])
];