Skip to content

Instantly share code, notes, and snippets.

View adarsh-gupta101's full-sized avatar
🎯
Focusing

Adarsh Gupta adarsh-gupta101

🎯
Focusing
View GitHub Profile
const dataParts = [
[
{
"data": [
".",
".",
".",
".",
".",
"➡➡➡",
@adarsh-gupta101
adarsh-gupta101 / Todo.cy.js
Created October 26, 2022 11:19
Cypress code for testing a todo app (End to End)
/// <reference types="cypress" />
// Welcome to Cypress!
//
// This spec file contains a variety of sample tests
// for a todo list app that are designed to demonstrate
// the power of writing tests in Cypress.
//
// To learn more about how Cypress works and
// what makes it such an awesome testing tool,
<html>
<body>
<div class="flex h-screen">
<div class="" style="flex:0.2">
<img class="w-24 h-24" src="https://help.twitter.com/content/dam/help-twitter/brand/logo.png" />
<span class="flex items-center p-4"><img class=" mr-3 w-8 h-8" src="https://cdn-icons.flaticon.com/png/512/2549/premium/2549900.png?token=exp=1643983665~hmac=712b8e718a70d5122baee91e998dd291"/><p class="text-2xl font-bold">Home</p></span>
<span class="flex items-center p-4"
><img class="w-8 h-8 mr-3" src="https://cdn-icons.flaticon.com/png/128/3423/premium/3423288.png?token=exp=1643983620~hmac=a35e438a21a5b7bf33ac17bb138bc958" />
<p class="text-2xl font-bold">Explore</p></span
>
@adarsh-gupta101
adarsh-gupta101 / script.js
Created January 8, 2022 03:03
threejs code
import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
import * as dat from "dat.gui";
// Debug
const gui = new dat.GUI();
// Canvas
const canvas = document.querySelector("canvas.webgl");
@adarsh-gupta101
adarsh-gupta101 / html
Created January 8, 2022 02:38
Threejs index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ThreeJS Starter</title>
</head>
<body>
<canvas class="webgl"></canvas>
</body>