Skip to content

Instantly share code, notes, and snippets.

View timigod's full-sized avatar
🏠
Working from home

Timi Ajiboye timigod

🏠
Working from home
View GitHub Profile

HTML Basics

HTML stands for Hyper Text Markup Language.

HTML is the markup language used for creating Web pages. HTML describes the structure of a Web page (to browsers) in terms of elements. HTML elements are the building blocks of a Web page and they're represented by HTML Tags.

You can start writing HTML right away with any text editor (TextEdit, Notepad). All you need to do is save the file with a .html file extension and you can test anything you've written by opening up the file (in the browser).

HTML Tags

JavaScript Basics

JavaScript is a programming language used (mostly) for Web Development. It's the programming language responsible for a large lot of the interactions you perform when you're clicking around (submitting forms, dragging and dropping etc) on a Webpage.

All modern browsers can interpret JavaScript and all you need to get started is a text editor (e.g TextEdit, Notepad), but you're advised to get a slightly fancier kind of text editor called an IDE (Integrated Development Environment) like SublimeText, Atom or VS Code.

In this chapter, you'll be getting an introduction to writing the latest version of JavaScript.

Variables

@timigod
timigod / ApiError.java
Created August 13, 2017 14:35
Class to get JSON body parameters from Retrofit 2 errors
public class ApiError {
public String error = "An error occurred";
public ApiError(Throwable error) {
if (error instanceof HttpException) {
String errorJsonString = null;
try {
errorJsonString = ((HttpException)
error).response().errorBody().string();
} catch (IOException e) {
@timigod
timigod / .gitignore_unity
Created November 14, 2016 14:25
Global .gitignore for Unity, Xamarin, Visual Studio with Xamarin, Monodevelop and Resharper add on
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
@timigod
timigod / test_home_circuit.ino
Last active October 10, 2016 04:10
Test home automation model circuit. For chunksofco.de
#include <Servo.h>
Servo frontDoor;
Servo garageDoor;
int lightDining = 11;
int lightOutside = 10;
int lightKitchen = 9;
int lightLivingroom = 8;
@timigod
timigod / home_pubnub.ino
Created September 13, 2016 21:41
Arduino code for home automation model project
#include <JsonArray.h>
#include <JsonHashTable.h>
#include <JsonObjectBase.h>
#include <JsonParser.h>
#include <Bridge.h>
#include <HttpClient.h>
#include <Servo.h>
HttpClient client;