1. Basic Syntax Structure of a JavaScript Program: // Inline comment /* Multi-line comment */ console.log(“Hello, World!”); // Output to console 2. Variables Declaration: var name = “John”; // Global …
Cheatsheets
-
-
1. Basic Syntax Structure of a C Program: #include int main() { // Your code here return 0; } 2. Data Types Type Description Example int Integer type int a …
-
7. Libraries: Progress_Bar, Plot, Table, Curses, Logging, Scraping, Web, Profile, NumPy, Image, Audio, Games, Data. Libraries Progress Bar # $ pip3 install tqdm >>> from tqdm import …
-
Collections: List, Dictionary, Set, Tuple, Range, Enumerate, Iterator, Generator. List <list> = <list>[from_inclusive : to_exclusive : ±step_size] <list>.append(<el>) # Or: <list> += [<el>] <list>.extend(<collection>) # Or: <list> += …
-
/* *** SYNOPSIS http://nodejs.org/api/synopsis.html *** */ var http = require(‘http’); // An example of a web server written with Node which responds with ‘Hello World’. // To run the server, …
-
1. Data Types Primitive Size Example String 2 bytes/char s = “reference”; bool b = true; char 2 bytes ch = ‘a’; byte 1 byte b = 0x78; short …
-
/* * GLOBAL OBJECTS > OBJECT * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object */ // Global object: properties Object.length // length is a property of a function object, and indicates how many arguments the function …
-
/* * FEATHERS.JS CHEATSHEET * https://docs.feathersjs.com/api/readme.html * * 1. CORE: Feathers core functionality. * 2. TRANSPORT: Expose a Feathers application as an API server. * 3. CLIENT: More details on …
-
/* * SAILS.JS CHEATSHEET * REFERENCE: https://sailsjs.com/documentation/reference * CONCEPTS: https://sailsjs.com/documentation/concepts * APP STRUCTURE: https://sailsjs.com/documentation/anatomy * * 1. APPLICATION * 2. BLUEPRINT API * 3. COMMAND-LINE INTERFACE * 4. CONFIGURATION * …
-
/* * SYNOPSIS * http://nodejs.org/api/synopsis.html */ var http = require(‘http’); // An example of a web server written with Node which responds with ‘Hello World’. // To run the server, …