Skip to content

Instantly share code, notes, and snippets.

View AyaanZaveri's full-sized avatar
🚀

Ayaan AyaanZaveri

🚀
  • Toronto, Ontario
  • 06:53 (UTC -05:00)
View GitHub Profile
{
"format": "layers-model",
"generatedBy": "keras v2.7.0",
"convertedBy": "TensorFlow.js Converter v3.13.0",
"modelTopology": {
"keras_version": "2.7.0",
"backend": "tensorflow",
"model_config": {
"class_name": "Sequential",
"config": {
@AyaanZaveri
AyaanZaveri / buttons.html
Last active February 4, 2022 02:48
Tailwind CSS Buttons
<div class="h-screen mt-3">
<div class="flex flex-wrap justify-center items-center gap-y-3 gap-x-3">
<button type="button" class="focus:ring-rose inline-flex items-center px-4 py-2 hover:text-rose-500 text-rose-500 active:text-rose-500 text-sm font-medium active:bg-rose-100 bg-white hover:bg-rose-50 border focus:border-rose-500 focus:ring ring-rose-300 border-rose-300 rounded-md focus:outline-none transition"><svg xmlns="http://www.w3.org/2000/svg" class="-ml-1 mr-2 w-5 h-5 dark:text-rose-300 text-rose-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" /></svg>
Delete
</button>
<button type="button" class="focus:ring-rose inline-flex items-center px-4 py-2 hover:text-orange-500 text-orange-500 active:text-orange-500 text-sm font-medium active:bg-orange-100 bg-white hover:bg-orange-50 border focus:borde
@AyaanZaveri
AyaanZaveri / mathextension.py
Last active December 1, 2021 03:31
Math Extension #7
#!/usr/bin/env python3
from itertools import permutations
nums = [2124, 1984, 1724, 2344, 2074, 1632]
combination = permutations(nums, 4)
for i in combination:
sumofnums = i[0] + i[1] + i[2] + i[3]
i = list(i)
if sumofnums / 4 == 2021:
@AyaanZaveri
AyaanZaveri / twister.py
Last active November 26, 2021 22:35
Aaron's Thing
#Importing the module that controls the keyboard.
import pyautogui as pag
#Importing the module that allows the program to sleep.
from time import sleep
#Making the program sleep for a 3 seconds.
sleep(3)
#Function that recieves the sentence and splits it's it into a list for pyautogui.
def words(sentence):
Human: How big is the sun?
AI: The sun is about 1.39 million kilometers (864,000 miles) in diameter. (The diameter we see is from Earth's perspective, but the sun is much bigger from the sun's perspective.)
Human: How hot is the sun?
AI: The temperature inside the sun is about 15 million degrees Celsius. (It is much hotter than that, but we cannot see the temperature from here because of the size of the sun.)
Human: How many planets are there?
AI: There are eight planets in our solar system.
Human: Can we see the other planets?
@AyaanZaveri
AyaanZaveri / app.js
Last active November 18, 2021 22:13
Enabling MetaMask with an Asynchronous Function.
async function eth(){
window.ethereum.enable();
const accounts = await ethereum.request({ method: 'eth_accounts' });
if (ethereum.isMetaMask) {
console.log(`MetaMask Is Installed.`);
} else {
console.log(`MetaMask Is Not Installed.`);
}
if (accounts.length !== 0) {
console.log(`Connected Account: ${accounts[0]}`)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*! For license information please see handtrack.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.handTrack=t():e.handTrack=t()}(self,(function(){return(()=>{var e={377:(e,t,n)=>{var s=n(832),a=n(652),r=n(801),i=n(30),o=n(618),l=n(49),u=n(971);u.alea=s,u.xor128=a,u.xorwow=r,u.xorshift7=i,u.xor4096=o,u.tychei=l,e.exports=u},832:function(e,t,n){var s;!function(e,a,r){function i(e){var t,n=this,s=(t=4022871197,function(e){e=e.toString();for(var n=0;n<e.length;n++){var s=.02519603282416938*(t+=e.charCodeAt(n));s-=t=s>>>0,t=(s*=t)>>>0,t+=4294967296*(s-=t)}return 2.3283064365386963e-10*(t>>>0)});n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=s(" "),n.s1=s(" "),n.s2=s(" "),n.s0-=s(e),n.s0<0&&(n.s0+=1),n.s1-=s(e),n.s1<0&&(n.s1+=1),n.s2-=s(e),n.s2<0&&(n.s2+=1),s=null}function o(e,t){return t.c=e.c,t.s0=e.s0,
@AyaanZaveri
AyaanZaveri / input.html
Last active October 23, 2021 02:40
Tailwind CSS Input
<div class="flex justify-center p-2">
<input
class="text-sm leading-3 focus:outline-none text-gray-500 w-64 focus:border-2 focus:border-indigo-500 h-10 rounded m-3 p-2 bg-white shadow border-[1px] border-gray-300"
placeholder="[email protected]">
</div>