From 03b9ac3cd079d692f2dcf2c08340d84389cc0903 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Thu, 11 May 2023 21:36:11 +0200 Subject: [PATCH] some stuff --- code_lint.md | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ ideas.md | 3 +++ projects.md | 1 + rpi_plan.md | 26 ++++++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 code_lint.md create mode 100644 ideas.md create mode 100644 rpi_plan.md diff --git a/code_lint.md b/code_lint.md new file mode 100644 index 0000000..a14ba67 --- /dev/null +++ b/code_lint.md @@ -0,0 +1,53 @@ +# My coding style + +For my years of programming in different language I sort of got a coding style in different language that I more or less follows. +The problem is that I'm not really so consistent with it. + +## Defining a scope + +For Languages that uses Brackets {} or something similar to define their scope, +the opening bracket should be on the same line as the definition and +the closing bracket should be on a separate line. + +for instance: + +```c + ... + +bool move(double x, double y){ + if(x - y < 0){ + x = y; + return false; + } + y = x; + return true; +} + +int main(int argc, char *argv[]) { + ... +``` + +but, if the conditional statement before is on multiple line then the openning bracket should be on a new line. +This help differientiate between the condition and the actual scope + +for instance: + + +```java + ... + +boolean move(Vec2 position){ + if(position.blocked && + position.empty && + something.else()) + { + position.setPos(x, y); + return false; + } + this.position = position; + return true; +} + +int main(int argc, char *argv[]) { + ... +``` diff --git a/ideas.md b/ideas.md new file mode 100644 index 0000000..3fd9ade --- /dev/null +++ b/ideas.md @@ -0,0 +1,3 @@ +# Ideas + +Here I can store all idea of writings I would like to do but haven't done/finished yet. diff --git a/projects.md b/projects.md index 7907665..608dd80 100644 --- a/projects.md +++ b/projects.md @@ -24,3 +24,4 @@ Here I will list my current idea of projects and a brief description of what the - [ ] ClientLess Games - [ ] Clicker general - [ ] MMORPG +- [ ] Hack linkito diff --git a/rpi_plan.md b/rpi_plan.md new file mode 100644 index 0000000..8367ed8 --- /dev/null +++ b/rpi_plan.md @@ -0,0 +1,26 @@ +# Raspberry pi plans for home + +## Goals + +- Tv with kodi + - Streaming Services + - Media Center +- Control with phone +- File Storage +- VPN + - Pi Hole +- Network monitor (later) +- Music streaming +- Voice recognition (later) +- mi magic cube controller (later) + +## Software + +- Kodi +- Samba +- filerun +- PiHole +- spotifyd +- self-made interface for remote (TODO) +- self-made app with xiami +