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
use anyhow::Error; | |
use serde_json::{json, Value}; | |
use crate::utils::merge_json; | |
pub async fn report_to_sql(report: Value) -> Result<String, Error> { | |
let table = report["table"].as_object(); | |
if table.is_none() { | |
return Err(Error::msg("Table not found.")); |
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 { Link, Route, Routes } from "@solidjs/router"; | |
import HeaderImage from "./assets/header.jpg"; | |
import LogoImage from "./assets/logo.jpg"; | |
import axios from "axios"; | |
import { createStore } from "solid-js/store"; | |
import { onMount } from "solid-js"; | |
const PageTextToHtml = ({ content }) => { | |
const parser = new DOMParser(); // Create a new DOMParser instance. |
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
public class Movie { | |
private String name; | |
private int year; | |
public Movie(String name, int year) { | |
this.name = name; | |
this.year = year; | |
} | |
public String getName() { |
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.util.Scanner; | |
public class DebugNine2 { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
Movie[] movies = new Movie[8]; | |
// Removed unnecessary code. | |
String message, entry; | |
/* |
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
/** | |
* This method will use the insertion sort algorithm to sort an int[] of | |
* numbers. | |
* | |
* @param numbers | |
* | |
* @return int[] | |
*/ | |
public static int[] insertionSort(int[] numbers) { | |
int n = numbers.length; |
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
/** | |
* This method will use the bubble sort algorithm to sort an int[] of numbers. | |
* | |
* @param numbers | |
* | |
* @return int[] | |
*/ | |
public static int[] bubbleSort(int[] numbers) { | |
for (int x = 0; x < numbers.length; x++) { | |
for (int i = 0; i < numbers.length - 1; i++) { |
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
/* | |
* Connor Davis | |
* @author ST10068305 | |
*/ | |
package intro; | |
public class App { | |
public static String getGreeting() { | |
return "Hello World!"; | |
} |
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
/* | |
* Connor Davis | |
* @author ST10068305 | |
*/ | |
package fahrenheittocelsius; | |
import javax.swing.JOptionPane; | |
public class App { | |
/** |
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
/* | |
* Connor Davis | |
* @author ST10068305 | |
*/ | |
package room; | |
public class Room { | |
/** | |
* @param args The Command Line Arguments | |
*/ |
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
/* | |
* This Java source file was generated by the Gradle 'init' task. | |
*/ | |
package inputone; | |
import java.io.IOException; | |
import java.util.Scanner; | |
public class InputOne { | |
public static void main(String[] args) { |
NewerOlder