- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<?php | |
session_start(); | |
include("include/connection.php"); | |
if(!isset($_SESSION['user_email'])){ | |
header("location: signin.php"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder