Skip to content

Instantly share code, notes, and snippets.

View SamoraMachel's full-sized avatar
🧠
The more you know the more you know you don't know

Samora Machel SamoraMachel

🧠
The more you know the more you know you don't know
View GitHub Profile
int push_button = 8;
int light = 7;
String ledStatus = "off";
int counter = 0;
void setup() {
pinMode(push_button, INPUT_PULLUP);
pinMode(light, OUTPUT);
@SamoraMachel
SamoraMachel / android firebase upload.yml
Last active August 4, 2022 11:52
A github action for upload a build to firebase after the PR has been closed
name: Android CI
on:
pull_request:
branches: [ "main" ]
types:
- closed
jobs:
@SamoraMachel
SamoraMachel / FileUtils
Created May 18, 2022 14:24 — forked from walkingError/FileUtils
Get a file from Uri.
package com.jitosoft.imageloadapp.util;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsContract;
@SamoraMachel
SamoraMachel / kafka-docker-compose.yml
Created May 17, 2022 19:47
A docker compose for full kafka configuration with kafka manager included
version: '3.6'
services:
zookeeper:
image: wurstmeister/zookeeper
restart: always
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
from time import sleep
from random import randint
from colorama import Fore, Style
text1 = str(input("Enter holiday Message : "))
base1 = len(text1)
while True:
print("\033c")
for x in range(1, base1, 2):
# include <iostream>
# include <algorithm>
using namespace std;
template <class T>
bool ascending(T a, T b){
return a > b;
}
template <class T>
@SamoraMachel
SamoraMachel / SinglyLinkedList.cpp
Last active May 5, 2021 15:25
Singly Linked List
#ifndef LIST_H_
#define LIST_H_
#include <cstddef>
#include <iostream>
using namespace std;
template<class T> class LinkedList;