Skip to content

lopezpdvn/snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snippets

Code snippets in multiple languages.

  • JavaScript
  • TypeScript
  • C#
  • Python
  • Java
  • Haskell
  • SQL
  • C
  • Windows Batch

By Pedro Ivan Lopez.

Development

  • Node.js recent version
  • Python >= 3
  • LINQPad >= 5
  • JDK >= 11.
  • GCC
  • sudo apt install ghc (WSL)

Visual Studio Code

Extensions

  1. Debugger for Java
  2. Java Extension Pack
  3. Language Support for Java(TM) by Red Hat
  4. ms-python.python

Java

File > Open Folder with Visual Studio Code, path of isolated directory of (typically only 1) source code files 2020/<path>.

Then just Run > Start Debugging.

If it fails search for existing launch.json files and copy to your current directory.

Haskell

In WSL, just compile

$ ghc name_of_file.hs

And run

$ ./name_of_file
< awesome output >
...