Skip to content

Instantly share code, notes, and snippets.

View hoslack's full-sized avatar
🎯
Today I learnt something new, again.

Hoslack hoslack

🎯
Today I learnt something new, again.
View GitHub Profile

Hoslack Ochieng

+254723255128 | [email protected]

Software and Web Developer / Backend Developer / Frontend Developer. Finds pride in creating solutions

Committed and self-driven Developer with over 3 years of experience in developing web applications that have positively impacted the world. An upcoming leader aiming at leading teams to efficiently handle the building of systems from ideation to production.

Software Engineering • Agile Methodology • Frontend Development • Backend Development • Technical & Functional Requirements

TECHNICAL PROFICIENCIES

@hoslack
hoslack / codility_solutions.txt
Created February 18, 2020 05:47 — forked from lalkmim/codility_solutions.txt
Codility Solutions in JavaScript
Lesson 1 - Iterations
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/
Lesson 2 - Arrays
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/
Lesson 3 - Time Complexity
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/
@hoslack
hoslack / String_Checker.py
Created August 22, 2018 17:22
Checking for equality in strings
#This is an algorithm for comparing two strings for equality but not case-wise
def string_checker():
#the method is written in python and is called string checker
string_1 = input("Please enter the first string") #Get the first string from the user
string_2 = input("Please enter the second string") #Get the second string from the user
if string_1.lower() == string_2.lower(): #Compare the two strings while ignoring their case.
return True #Return true to the user if the strings are equal
else:
return False #Return false if the strings are not equal
#include <stdio.h>
#include <stdlib.h>
#include <time.h> // time()
int main () {
int i;
char input;
printf("Enter any Character \n"); // Getting the input from user
scanf("%c", &input);
@hoslack
hoslack / ES2017_Promises.js
Created December 26, 2017 10:40
Javascript Promises using async and wait
const fetchquote = async ()=> {
const res = await fetch('https://talaikis.com/api/quotes/random/');
const jsonObject = await res.json();
console.log(jsonObject.quote)
}
fetchquote();
@hoslack
hoslack / old_promises_ES6.js
Last active December 26, 2017 10:30
Javascript Promises using .then
//Using ES6 function declaration
const fetchquote = ()=> {
fetch('https://talaikis.com/api/quotes/random/')
.then(res=>res.json())
.then(jsonObject=>console.log(jsonObject.quote));
}
//call the function
fetchquote();
@hoslack
hoslack / old_promises_ES5.js
Last active December 26, 2017 10:31
Javascript Promises using .then
//Using ES5 function declaration
function fetchquote() {
fetch('https://talaikis.com/api/quotes/random/')
.then(res=>res.json())
.then(jsonObject=>console.log(jsonObject.quote));
}
fetchquote(); //call the function
We couldn’t find that file to show.
function maxSum(arr,range){
function sumAll(array1,myrange){
var total =0;
if(Array.isArray(myrange)){
for (var i = myrange[0], len = myrange[1]; i <= len; i++) {
@hoslack
hoslack / task1.py
Created July 7, 2017 09:27
TechAcademy
def task1():
name = str(input("Please enter your name: "))
age = int(input("Please enter your age: "))
yearstohundred = (100-age)+2017
print("Hello ", name, " you will turn hundred years old in ", yearstohundred)
task1()