Skip to content

Instantly share code, notes, and snippets.

View TrideepLD's full-sized avatar
🗿
tiki tiki

TrideepLD TrideepLD

🗿
tiki tiki
View GitHub Profile
#include <stdio.h>
#include <string.h>
#include <conio.h>
struct Table {
char occupation_title[50];
int employee_number;
float mean_hourwage, annual_meanwage;
};
/*All Sort function sorted in Ascending Order.
/* Creating the table */
CREATE TABLE Test1(
IntDatatype INT(5)PRIMARY KEY,
VarcharDatatype VARCHAR(15) NOT NULL,
DateDatatype DATE,
FloatDatatype FLOAT(7,2),
DoubleDatatype DOUBLE(15,8),
DatetimeDatatype DATETIME
);
const fs = require('fs');
//We are creating functions so that we can call them in one line for seperate objects and functions to use
var fetchNotes = () => {
try {
var notesString = fs.readFileSync('notes-data.json');
return JSON.parse(notesString);
} catch (e) {
return [];// This happens when try is an error so there is now smth to catch.
}
};
@TrideepLD
TrideepLD / learning.java
Last active June 23, 2019 10:57
Just a few basic algorithms in Java
public class things {
public static boolean containsSpace(String s) {
for(int i=0; i < s.length(); i++) {
if(s.charAt(i) == ' ') {
return true;
}
}
return false;
}
public static Server sjf() {
// The fitness value of a job to a server is defined as the difference between the number of cores the job requires and that in the server
System.out.println("");
System.out.println("------- SJF ALGORITHIM ------");
System.out.println("");
System.out.println("CURRENT JOB: ");
System.out.println(currentJob.toString());
System.out.println("");
@TrideepLD
TrideepLD / Links
Created August 19, 2020 04:02
Links with Interst

List of Scala and SBT Errors to help solve future issues:

  1. 3 tuple argument soln: remove XLint due to it using older libraries : slick/slick#155
Question 3:
Kek i didnt do
  1. First, Install it in VSCODE a) Install Live server(optional. you will see why later.)
  2. Create a boilerplate HTML code.
  3. Create a .js file and have that linked into your html file.
  4. Bottom left, click the gear, and click settings.
  5. Search for "debug.javascript.usePreview" in settings and tick the box.
  6. Go to Debug(Ctrl + Shift + D)
  7. RUn and Debug, select chrome(or chrome Preview)
  8. Go to launch.json and copy this
/**
* You have the fetch request to get api's
* So then how do you use it?
* Well we have fetch(); but we can also have
* fetch("api", get/post request and other stuff);
*
*/
// return a promise
// console.log(fetch('https://reqres.in/api/users'));