Skip to content

Instantly share code, notes, and snippets.

@maxminlevel
maxminlevel / why-newline.md
Created May 25, 2023 04:28 — forked from OleksiyRudenko/why-newline.md
Why should text files end with a newline?

Why should text files end with a newline?

Reasons:

  • UNIX standard
  • If the last line in a file doesn't end with a newline then addition of next line affects two lines instead of one. This also pollutes diff on multiple files, so reader may wonder what has changed in a line whereas no significant change has occured.

Multiple newlines at the file end are also redundant as well as spaces at the end of line.

Academic/Background
------------------------------------------------------------------------------------------------------------
Software Architecture, Perspectives on an emerging discipline - Mary Shaw, David Garlan
Introduction / Practice within Business
------------------------------------------------------------------------------------------------------------
Software Architecture in Practice - Len Bass, Paul Clements, Rick Kazman
In depth handbook for reaching requirements
------------------------------------------------------------------------------------------------------------
@maxminlevel
maxminlevel / .bash_alias
Created July 20, 2022 07:29
Setup new enviroment
# Calculator
alias bc="bc -l"
# Clear
alias c="clear"
alias cl="clear"
alias ckear="clear"
alias clr="clear"
# Change Directories
THE DRINKWARE LICENSE
Maxminlevel wrote this file. As long as
you retain this :x:tice you can do whatever you want
with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me the following
drink(s) in return.
Red Bull
Coffee
@maxminlevel
maxminlevel / init_work.sh
Created April 27, 2022 06:26
Run in parent dir to stash all uncommit code and git pull
#!/bin/bash
set -e
echo "Setup work"
cd "PATH_YOUR_WORK_FOLDER"
folders=$(ls)
for folder in ${folders}; do
echo ${folder}
cd ${folder}
git stash
@maxminlevel
maxminlevel / colors.xml
Last active November 16, 2021 03:05
Color resouce file for Android Project
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="ivory">#FFFFF0</color>
<color name="light_yellow">#FFFFE0</color>
<color name="yellow">#FFFF00</color>
@maxminlevel
maxminlevel / reactjs-interview-tips.md
Created July 7, 2020 02:00 — forked from paulnguyen-mn/reactjs-interview-tips.md
Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

From unplash.com

AGENGA:

  1. Một vài lưu ý chung
  2. Ôn tập kiến thức JS/ReactJS
  3. Cày thuật toán, giải thuật
  4. Tìm hiểu về công ty mà mình xin ứng tuyển