Skip to content

Instantly share code, notes, and snippets.

View kudapara's full-sized avatar
🌀
Verified

Kudakwashe Paradzayi kudapara

🌀
Verified
View GitHub Profile

Proposal for the new delivery system

  • Team backend. Can you please create endpoints with crud actions for deliveries.
  • The array bellow is an example of the collection of deliveries to be saved in the database.
  • These deliveries will be managed in tablero.
  • The deliveries will be scoped by realm

Checkout a demo of the new checkout

cons deliveries = [

Keybase proof

I hereby claim:

  • I am kudapara on github.
  • I am kudapara (https://keybase.io/kudapara) on keybase.
  • I have a public key ASDqXBtbMBt39YlP28HuAq2_DKown2aUZNwsISTfzhkpZQo

To claim this, I am signing this object:

import java.util.regex.*;
public class NationalIdRegex {
public static void main(String args[]) {
// 1st way.
Pattern pattern = Pattern.compile("\\d{2}[-|\\t|\\s]\\d{7}[A-Za-z&&[^IOio]]\\d{2}");
Matcher matcher = pattern.matcher("29-1526374X45");
boolean isIdInCorrectFormat = matcher.matches();
System.out.println("Is the id correct: " + isIdInCorrectFormat);
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Comparison in javascript</title>
</head>
<body>
After making the comparison
</body>
<script>
@kudapara
kudapara / adheres-to-dip.js
Created April 18, 2018 19:55
Code that adheres to DIP
class Shape {
constructor () {}
setColor (color) {
this.color = color
}
}
class Triangle extends Shape {
constructor (base, height) {
@kudapara
kudapara / violates-dip.js
Created April 18, 2018 19:53
Code that violates DIP
class Shape {
constructor () {}
setColor(color) {
this.color = color
}
}
class Picture {
constructor (color) {
this.shape = new Shape()
@kudapara
kudapara / adheres-to-isp.js
Created April 18, 2018 19:50
Code that adheres to ISP
class Shape {
constructor () {}
area () {}
}
class SolidShape {
constructor () {}
volume () {}
}
@kudapara
kudapara / violates-isp.js
Created April 18, 2018 19:49
Code that violates ISP
class Shape {
constructor () {}
area () {}
volume () {}
}
class Triangle extends Shape {
constructor (base, height) {
this.base = base
this.height = height
@kudapara
kudapara / adheres-to-ocp.js
Created April 18, 2018 19:44
Code that adheres to OCP
class Circle {
constructor (radius) {
this.radius = radius
}
area () {
return 2 * Math.PI * Math.pow(shape.radius, 2)
}
}
@kudapara
kudapara / adheres-to-ocp.js
Created April 18, 2018 19:42
Code that adheres to OCP
class Circle {
constructor (radius) {
this.radius = radius
}
area () {
return 2 * Math.PI * Math.pow(shape.radius, 2)
}
}