This document is written to help JavaScript developers to understand JavaScript's weird parts deeply and to prepare for interviews, the following resources was really helpful to write this document:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dr. Alan Kay explains when "object-oriented" was first used and what it means. [] (Meaning of "Object-Oriented Programming" According to Dr. Alan Kay (meaning of OOP objectoriented definition term notion meaning explanation what is)), document, page 721691 | |
http://www.purl.org/stefan_ram/pub/doc_kay_oop_en (permalink) is the canonical URI of this page. | |
Stefan Ram | |
Dr. Alan Kay on the Meaning of “Object-Oriented Programming” | |
(To link to this page, please use the canonical URI "http://www.purl.org/stefan_ram/pub/doc_kay_oop_en" only, because any other URI is valid only temporarily.) | |
E-Mail of 2003-07-23 | |
Dr. Alan Kay was so kind as to answer my questions about the term “object-oriented programming”. | |
Clarification of "object-oriented" [E-Mail] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"recommendations": [ | |
"dbaeumer.vscode-eslint", | |
"esbenp.prettier-vscode", | |
"streetsidesoftware.code-spell-checker", | |
"GitHub.vscode-pull-request-github", | |
"ms-playwright.playwright", | |
"pflannery.vscode-versionlens", | |
"ZixuanChen.vitest-explorer" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#On macOS Mojave, this script must run in root, otherwise you will | |
#get a runtime error due to "No permission" error when create raw socket | |
import socket | |
import io | |
import struct | |
import sys | |
class flushfile(io.FileIO): | |
def __init__(self, f): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Our Metabox | |
Plugin URI: | |
Description: Metabox API Demo | |
Version: 1.0 | |
Author: IHL | |
Author URI: | |
License: GPLv2 or later | |
Text Domain: our-metabox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fact(x): | |
if x==1: | |
return 1 | |
else : | |
return x* (x-1) | |
print(fact(8)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def greet2(name): | |
print("How are you, " + name + "?") | |
def bye(): | |
print("Ok bye") | |
def greet(name): | |
print("Hello," "" + name +"!") | |
greet2(name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def countdown(i): | |
print(i) | |
if i <= 0: | |
return | |
else: | |
countdown(i-1) | |
print(countdown(5)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def findsmallest(arr): | |
smallest = arr[0] | |
smallest_index = 0 | |
for i in range(1, len(arr)): | |
if arr[i] < smallest: | |
smallest = arr[i] | |
smallest_index = i | |
return smallest_index | |