Skip to content

Instantly share code, notes, and snippets.

View akash-joshi's full-sized avatar
💻
Coding

Akash Joshi akash-joshi

💻
Coding
View GitHub Profile
@akash-joshi
akash-joshi / web3fivver...index.sol
Created October 24, 2021 04:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
contract Web3Bounties {
struct Bounty {
string title;
string problemStatement;
uint256 price;
address askerAddress;
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.7.0 <0.9.0;
interface cETH {
// define functions of COMPOUND we'll be using
function mint() external payable; // to deposit to compound
cd /Users/akashjoshi/Desktop
shopt -s nullglob
for i in *.mov; do
echo "$i"
ffmpeg -i "$i" -vcodec libx265 -crf 28 "compressed-recordings/$i.output.mp4"
rm "$i"
done
// Map, Filter, Reduce, FlatMap cheatsheet 🤑
const myArray = [
{
name: "Akash",
age: 20
},
{
name: "Sagar",
age: 30
// This API needs to be deployed to a server or serverless backend.
// I used now.sh to deploy it. You can find a tutorial here : https://zeit.co/docs/v2/deployments/basics/
const { parse } = require('url');
const axios = require('axios');
module.exports = async (req, res) => {
function similarity(s1, s2) {
var longer = s1;

These are the files I need :

  • asd
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
outline: none;
6 148 72 35 0 33.6 0.627 50 1
1 85 66 29 0 26.6 0.351 31 0
8 183 64 0 0 23.3 0.672 32 1
1 89 66 23 94 28.1 0.167 21 0
0 137 40 35 168 43.1 2.288 33 1
5 116 74 0 0 25.6 0.201 30 0
3 78 50 32 88 31.0 0.248 26 1
10 115 0 0 0 35.3 0.134 29 0
2 197 70 45 543 30.5 0.158 53 1
8 125 96 0 0 0.0 0.232 54 1
@akash-joshi
akash-joshi / style.css
Created September 22, 2018 11:13
Minimum Viable CSS (boilerplate)
* {
margin: 0;
padding: 0;
box-sizing: border-box
}
input:focus,
select:focus,
textarea:focus,
button:focus {
@akash-joshi
akash-joshi / iris.py
Created August 28, 2018 02:54
Displaying some attributes about iris dataset
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 18 16:59:56 2018
@author: akash.joshi
"""
import pandas as pd
import matplotlib.pyplot as plt