Skip to content

Instantly share code, notes, and snippets.

View mye-creator's full-sized avatar
💭
Not really busy, but I have some free time

Daniel Mye mye-creator

💭
Not really busy, but I have some free time
View GitHub Profile
@mye-creator
mye-creator / README.md
Last active November 29, 2020 05:18
How to make your programming language from zero?

How to make your programming language with JavaScript (Part 1)

Have you thought that if you create your own programming language, you can be proud of yourself? Sadly, it's not easy to make it. But today we will start making it from zero!

What do you need?

We need:

  • CMD console (ConEmu)
  • Node.js (Install the LTS version (recommended))
  • Text Editor (I'm using Sublime Text Editor)

How to install node.js?

Go to here and install lastest LTS version.

@mye-creator
mye-creator / index.js
Last active November 29, 2020 04:35
[Node.js] How to connect JS file to other JS file
let fileName = require("./fileLocation").fileName;
@mye-creator
mye-creator / index.js
Last active November 27, 2020 14:12
A node.js running readFile function
fs.readFile("file_location", "text_encoding", function(error, content) {
// some if statements, and else statements for function so the code can let do something if error appears
}
@mye-creator
mye-creator / index.py
Last active November 17, 2020 14:25
How to make infinite loop in Python
while 'true':
print("Infinite loop")
# So it will make infinite loop because I typed "while" function without stopping it