Skip to content

Instantly share code, notes, and snippets.

View samuelowino's full-sized avatar
👨‍💻

Samuel Owino samuelowino

👨‍💻
View GitHub Profile
@samuelowino
samuelowino / polyproblems.md
Created September 4, 2024 04:01
Operations on Polynomial Problems

Sure! Here are the practice exercises without solutions or explanations.


Polynomial Operations Practice

1. Dividing Polynomials Using Long Division

Exercise 1

Divide $3x^4 - 5x^3 + 2x^2 - 8x + 6$ by $$ x^2 - 2x + 1 $$

@samuelowino
samuelowino / rollback_date.java
Created December 2, 2020 19:35
Unit Test for a Function that determines the date after a change in days. For instance 12 days from today or 14 days from now
@Test
public void rollTimeByDaysTest(){
//==================================
//TEST CASE 1
//==================================
System.out.println("Test case I");
DateTime dateTime = new DateTime(2020,12,14,0,0);
DateTime newDate = DateTimeUtils.rollBackByDayOfMonth(dateTime, 7);
System.out.println(" newDate " + DateTimeUtils.convertDateToString(newDate));
Assertions.assertEquals(8,newDate.dayOfMonth().get());
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active July 25, 2025 04:47
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the