Skip to content

Instantly share code, notes, and snippets.

View TrideepLD's full-sized avatar
🗿
tiki tiki

TrideepLD TrideepLD

🗿
tiki tiki
View GitHub Profile
1)
decl x : integer
decl y : integer
decl z : integer
set x = 3
set y = 4
set z = x + 2 * y - 3
lvalue x
push 3

Question 1

! @ ? ^

! and ^ are higher than @ but lower than ?

so ? > !,^ > @

? is left associative @ is not associative

/**
* 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'));
  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
Question 3:
Kek i didnt do

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
@TrideepLD
TrideepLD / Links
Created August 19, 2020 04:02
Links with Interst
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 / 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;
}