Skip to content

Instantly share code, notes, and snippets.

View Ajimi's full-sized avatar
💻
They see me codin', they hatin'

Selim Ajimi Ajimi

💻
They see me codin', they hatin'
View GitHub Profile
I really enjoyed the conversation with Abdulhaq, he showed for his level a high degree of maturity and reflection, exceptional communication skills and also a very good alignment with our values. His ability to teach and explain complex problems to others will be an asset and I believe we can help him a lot in growing in his areas of improvements (mostly technical).
Given he's not from an engineering background, he might benefit greatly from the fundamentals part of our immersion program and he expressed excitement to dive into these topics.
He also expressed a desire to at some point explore other topics outside mobile and has previous experience in DevOps, so his versatility would also be an asset for us.
From a non-technical perspective I would see him at a solid L3.
One thing we would need to figure out are the relocation logistics to Tunisia with KPMG (working permit for Libyans is apparently not a problem but sth to verify)
loves maths & computer science
wanted to be an academic - computation
extension UIImage {
public static func loadFrom(url: URL, completion: @escaping (_ image: UIImage?) -> ()) {
DispatchQueue.global().async {
if let data = try? Data(contentsOf: url) {
DispatchQueue.main.async {
completion(UIImage(data: data))
}
} else {
DispatchQueue.main.async {
class PaddingLabel: UILabel {
var topInset: CGFloat
var bottomInset: CGFloat
var leftInset: CGFloat
var rightInset: CGFloat
required init(withInsets top: CGFloat, _ bottom: CGFloat, _ left: CGFloat, _ right: CGFloat) {
self.topInset = top
self.bottomInset = bottom
// Create Attachment
let imageAttachment = NSTextAttachment()
imageAttachment.image = UIImage(named:"iPhoneIcon")
// Set bound to reposition
let imageOffsetY: CGFloat = -5.0
imageAttachment.bounds = CGRect(x: 0, y: imageOffsetY, width: imageAttachment.image!.size.width, height: imageAttachment.image!.size.height)
// Create string with attachment
let attachmentString = NSAttributedString(attachment: imageAttachment)
// Initialize mutable string
let completeText = NSMutableAttributedString(string: "")
<!DOCTYPE html>
<?php
session_start();
include("include/connection.php");
if(!isset($_SESSION['user_email'])){
header("location: signin.php");
}

Before You Start Few Concepts TO KNOW

  • SOLID PRINCIPLE
  • DEPENDENCY INJECTION
  • DRY
  • CLEAN ARCHITECTURE
  • PUSH & PULL Principle
  • Observer Design Pattern (Benefits of using it)
  • Repository Pattern
  • (Use Cases)
  • Code Refactoring & code smells
@Ajimi
Ajimi / Event.kt
Last active December 4, 2019 21:56
package com.esprit.core.util
open class Event<out T>(private val content: T) {
var consumed = false
private set // Allow external read but not write
/**
* Consumes the content if it's not been consumed yet.
* @return The unconsumed content or `null` if it was consumed already.
class PavilionCollectionViewCell: UICollectionViewCell , Configurable {
@IBOutlet weak var image : UIImageView!
@IBOutlet weak var label : UILabel!
func configure(with pavilion: Pavilion) {
self.label.text = pavilion.name
// TODO ADD IMAGE
}
}
#include <SPI.h>
#include <Ethernet.h>
#include <Wire.h>
#include "rgb_lcd.h"
#include "string.h"
#include <cstring>
rgb_lcd lcd;
const int PIN_SOUND = A0;
@Ajimi
Ajimi / arduino.c
Last active November 22, 2018 19:45
Contains all what you need for getting sensor data & interacting with Analog and Digital PINS & making network request
rgb_lcd lcd;
const int PIN_SOUND = A0;
const int PIN_TEMP = A1;
const int PIN_LIGHT = A2;
const int PIN_BUTTON = 6;
const int PIN_LED = 13;
const int PIN_BUZZER = 1;