Skip to content

Instantly share code, notes, and snippets.

@lovincyrus
lovincyrus / functions.ts
Created November 8, 2023 00:42
Functions calling for GitHub API
import { CompletionCreateParams } from "openai/resources/chat/index";
export const functions: CompletionCreateParams.Function[] = [
{
name: "get_repository_content",
description:
"Get the content of a file or directory in a GitHub repository.",
parameters: {
type: "object",
properties: {
@lovincyrus
lovincyrus / spreadsheet2json.json
Created August 18, 2020 17:25
spreadsheet2json.json
[
{
"name": "A",
"referenceOnlyHighLevelCategory": "Cosmos Hub",
"status": "Blockchain",
"hasDocs": "Mainnet",
"cosmosSdk": true,
"tendermint": false,
"ibcSupport": false,
"docsLink": false,
@lovincyrus
lovincyrus / app.json
Created July 10, 2020 15:15
app.json
// app.json
// type: app or tool
// attributes for searching: name
// attributes for displaying: short_description, developer, social_links
// attributes for customizing ranking: stargazers_count, popularity, alexa
// attributes for filtering: categories, platforms, wallet_platforms, lang
// is_verified: (https://developer.github.com/marketplace/#apps)
@lovincyrus
lovincyrus / netlify.yml
Created July 2, 2020 16:16
netlify.yml
[[headers]]
for = "/*"
[headers.values]
Cache-Control = "public, max-age=360000"
# https://community.netlify.com/t/headers-issue-with-cloud-typography-causing-403-error/642
[[redirects]]
from = "cloud-typography/fonts.css"
to = "https://cloud.typography.com/6138116/6541612/css/fonts.css"
status = 200
/*
TODO:
create /how-to-buy.html?address=0x123
value will be passed
*/
document.getElementById("coinbase").addEventListener("click", CoinBaseBuyWidget());
document.getElementById("shapeshift").addEventListener("click", ShapeShiftBuyWidget());
document.getElementById("changelly").addEventListener("click", ChangellyBuyWidget());
@lovincyrus
lovincyrus / checkpip.py
Created February 14, 2017 01:16
Check pip installed packages
import pip
installed_packages = pip.get_installed_distributions()
installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
for i in installed_packages])
print(installed_packages_list)

Keybase proof

I hereby claim:

  • I am lovincyrus on github.
  • I am lovincyrus (https://keybase.io/lovincyrus) on keybase.
  • I have a public key whose fingerprint is 422D 07F2 4168 3E09 18FD AE64 0937 27A8 5758 DAD4

To claim this, I am signing this object: