Skip to content

Instantly share code, notes, and snippets.

@briankip
briankip / linkgitcode.md
Last active February 2, 2024 13:10
Linking to lines or chunks of code on github.

So you want to link to a line or chunk of code this is how you do it.

  1. Go to the file you are talking about, if you are viewing a number of files click to view the specific file.
  2. To select one line go to the gutter (where the line numbers are) and click the number, it will highlight in yellow.
  3. For multiple lines select the starting line as above then select shift click the end line. It will highlight the entire chuck of code.
  4. The URL will have automatically changed if you noticed, but this is not the canonical URL as when commits continue and the line numbers shift do to addition of code, sooner or later the URL will be pointing to something completely different.
  5. To prevent this hit Y and you will get the permanent canonical URL to the commit.
  6. Now the address bar has the permanent link to that chunk/line of code.
@briankip
briankip / phpunit-assertions.md
Last active February 9, 2024 18:42
A list of PHPUnit assertions
  • assertArrayHasKey
  • assertArrayNotHasKey
  • assertContains
  • assertAttributeContains
  • assertNotContains
  • assertAttributeNotContains
  • assertContainsOnly
  • assertAttributeContainsOnly
  • assertNotContainsOnly
  • assertAttributeNotContainsOnly
@briankip
briankip / equity-tariffs.md
Created September 3, 2014 19:46
Equity Bank kenya agency tariffs
Withdrawal amount Charges
< 2,500 25
2,501 - 5,000 45
5,001 - 10,000 75
10,001 - 20,000 145
20,001 - 35,000 170
35,001 - 50,000 195
50,001 - 100,000 225
@briankip
briankip / mpesa-tarrifs.md
Last active August 29, 2015 14:06
M-Pesa, zuku and kplc payment via mpesa tariffs.

A single place to find most charges related to m-pesa

MPESA TARIFFS

Min Max Registered Unregistered Via Agent
10 49 1 N/A N/A
50 100 3 N/A 10
101 500 11 66 27
501 1,000 15 66 27