Skip to content

Instantly share code, notes, and snippets.

View azeezat's full-sized avatar

Azeezat Raheem azeezat

View GitHub Profile
@azeezat
azeezat / sonarqube-config.json
Last active July 8, 2019 08:38
Configuring package.json file for Sonarqube on react project
{
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"postbuild": "rimraf build/**/*.map",
"test": "react-scripts test --env=jsdom",
"coverage:dev": "react-scripts test --coverage --watchAll",
"coverage:prod": "react-scripts test --coverage",
"eject": "react-scripts eject"
},
@azeezat
azeezat / sonarqube-properties
Created July 3, 2019 14:09
Sonarqube properties
sonar.host.url=put the url to your sonarqube server here
sonar.projectKey=my-project
sonar.projectName=put the name of the project on jenkins here
sonar.projectVersion=1.0
sonar.sources=C:/Program Files (x86)/Jenkins/workspace/put the name of the project on jenkins here
sonar.exclusions=node_modules/**, coverage/**, public/**, build/**, **/__tests__/**
sonar.javascript.lcov.reportPaths=coverage/lcov.info
import React, { Component } from 'react';
class PageInfo extends Component {
state = {
counter:0
}
counter = (minimum, maximum) => {
for (let count = minimum; count <= maximum; count++) {
setTimeout(() => {
{
"number OfWheels":3,
"steeringType":"bike steering",
"boot":false,
"windScreen":true,
"roof":"partly roofed"
"shape":"semi circular"
"numberOfDoors":0,
"numberOfWindows":2
}
@azeezat
azeezat / Java class
Last active February 28, 2020 09:50
class Lamp {
boolean isOn;
void turnOn() {
isOn = true;
}
void turnOff() {
isOn = false;
}
@azeezat
azeezat / interface-implementation-in-a-class.txt
Last active February 28, 2020 20:44
Interface Implementation in Java
import java.io.*;
interface LampInterface{
void turnOn();
void turnOff();
displayLightStatus()
}
@azeezat
azeezat / abstract function
Last active February 28, 2020 09:49
abstract function
abstract void changeGear(int a);
interface LampInterface{
void turnOn();
void turnOff();
displayLightStatus()
}
class Lamp implements LampInterface{
boolean isOn;
void turnOn() {
interface <interface_name> {
// declare constant fields
// declare methods (Note: Interface methods are abstract by default)
}
@azeezat
azeezat / description-of-an-item.json
Last active July 29, 2023 06:35
Object description
{
"numberOfLegs":"four",
"numberOfEyes": 2,
"locationOfEyes": "front of the head"
"colour":"brown",
"body": "fur",
"sound":"meow meaow",
}