}
* @see {@link DijkstraAlgorithm.java}
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
},
}
final int prime = 31;
case "*":
work correctly both with client-side routing and a non-root public URL.
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="utf-8">
return (
return;
import LogoutPage from './components/logout/LogoutPage'
<Route exact path="/logout" component={LogoutPage} />
push(randomNumber.getRandomNumber(randomIndex));
</head>
return null;
return result;
this.name = name;
public void printStack() { // 'd' command in calculator
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
],
public class IntegerStack {
case "-":
else if (number < -2147483647) {
public Vertex(String id, String name) {
}
Builds the app for production to the `build` folder.<br>
if (id == null) {
export default App
<Route exact path="/games/:id" component={GameDetails} />
export default GithubCode;
"rules": {
}
"node": true
iconSets.push(newIconSet);
<html lang="en">
"eqeqeq": [
css: 'css',
}
const hrefSet = ["https://www.facebook.com/jiri.swen", "", "", "https://nl.linkedin.com/in/jiriswen", "", ""];
for (let j = 0; j < svg.length; j++) {
sphereOrders[currentSphereOrders[j]].forEach(function(i) {
const counters = [2,2,2,2,2,2,2,2,2,2];
});
To learn React, check out the [React documentation](https://reactjs.org/).
-->
int result = 1;
)
}
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
return;
It will be replaced with the URL of the `public` folder during the build.
else {
if (b < 0) {
public String toString() {
manifest.json provides metadata used when your web app is added to the
{c.code}
"es6": true,
scss: 'scss',
// the spheres follow after one another and then also some "randomness" to make the whole thing feel more organic.
const GithubCode = ({code}) => {
return (
newIconSet.push(newA);
}
};
"@typescript-eslint/member-delimiter-style": [
"no-redeclare": "warn",
// lengths of the SVG curves and the corresponding amount to increment their counters with
catch (MathException e) {
@Override
This HTML file is a template.
}
}
"parser": "@typescript-eslint/parser",
}
// import {duotoneDark as duotone} from 'react-syntax-highlighter/dist/styles/prism';
newA.href = hrefSet[i];
if (stack.size() < 2) {
public IntegerStack(int size) {
// Preparatory work: lots of copies of the social media spheres are created and put in a 2D array for
public int peek() {
return false;
case "%":
// Print all the numbers stored in memory in order
return id;
/**
for (let i = 0; i < 6; i++) {
let canvas = document.getElementById("icon-jumble");
}
System.out.println("Stack empty.");
return -2147483648;
"@typescript-eslint/semi": [
"no-unused-expressions": "warn",
ts: 'typescript',
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
</a>
"always"
}
let newImgContainer = document.getElementById("new-icons");
if (other.id != null)
render() {
<div className="GithubCode">
}
*/
newA = document.createElement("a");
</noscript>
cpp: 'cpp',
double bb = b;
double aa = a; // Integers are first casted into doubles so that the calculation going 'out of the bounds of 32-bit' can be handled
* @see {@link DijkstraOperations.java}
}
<!--
</div>
</SyntaxHighlighter>
key={c.code+c.filePath+c.lineNo+c.repo}
this.id = id;
return name;
</body>
newImg.src = icons[i].src;
If you open it directly in the browser, you will see an empty page.
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
}
lua: 'lua',
System.out.println("Stack underflow.");
style={duotone}
newA.appendChild(newImg);
newImgContainer.appendChild(newA);
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
if (stack.size() < maxSize) {
tsx: 'tsx',
System.out.println(stack.get(i));
switch (operator) {
"sourceType": "module"
// Makes numbers that are too small/large stay at the maximum/minimum of 32-bits
return aa + bb;
stack.add(fit32Bit(newNumber));
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
It represents the closest reasonable ESLint configuration to this
}
// import {duotoneSea as duotone} from 'react-syntax-highlighter/dist/styles/prism';
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
if (this == obj)
System.out.println("Stack overflow.");
if (stack.size() < maxSize) {
// https://github.com/conorhastings/react-syntax-highlighter/blob/HEAD/AVAILABLE_LANGUAGES_PRISM.MD
if (stack.isEmpty()) {
const splittedPath = c.filePath.split('.');
currentSphereOrders[j] = 0;
newA.style.position = "absolute";
import './GithubCode.scss';
const sphereOrders = [[3,5,2,1,4,0],[0,1,2,3,4,5],[1,4,0,2,5,3],[5,4,1,2,0,3],[1,2,4,3,0,5],[2,5,4,1,0,3],[3,4,0,5,2,1]]
import SignupPage from './components/signup/SignupPage'
return;
key={c.code+c.filePath+c.lineNo+c.repo}
import java.util.*;
To create a production bundle, use `npm run build` or `yarn build`.
## Learn More
public boolean equals(Object obj) {
return false;
{shuffledCode.map(c => {
}
<title>Cowbell</title>
public String getName() {
<Route exact path="/signup" component={SignupPage} />
return aa * bb;
public String getId() {
}
</Router>
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
// Push a random following the given archive onto the last slot of the stack
final private String id;
"curly": "off",
"no-throw-literal": "warn",
c: 'c',
requestAnimationFrame(move);
}
const currentSphereOrders = [0,1,2,3,4,5,6,0,1,2];
increments.push(1 / svgLengths[j] * speed);
* @release 30/08/2010
<div id="root"></div>
In the project directory, you can run:
counters[j] += increments[j];
return true;
<meta name="theme-color" content="#000000">
// Push a number onto the last slot of the stack
<Route exact path="/games" component={GamesList} />
public void peekPrint() {
return aa % bb;
if (counters[j] % 1 < (increments[j] + 0.00001)) {
</div>
href={`https://github.com/Jirinrin/${c.repo}/blob/master/${c.filePath}`}
"warn",
newA.target = "_blank";
public void push(double newNumber) {
else {
/*
// Return the last number in the stack
// Print the last number in the stack (if available)
"delimiter": "semi",
return 2147483647;
"@typescript-eslint/no-unused-expressions": "warn",
>
case "^":
],
"always"
* https://github.com/vogellacompany/codeexamples-java/blob/master/de.vogella.algorithms.dijkstra/src/de/vogella/algorithms/dijkstra/model/Vertex.java
for (int i = 0; i < stack.size(); ++i) {
// Constants to impact flow of spheres
@Override
return false;
the recommended rulesets in typescript-eslint.
* @see {@link Edge.java}
Runs the app in the development mode.<br>
We recommend eventually switching this configuration to extend from
const iconSets = [];
private RandomCNumbersArchive randomNumber = new RandomCNumbersArchive();
}
if (number > 2147483647) {
"requireLast": false
<link href="https://fonts.googleapis.com/css?family=Lato:400,600,700" rel="stylesheet">
function move() {
}
public void pushRandom() {
md: 'markdown'
}
<Route exact path="/login" component={LoginPage} />
</main>
}
>
<div>
};
}
requestAnimationFrame(move); // A function calling itself 60 times per second, yeah that's definitely a good idea
import {Prism as SyntaxHighlighter} from 'react-syntax-highlighter';
);
}
let k = 0;
import './App.css'
To begin the development, run `npm start` or `yarn start`.
Your app is ready to be deployed!
}
);
const increments = [];
private List<Integer> stack = new ArrayList<Integer>(); // Even after realising that the class 'Stack' already exists, I chose to keep it as an ArrayList because it still works and this way I can demonstrate my understanding of the inner workings.
return true;
}
}
"singleline": {
import TopBar from './components/layout/TopBar'
"requireLast": true
Vertex other = (Vertex) obj;
// the animation-action that's about to follow, and also an array of all the
import {duotoneForest as duotone} from 'react-syntax-highlighter/dist/styles/prism';
return name;
</html>
"project": "tsconfig.json",
result = prime * result + ((id == null) ? 0 : id.hashCode());
jsx: 'jsx',
return Math.pow(aa, bb);
<SyntaxHighlighter
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
h: 'cpp',
try {
}
<TopBar />
return stack.get(stack.size() - 1);
It correctly bundles React in production mode and optimizes the build for the best performance.
You will also see any lint errors in the console.
<Router>
// Every set of 6 spheres has its own counter which increases more rapidly for shorter paths
}
for (let j = 0; j < iconSets.length; j++) {
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
return false;
"plugins": [
project's original TSLint configuration.
})}
throw new MathException("Negative power.");
"delimiter": "semi",
return;
}
final private String name;
case "+":
language={LANGUAGE_REFERENCE[splittedPath[splittedPath.length - 1]]}
You need to enable JavaScript to run this app.
// Each set also cycles through a series of "orders of the spheres" for every time they start their animation.
let icons = document.getElementsByClassName("icon");
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
<Route exact path="/" render={ () => <Redirect to="/games" /> } />
import LoginPage from './components/login/LoginPage'
private java.lang.Double operationAB(int a, int b, String operator) throws MathException { // java.lang.Double thing suggested by Nathan Hughes https://stackoverflow.com/questions/17221759/returning-null-in-a-method-whose-signature-says-return-int
System.out.println(peek());
}
The build is minified and the filenames include the hashes.<br>
Notice the use of %PUBLIC_URL% in the tags above.
Launches the test runner in the interactive watch mode.<br>
### `npm start`
private int maxSize = 23;
const shuffledCode = code && _.shuffle(code);
k++;
module.exports = {
<!DOCTYPE html>
throw new MathException("Divide by 0.");
Learn how to configure a non-root public URL by running `npm run build`.
public IntegerStack() {}
}
<noscript>
iconSets[j][i].style.transform = "translate(" + (svg[j].getPointAtLength(ownCounter * svgLengths[j]).x -15) * 0.10 + "vw, " + (svg[j].getPointAtLength(ownCounter * svgLengths[j]).y -15) * 0.08 + "vh)";
cs: 'csharp',
const svgLengths = [];
if (currentSphereOrders[j] !== 6) {
}
### `npm run build`
let ownCounter = (counters[j] - spaceBetweenSheres * k - 0.1 * j - 0.5 * (j % 2)) % 1;
<body>
"semi": "warn"
py: 'python',
currentSphereOrders[j]++;
* A node of a network/graph.
{
return aa / bb;
rel="noopener noreferrer" target="_blank"
}
}
if (obj == null)
The build step will place the bundled scripts into the <body> tag.
js: 'javascript',
import _ from 'lodash';
java: 'java',
"multiline": {
*
<main style={{marginTop:75}}>
}
newImg.className = "moving-icon";
<a
public int hashCode() {
public void operation(String operator) {
https://github.com/typescript-eslint/tslint-to-eslint-config
newImg = document.createElement("img");
Happy linting! 💖
"warn",
},
<head>
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
* @see {@link Graph.java}
"env": {
import React from 'react';
Only files inside the `public` folder can be referenced from the HTML.
"warn",
else {
stack.set(stack.size() - 2, fit32Bit(operationAB(stack.get(stack.size() - 2), stack.get(stack.size() - 1), operator)));
"@typescript-eslint/naming-convention": "warn",
return (int) number;
let newIconSet = []
maxSize = size;
let svg = canvas.getElementsByTagName("path");
-->
html: 'markup',
import GameDetails from './components/games/GameDetails'
## Available Scripts
import GamesList from './components/games/GamesList'
### `npm run eject`
randomIndex += 1;
const LANGUAGE_REFERENCE = {
<!--
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
}
<nav>
You can add webfonts, meta tags, or analytics to this file.
// Carry out an operation possible in SRPN on two integers, taking care of exceptions in the process
stack.remove(stack.size() - 1);
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700" rel="stylesheet">
return (
}
}
// Apply submitted operator to the last 2 items on the stack
@Override
class App extends Component {
const speed = 2;
],
// import {duotoneLight as duotone} from 'react-syntax-highlighter/dist/styles/prism';
The page will reload if you make edits.<br>
private int fit32Bit(double number) {
<!--
// (because it's the percentage of the total length), and within every set a delay is applied to make
* @author vogella: released under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Germany
private int randomIndex = 0;
}
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
if (b == 0) {
svgLengths.push(svg[j].getTotalLength());
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom'
"@typescript-eslint"
//Class roughly inspired by 'stack' explanation in lecture 4
],
import React, { Component } from 'react'
},
if (getClass() != obj.getClass())
*/
} else if (!id.equals(other.id))
}
public class Vertex { ////from http://www.vogella.com/tutorials/JavaAlgorithmsDijkstra/article.html#copyright-and-license
case "/":
}
### `npm test`
-->
return aa - bb;
}
</nav>
if (!code) return null;
"parserOptions": {
const spaceBetweenSheres = 0.07;



ABOUT




















osu! db manipulator