Skip to content

Instantly share code, notes, and snippets.

View heyAyushh's full-sized avatar
🎬
Hello, hello, hello.. Is there anybody in there?

Ayush heyAyushh

🎬
Hello, hello, hello.. Is there anybody in there?
View GitHub Profile
{
"name": "test token",
"symbol": "TEST",
"description": "Test Token On Solana",
"image": "https://raw.githubusercontent.com/solana-developers/opos-asset/main/assets/DeveloperPortal/image.png",
"attributes": [
{
"trait_type": "Item",
"value": "Developer Portal"
}
@heyAyushh
heyAyushh / .oh-my-posh.json
Last active June 27, 2021 14:43
My oh-my-posh & Windows Terminal config & powershell profile
{
"final_space": true,
"osc99": false,
"console_title": false,
"console_title_style": "",
"console_title_template": "",
"terminal_background": "",
"blocks": [
{
"type": "prompt",
body {
background-color: black;
color: coral;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.Section1 {
border-style: dotted;
border-color: darkseagreen;
margin-left: 150px;
@heyAyushh
heyAyushh / theme.js
Created August 29, 2020 02:11
My theme for rebass
import preset from "@rebass/preset";
const heading = {
fontFamily: "heading",
fontWeight: "heading",
lineHeight: "heading"
};
export default {
...preset,
### Keybase proof
I hereby claim:
* I am heyayushh on github.
* I am heyayushh (https://keybase.io/heyayushh) on keybase.
* I have a public key ASCIpdtPX4csUYQ3PEp738OLEQsM844Ux896gUQmksfAWQo
@heyAyushh
heyAyushh / open-in-vscode-insiders
Created October 24, 2019 14:43
Open in VSCode Insiders from Finder application macOS
(*
Open in VS Code
To use:
* Drag Open In VS Code to the toolbar of any finder
window to add it to the toolbar
*)
on run
tell application "Finder"
if selection is {} then
//Exercise 2.13
import React, { useState, useEffect } from "react";
import axios from "axios";
const apiKey = "&APPID=594457c9c417b2458169c5b096828c87";
const weatherUrl = "https://api.openweathermap.org/data/2.5/weather?q=";
const App = props => {
const [countries, setCountries] = useState([]);
@heyAyushh
heyAyushh / index.js
Created July 4, 2019 22:26
Basic url redirector on Azure functions
module.exports = async function(context, req) {
context.log("JavaScript HTTP trigger function processed a request.");
if (req.query.url) {
context.res
.status(302)
.set("location", req.query.url)
.send();
} else {
context.res
.status(400)
@heyAyushh
heyAyushh / index.js
Last active June 21, 2019 11:39
invokes heyjumblr
// to be renamed /root/invoke/index.js
var axios = require("axios");
module.exports = function(context, req) {
context.log("JavaScript HTTP trigger function processed a request.");
thes = req.body.session.split("/");
thes = thes[4];
req.body.session = thes;
@heyAyushh
heyAyushh / heyjumblr.js
Last active June 22, 2019 11:26
heyjumblr
// to be renamed root/heyjumblr/index.js
var randomWord = require("random-word");
let azure = require("azure-storage");
let connectionString = "connectionstring for azure storage"
var axios = require("axios");
function check(temp, word) {
if (temp == word) return 1;