Skip to content

Instantly share code, notes, and snippets.

@ross-u
ross-u / REAMDE.md
Created April 5, 2020 16:11
LAB SOLUTION | Vikings - OOP (ES6)
@ross-u
ross-u / README.md
Created April 3, 2020 20:26
JS | OOP - ES6 class

JS | Object Oriented Intro - Part 2 - class and keyword new

Object-oriented programming (OOP) is a programming paradigm (model/standard) based on the concept of “objects”, which can contain data, in the form of attributes / properties ), and code in the form of functions/procedures ( known as methods).

Objects are the main key/tool/means of OOP. We will try to explain this through example.

@ross-u
ross-u / README.md
Last active March 29, 2020 17:01
Bash script for creating basic project stucture for containing HTML, CSS and JS

Basic project structure - bash script

cd /usr/local/bin

# Create the file
touch vanilla-js

# Copy paste the content from the provided vanilla-js file
@ross-u
ross-u / README.md
Last active August 8, 2024 12:50
Webinar webinar-portfolio-html-css-resources

Materials

Presentation

Feel free to use this presentation as a reference.

Starting Code

Open this CodeSandbox and start editing. It will automatically create a fork (that is, a duplicate) for you to work on.

@ross-u
ross-u / enterpreneur-quotes.json
Created March 18, 2020 09:23 — forked from b1nary/enterpreneur-quotes.json
325 Enterpreneur Quotes as JSON
[
{
"text":"The only people who never fail are those who never try.",
"from":"Ilka Chase"
},
{
"text":"Failure is just another way to learn how to do something right.",
"from":"Marian Wright Edelman"
},
{
@ross-u
ross-u / README.md
Last active March 15, 2020 17:47
JS | Closure - Summary

JS | Closure


Scope

Global scope — The default environment where your code is executed for the first time.

@ross-u
ross-u / Upload.js
Last active August 9, 2022 06:01
Cloudinary audio file upload - React , Node & Express
// client
// src/components/Upload.js
import React, { Component } from "react";
import trackService from "../lib/track-service";
class Upload extends Component {
state = {
file: null,
@ross-u
ross-u / README.md
Last active September 17, 2022 20:16
M3 - Heroku Deployment (client and sever) - React & Express

M3 Deployment to Heroku - React & Express


1. Login to the Heroku website and Create New App


function calculate (a, b) {
var sum = a + b;
var product = sum * 2;
return product;
}
calculate (10, 5)