Skip to content

Instantly share code, notes, and snippets.

View AyaanZaveri's full-sized avatar
🚀

Ayaan AyaanZaveri

🚀
  • Toronto, Ontario
  • 23:22 (UTC -04:00)
View GitHub Profile
survived sex age n_siblings_spouses parch fare class deck embark_town alone
0 male 22.0 1 0 7.25 Third unknown Southampton n
1 female 38.0 1 0 71.2833 First C Cherbourg n
1 female 26.0 0 0 7.925 Third unknown Southampton y
1 female 35.0 1 0 53.1 First C Southampton n
0 male 28.0 0 0 8.4583 Third unknown Queenstown y
0 male 2.0 3 1 21.075 Third unknown Southampton n
1 female 27.0 0 2 11.1333 Third unknown Southampton n
1 female 14.0 1 0 30.0708 Second unknown Cherbourg n
1 female 4.0 1 1 16.7 Third G Southampton n
survived sex age n_siblings_spouses parch fare class deck embark_town alone
0 male 35.0 0 0 8.05 Third unknown Southampton y
0 male 54.0 0 0 51.8625 First E Southampton y
1 female 58.0 0 0 26.55 First C Southampton y
1 female 55.0 0 0 16.0 Second unknown Southampton y
1 male 34.0 0 0 13.0 Second D Southampton y
1 female 15.0 0 0 8.0292 Third unknown Queenstown y
0 female 8.0 3 1 21.075 Third unknown Southampton n
0 male 21.0 0 0 8.05 Third unknown Southampton y
0 female 18.0 2 0 18.0 Third unknown Southampton n
@AyaanZaveri
AyaanZaveri / flask.py
Last active October 13, 2021 14:14
Flask Boilerplate
from flask import Flask, render_template, session
from flask import request
app = Flask(__name__)
app.secret_key = "abc"
@app.route('/', methods=['GET','POST'])
def process():
name = request.form.get('name','')
@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>
/*! 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,
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.
@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]}`)
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 / 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):