Skip to content

Instantly share code, notes, and snippets.

View technoglot's full-sized avatar

Amelia Vieira Rosado technoglot

  • Willemstad, Curacao
View GitHub Profile
@technoglot
technoglot / truffle-webinar-notes.md
Last active May 9, 2019 19:55
Truffle Webinar. Webinar Hosts: Kevin McGuire & Ben Burns.

Introduction to Web 3.0

  • Web 1.0: was static in nature and pretty much read-only. Consisted mostly of static web pages or just plain HTML. Websites were not user-friendly, dynamic or interactive.
  • Web 2.0: an upgraded version of Web 1.0 that allows for read and write operations. Here interactivity was introduced into websites for the first time, mainly through JavaScript. Websites were made to be more appealing through the use of CSS. Web 2.0 brought more centralization with it, however.
  • Web 3.0: will introduce a new paradigm to the internet as we now know it. It will be unmediated, uncensored and always available. It will be decentralized in nature and have the read write capabilities of Web 2.0.

Why is Web 3.0 relevant for enterprise?

  • New business models will be born out of it
  • Reduced cost of trust
  • Improved efficiency
  • Future-proofing business
@technoglot
technoglot / 01-fan-object-java-oop.md
Last active May 1, 2019 02:54
Collection of Java programming exercises introducing OOP concepts.
package fan;
public class Fan {
    public static void main(String[] args) {
    Fan1 fan = new Fan1();//object 1
    Fan1 fan1 = new Fan1();//object 2
    
    fan.setSpeed(fan.FAST); fan.setRadius(10); fan.setColor("yellow"); fan.setOn(true);
    fan1.setSpeed(fan1.MEDIUM); fan1.getRadius(); fan1.getColor(); fan.isOn();
    
@technoglot
technoglot / 01-check-substring-java.md
Last active May 1, 2019 03:03
Collection of various Java programming exercises.
import java.util.Scanner;

public class CheckSubstring {
    
    public static void main(String[] args) {
      Scanner input = new Scanner(System.in);
      
      System.out.print("Enter the frist string: ");
 String s1 = input.nextLine();
@technoglot
technoglot / 01-stack-java.md
Created May 1, 2019 01:48
Collection of common data structures implemented in Java.
import java.util.Stack;

public class Stack {

    public static void main(String[] args) {

        Stack<Integer> stack = new Stack<Integer>();

        push(stack);
@technoglot
technoglot / 01-binary-search-java.md
Last active May 1, 2019 01:35
Collection of popular sorting algorithms programmed in Java.
public class BinarySearch {

    public static void main(String[] args) {
        //Make an array
        int[] intArray = {25, 52, 4, 79, 23, 80, 77, 54, 45, 11, 5, 100, 27, 25, 45, 1, 4, 2, 9, 33};

        //Call Selection Sort Method
        printArray(intArray);
        sortMethod(intArray);
@technoglot
technoglot / 01-hoisting-in-js.md
Last active April 30, 2019 19:25
Collection of JavaScript concepts explained.

What is hoisting in JS?

Basically, when JavaScript compiles all of your code, all variable declarations using var are hoisted/lifted to the top of their functional/local scope (if declared inside a function) or to the top of their global scope (if declared outside of a function) regardless of where the actual declaration has been made. This is what we mean by “hoisting”.

Functions declarations are also hoisted, but these go to the very top, so will sit above all of the variable declarations.

However, a key thing to note is that the only thing that gets moved to the top is the variable declarations , not the actual value given to the variable.

All declarations (var, let, const, function, function*, class) are "hoisted" in JavaScript.

Note

@technoglot
technoglot / git-cheat-sheet.md
Last active April 30, 2019 16:18
Git Commands Cheat Sheet
Git Command Description
git init Initializes a git repository within the current directory/folder
touch Creates a new file within the current directory/folder
code . Opens files in Visual Studio Code
git status Checks the status of all staged files. Changes can be tracked or untracked
git add Adds a single file to the staging area
git add . Adds all files to the staging area
git rm --cached
ls Lists the contents of the current directory/folder
@technoglot
technoglot / 01-intro-to-js.md
Last active April 28, 2019 04:12
Simple introduction to JavaScript ES6 with code examples
// this is an in-line comment

/*
this 
is
a
multi-line
comment
*/
@technoglot
technoglot / project-proposal-template.md
Last active April 3, 2020 02:47
Project proposal template that you can use to write a concise project proposal and keep your ideas documented and organised.

Project Proposal Template/Boilerplate

Project Name/Title

Name of the project.

Date 

Date and time of creation.

Last Updated On

Date and time when the document was last updated.