Skip to content

Instantly share code, notes, and snippets.

View straybro's full-sized avatar
🐢
418 I'm a teapot

straybro straybro

🐢
418 I'm a teapot
View GitHub Profile
@straybro
straybro / gitBash_windows.md
Created April 25, 2020 04:30 — forked from evanwill/gitBash_windows.md
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@straybro
straybro / PHP Overview.md
Created April 20, 2020 23:43 — forked from gnithin/PHP Overview.md
The good and the bad and the ugly of PHP

What I don't like about php -

  • Different extensions for mysql (There has to be only one proper way to do stuff and migrating between them is HARD)
  • Using references introduces a bucket-load of hard to debug bugs - (Eg: Always set the ref as null after using it, especially when used inside a foreach )
  • Library bugs ( Eg: mb_substr has length param as upper bound on number of CHARs to use (Even if encoding is provided). It's actually the number of bytes, the community doesn't accept that as an error, but it was supposedly intended )
  • utf8_encode is badly named. It's supposed to convert from ISO-8859-1 to utf-8. It ain't a magic wand.
  • Inconsistency in function details. For example -
    array_map	 ( callable $callback, array $array1...)
    array_filter ( array $array, callable $callback...)
    
@straybro
straybro / post.md
Created March 22, 2020 02:23 — forked from maestrow/post.md
Теория категорий в программировании
@straybro
straybro / ilya-klimov-component.md
Created March 22, 2020 02:03 — forked from vre2h/ilya-klimov-component.md
Ilya's tips on good react code.

Tips

Note, all fields tagged with (?) symbol are my assumptions and can be discussed.

The component is good if it has good goals.

  • Criterias
    • Encapsulation
      • Private fields (?)
      • Closure (?)
  • Normalization

Grokking Algorithms

Aditya Bhargava

Note, you can find all my solutions to tasks.

Chapter 1. Intro to algorithms

Algorithms — is a set of instructions to accomplish the task.

@straybro
straybro / cs-resources.md
Created March 19, 2020 06:56 — forked from thekeenant/cs-resources.md
My CS bookmarks.

Cheatsheets

Learning & Practice

  • Pramp: Free forever peer-to-peer technical interview practice.
  • InterviewBit: Gamified practice for typical coding interview questions.
  • Project Euler: Math/CS related challenge problems. Try them and complete them at your own pace.
@straybro
straybro / LeanArchitecture.md
Created March 4, 2020 00:54 — forked from Teino1978-Corp/LeanArchitecture.md
Lean Architecture: for Agile Software Development (Jim Coplien, Gertrud Bjørnvig)

Subdivision

What the system is (User Thinking)

  • Classes & Objects
  • Domain Experts
  • Architects
  • Database schemas
  • Long-term stable structure
  • Form
@straybro
straybro / DesignPrinciplesOverview.md
Created March 4, 2020 00:49 — forked from dhana-git/DesignPrinciplesOverview.md
Design Principles - Overview

Object Oriented Design Principles

What are Design Principles?

A set of guidelines that helps us to avoid having a bad design.

Characteristics of Bad Design

  • Rigidity (Hard to change)

    The software / software-design is hard to change.