some stuff
This commit is contained in:
parent
f0bcb58a63
commit
03b9ac3cd0
53
code_lint.md
Normal file
53
code_lint.md
Normal file
@ -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[]) {
|
||||
...
|
||||
```
|
3
ideas.md
Normal file
3
ideas.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Ideas
|
||||
|
||||
Here I can store all idea of writings I would like to do but haven't done/finished yet.
|
@ -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
|
||||
|
26
rpi_plan.md
Normal file
26
rpi_plan.md
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user