Skip to content

Instantly share code, notes, and snippets.

View 1UC1F3R616's full-sized avatar
:shipit:
Attention is All You Need

Kush Choudhary 1UC1F3R616

:shipit:
Attention is All You Need
View GitHub Profile
@1UC1F3R616
1UC1F3R616 / Must use VScode Key Bindings.md
Last active October 23, 2021 05:53
some important and frequently used key bindings in VScode

I may be using modified ones

Comment

ctrl + / -> Inline Comment
ctrl + shift + / -> Block Comment

Indenting / Outdenting

ctrl + ] -> Move current selection towards left
ctrl + [ -> Move current selection towards right

npx create-react-app myapp

// Import the React and ReactDOM libraries
// Create a react component
// Take the react component and show it on the screen
- setting states in Class based component is done by simply `state = { var1: [], var2: 'value' }`
@1UC1F3R616
1UC1F3R616 / AutoScroll.md
Created June 21, 2020 20:06
UI UX | It does matter :)
const autoscroll = () => {
    // New message element
    const $newMessage = $messages.lastElementChild

    // Height of the new message
    const newMessageStyles = getComputedStyle($newMessage)
    const newMessageMargin = parseInt(newMessageStyles.marginBottom)
    const newMessageHeight = $newMessage.offsetHeight + newMessageMargin

4a

#include <stdio.h> 
#include <stdlib.h> 
#include <mpi.h> 
void my_bcast(void *data, int count, MPI_Datatype datatype, int root, MPI_Comm communicator) 
{ 
    int world_rank; 
    MPI_Comm_rank(communicator, &world_rank); 
    int world_size; MPI_Comm_size(communicator, &world_size); 

UnSupervised Learning

Getting word vector for a Typical Browser

documents=['cats say meow', 'dogs say woof', 'dogs chase cats']
# Import TfidfVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer

# Create a TfidfVectorizer: tfidf
tfidf = TfidfVectorizer() 

High Fidelity:

  • version with fonts, colors
  • it looks like a final product

WireFraming (Low Fidelity):

  • one color
  • very basic
  • how easy it is, steps

analytics.google.com

Basic Example

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

Ethereum

  • Ethereum networks are used to transfer money and store data
  • There are many different Ethereum networks
  • Networks are formed by one or more nodes
  • Each node is a machine running an Ethereum client
  • Anyone can run a node
  • Each node can contain a full copy of the blockchain
  • The 'blockchain' is a database that stores a record of every transaction that has ever taken place

Interfaceing with Ethereum Networks

@1UC1F3R616
1UC1F3R616 / EssentialsOfML.md
Last active May 9, 2020 09:43
Some Key Points from TEMP005 Course Offered by VIT-VELLORE IN Summers2020

Extras

sklearn pipeline understanding

from sklearn import datasets
iris = datasets.load_iris()

X = iris.data
y = iris.target
@1UC1F3R616
1UC1F3R616 / Rcourse.md
Last active May 4, 2020 21:41
CourseCode: TEMP003 | Programmin in R | VIT Vellore

This are my Notes for Course TEMP003 from VIT-Vellore (offered in Summers-2020)

  • I Advice to use Jupyter Notebook to code R in fly even with your Mobile.

Concatination

fName = "Kush"
lName = "Choudhary"
FullName = paste(fName, lName)
print(FullName)