HTML & HTML5 – Documentation and Code Snippets

HTML stands for HyperText Markup Language. HTML5 is the fifth version of HTML. HTML is the markup language of the browser. It is the main pillar in the web technology. It structures all the webpages. So it is IMPORTANT! Minimal Page <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <!-- content here --> </body> </html> Head <head> <title>Title</title> <base href="base-url" /> <link href="style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> /* CSS code */ </style> <script src="script.js"></script> <script> // Javascript code </script> <meta charset="UTF-8"> <meta name="keywords" content="keywords"> <meta name="description" content="description"> <meta name="author" content="name"> <meta http-equiv="refresh" content="10"> </head> Tag Element title page title link link to external source style CSS inside HTML page script Javascript code meta metadata meta http-equiv="refresh” content="10” auto-refresh page in 10s base base url for all links Text Content Headings <h1>Main heading</h1> <!

Go Programming Language

Go in a Nutshell is .. Imperative language Statically typed Syntax tokens similar to C (but less parentheses and no semicolons) and the structure to Oberon-2 Compiles to native code (no JVM) No classes, but structs with methods Interfaces No implementation inheritance. There’s type embedding, though. Functions are first class citizens Functions can return multiple values Has closures Pointers, but not pointer arithmetic Built-in concurrency primitives: Goroutines and Channels Basic Syntax of Go Programming Language Hello World Example File hello.go: package main import "fmt" func main() { fmt.Println("Hello, Go") } $ go run hello.go

CSS & CSS3 Cheatsheet

CSS is a language that describes the style of an HTML document. CSS describes how HTML elements should be displayed. CSS stands for Cascading Style Sheets. CSS saves a lot of work becuase it can control the layout of multiple web pages all at once. CSS rule-set consists of a selector and a declaration block , see the following image. The declaration block contains one or more declarations separated by semicolons. Each declaration include a CSS property name and a value, separated by a colon. for example: p { color: red; text-align: center; } p in the example is the selector.

Laravel – Documentation and Code Snippets

Laravel is a framework for backend development for websites. It is written in PHP programming language. We use PHP to write website backend code in Laravel framework. A list of operators on Eloquent’s where() method When you use Eloquent’s where() method, by default it will use the = operator (i.e. ->where('fieldname','value') will generate ... WHERE fieldname = 'value'.... However you are not limited to just =. You can do something like this: $posts = Post::where("id","!=",123)->get() Any of the following may be used as the second parameter (and use the third param for the value) =, <, >, <=, >=, <>, !

Kotlin for Android - Documentation and Code Snippets

All you need to start creating Android app in Kotlin. Kotlin Syntax Print to console print("Amit Shekhar") println("Amit Shekhar") Constants and Variables var name = "Amit Shekhar" val name = "Amit Shekhar" Assigning the null value var otherName : String? otherName = null Verify if value is null text?.let { val length = text.length } // or simply val length = text?.length Concatenation of strings var firstName = "Amit" var lastName = "Shekhar" var message = "My name is: $firstName $lastName" New line in string val text = """ |First Line |Second Line |Third Line """.

Java for Android – Documentation and Code Snippets

All you need to create Android app in Java. Java Syntax Primitive Data Types byte short int long float double char boolean Java Operators: Arithmetic: + , – , * , ? , % Assignment: = , -= , += , *= , /= , %= , &= , ^= , |= , «= , »= , »>= Bitwise: ^ , & , | Logical: && , || Relational: < , > , <= , >= , == , != Shift: « , » , »> Ternary: ?: Unary: ++x , –x , x++ , x– , +x , -x , !

Javascript Cheatsheet – Documentation and Code Snippets

Javascript is a scripting language, created to run in the Internet browser but later used in all places!. Javascript is always shortened as js or JS. Javascript Syntax: Variables // declare a variable var ourName; // store values myNumber = 5; myString = "myVar"; // declare variables with the assignment operator var myNum = 0; // add, subtract, multiply and divide numbers myVar = 5 + 10; // 15 myVar = 12 - 6; // 6 myVar = 13 * 13; // 169 myVar = 16 / 2; // 8 // increment and decrement numbers i++; // the equivalent of i = i + 1 i--; // the equivalent of i = i - 1; // decimals var ourDecimal = 5.