Compare commits
No commits in common. "03b9ac3cd079d692f2dcf2c08340d84389cc0903" and "b80755a4984d82e0f21b0f416cb557c67d78d650" have entirely different histories.
03b9ac3cd0
...
b80755a498
53
code_lint.md
53
code_lint.md
@ -1,53 +0,0 @@
|
|||||||
# 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
3
ideas.md
@ -1,3 +0,0 @@
|
|||||||
# Ideas
|
|
||||||
|
|
||||||
Here I can store all idea of writings I would like to do but haven't done/finished yet.
|
|
@ -21,7 +21,3 @@ Here I will list my current idea of projects and a brief description of what the
|
|||||||
|
|
||||||
# Ideas
|
# Ideas
|
||||||
|
|
||||||
- [ ] ClientLess Games
|
|
||||||
- [ ] Clicker general
|
|
||||||
- [ ] MMORPG
|
|
||||||
- [ ] Hack linkito
|
|
||||||
|
26
rpi_plan.md
26
rpi_plan.md
@ -1,26 +0,0 @@
|
|||||||
# 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