Skip to content

Instantly share code, notes, and snippets.

View avirajkhare00's full-sized avatar
🎯
Focusing

Aviraj Khare avirajkhare00

🎯
Focusing
View GitHub Profile
@avirajkhare00
avirajkhare00 / vizceral_netflix_dependencies.json
Last active June 11, 2019 11:09
dependencies to include to build on top of vizceral
"bootstrap": "^3.3.7",
"flux": "^3.1.0",
"hammerjs": "^2.0.8",
"jquery": "^3.1.1",
"keymirror": "^0.1.1",
"keypress.js": "2.1.0-1",
"lodash": "^4.16.4",
"numeral": "^1.5.3",
"query-string": "^4.2.3",
"react": "^15.3.2",
####### License: MIT
"""MIT License
Copyright (c) 2015 Aaron Hall
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is

Keybase proof

I hereby claim:

  • I am avirajkhare00 on github.
  • I am avirajkhare00 (https://keybase.io/avirajkhare00) on keybase.
  • I have a public key ASA7d1vNooMo-Gpa6mHoSvckNiKLUdj1AtCMMeQNll1IPwo

To claim this, I am signing this object:

def getLargestString(word, k):
countArr = [0]*26
a, ans = ord('a'), []
for c in word:
countArr[ord(c)-a] += 1
i = 25
while i >= 0:
if countArr[i] > k:
letter = chr(i+a)
ans.append(letter*k)
@avirajkhare00
avirajkhare00 / index.html
Created March 26, 2021 21:46
Sample openweatherapi html code
<div class="container">
<center>
<h1>Weather API</h1>
</center>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
Current weather of <span id="cityName" style="font-weight: bold;"></span> is <span id="cityTemp" style="font-weight: bold;"></span>
</div>
<div class="col-md-2"></div>
pragma solidity ^0.4.11;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
@avirajkhare00
avirajkhare00 / ZombieFactory.sol
Created July 19, 2021 03:20
ZombieFactory smart contract
pragma solidity >=0.5.0 <0.6.0;
contract ZombieFactory {
// declare our event here
event NewZombie(uint zombieId, string name, uint dna);
uint dnaDigits = 16;
uint dnaModulus = 10 ** dnaDigits;
@avirajkhare00
avirajkhare00 / PetShop.sol
Last active August 6, 2021 09:54
PetShop
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract PetShop {
struct Pet {
uint id;
string name;
uint age;

Project Abstract

Lunatic Games Studio is the first play for lifestyle blockchain gaming edition. Through Web3, we are developing a revolutionary product that aims to impact our users' daily lives.

We are building a browser-based web3 game where users will need to stake $SLNT tokens to play.

Designed with unreal Engine 5 and in-house resources, the Lunatic Game Studio framework provides the players with a greek history with countless spells, societies abilities and environment.

Our sole mission is to ‘Add Value’ to our players lives!

const puppeteer = require('puppeteer');
const axios = require('axios');
const fs = require('fs');
(async () => {
const url = process.argv[2];
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(url);
const textToBeConverted = await page.evaluate(() => Array.from(document.querySelectorAll('p'), element => element.textContent));