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
{ | |
"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" | |
}, |
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
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 |
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
import React, { Component } from 'react'; | |
class PageInfo extends Component { | |
state = { | |
counter:0 | |
} | |
counter = (minimum, maximum) => { | |
for (let count = minimum; count <= maximum; count++) { | |
setTimeout(() => { |
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
{ | |
"number OfWheels":3, | |
"steeringType":"bike steering", | |
"boot":false, | |
"windScreen":true, | |
"roof":"partly roofed" | |
"shape":"semi circular" | |
"numberOfDoors":0, | |
"numberOfWindows":2 | |
} |
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 Lamp { | |
boolean isOn; | |
void turnOn() { | |
isOn = true; | |
} | |
void turnOff() { | |
isOn = false; | |
} |
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
import java.io.*; | |
interface LampInterface{ | |
void turnOn(); | |
void turnOff(); | |
displayLightStatus() | |
} |
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
abstract void changeGear(int a); |
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
interface LampInterface{ | |
void turnOn(); | |
void turnOff(); | |
displayLightStatus() | |
} | |
class Lamp implements LampInterface{ | |
boolean isOn; | |
void turnOn() { |
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
interface <interface_name> { | |
// declare constant fields | |
// declare methods (Note: Interface methods are abstract by default) | |
} |
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
{ | |
"numberOfLegs":"four", | |
"numberOfEyes": 2, | |
"locationOfEyes": "front of the head" | |
"colour":"brown", | |
"body": "fur", | |
"sound":"meow meaow", | |
} |
OlderNewer