Skip to content

Instantly share code, notes, and snippets.

View tiwariayush's full-sized avatar

Ayush Tiwari tiwariayush

  • Paris, France
View GitHub Profile
@tiwariayush
tiwariayush / private_fork.md
Created December 5, 2024 22:44 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

Item In Stock Price
Python Hat True 23.99
SQL Hat True 23.99
Codecademy Tee False 19.99
Codecademy Hoodie False 42.99
Item In Stock Price
Python Hat True 23.99
SQL Hat True 23.99
Codecademy Tee False 19.99
Codecademy Hoodie False 42.99
@tiwariayush
tiwariayush / FB HTTP Request.js
Created June 26, 2021 15:59
Sandboxed JavaScript to make HTTP request from Google Tag Manager
return function(gtmData, headers, apiUrl) {
const injectScript = require('injectScript');
const callInWindow = require('callInWindow');
const log = require('logToConsole');
const queryPermission = require('queryPermission');
const httpScriptUrl = 'https://storage.googleapis.com/common-scripts/basicMethods.js';
const endpoint = apiUrl + '/v1/webhook/facebook_capi/send_event/';
//Send a request
//Must send methid as a string, url as a string, data as an object, headers as an array of objects
window.sendRequest = (method,url,data,headers) =>{
let xhr = new XMLHttpRequest();
let json = JSON.stringify(data);
xhr.open(method,url);
//Send a request
//Must send methid as a string, url as a string, data as an object, headers as an array of objects
window.sendRequest = (method,url,data,headers) =>{
let xhr = new XMLHttpRequest();
let json = JSON.stringify(data);
xhr.open(method,url);
HTML
- Semantic HTML
- Event delegation
- Accessibility / ARIA
CSS
- Specificity
- Pseudo-elements
- Pseudo-selectors
- Combinators
Data Structures
- Stacks
- Queues
- Linked lists
- Graphs
- Trees
- Tries
Concepts
- Big O Notation
@tiwariayush
tiwariayush / System Design.md
Created September 27, 2020 10:38 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.