Snippets Collections
<!DOCTYPE html>
<html>
​
<body>
  
<script>
class Car {
  constructor(name) {
    this.brand = name;
  }
​
  present() {
    return 'I have a ' + this.brand;
  }
}
​
class Model extends Car {
  constructor(name, mod) {
    super(name);
    this.model = mod;
  }  
  show() {
    return this.present() + ', it is a ' + this.model
  }
}
​
const mycar = new Model("Ford", "Mustang");
document.write(mycar.show());
</script>
​
</body>
</html>
​
import numpy as np
p = np.array([1/2, 1/2])
ex = np.array([1, 2])
dot_prod = ex @ p
#ifdef __APPLE__
freopen("inputFilename.txt", "r", stdin);
freopen("outputFilename.txt", "w", stdout);
#endif
star

Thu Jul 11 2024 19:11:39 GMT+0000 (Coordinated Universal Time) https://www.w3schools.com/react/tryit.asp?filename

#javascript #react.js #html #output #text
star

Mon May 03 2021 16:22:37 GMT+0000 (Coordinated Universal Time)

#c++ #output #xcode #redirection
star

Tue Apr 20 2021 01:06:11 GMT+0000 (Coordinated Universal Time) https://gitlab.eecs.umich.edu/eecs281/wiki/-/wikis/xcode-file-redirection

#c++ #output #xcode #redirection

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension