Skip to content

Instantly share code, notes, and snippets.

View deependersingla's full-sized avatar

Deepender Singla deependersingla

View GitHub Profile
def get_metadata(body_type):
api_url = 'https://api.hyperliquid.xyz/info'
headers = {
'Content-Type': 'application/json',
}
body = {
"type": body_type
}
response = requests.post(api_url, json=body, headers=headers)
data = response.json()
0xD4211635B749e874F8f09974fe3D66FebE7ccd47 --2
0x3193641d67c899Dd09482C5A42809a2D5842E14D ---3
@deependersingla
deependersingla / gist:745e0d37a195d84625acb2684e9c184a
Last active April 10, 2023 05:27
Sui: The Revolutionary Crypto Ecosystem Outshining Other L1 Platforms
Introduction
The world of blockchain and cryptocurrency has come a long way since the inception of Bitcoin in 2009. Over the past decade, numerous blockchain platforms and cryptocurrencies have emerged, aiming to offer unique features and improve upon existing technology. One of the latest and most promising additions to this space is Sui, a new Layer-1 (L1) cryptocurrency ecosystem. In this blog post, we will explore Sui in detail and discuss its numerous benefits over other L1 platforms in the ecosystem.
What is Sui?
Sui is a next-generation L1 blockchain platform designed to create a more accessible, efficient, and scalable ecosystem for decentralized applications (dApps) and digital assets. Built on a unique consensus algorithm and state-of-the-art infrastructure, Sui aims to revolutionize the way we interact with blockchain technology and cryptocurrency.
Benefits of Sui
{
"status": "success",
"data": {
"status": 200,
"listingName": "Muffakham Jah College of Engineering and Technology",
"abbrevation": "MJCET",
"secondaryName": null,
"listingNameWithCityLocality": "Muffakham Jah College of Engineering and Technology, Hyderabad",
"listingId": 20684,
"listingType": "institute",
<cartridge_basiclti_link
xmlns="http://www.imsglobal.org/xsd/imslticc_v1p0"
xmlns:blti="http://www.imsglobal.org/xsd/imsbasiclti_v1p0"
xmlns:lticm="http://www.imsglobal.org/xsd/imslticm_v1p0"
xmlns:lticp="http://www.imsglobal.org/xsd/imslticp_v1p0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://www.imsglobal.org/xsd/imslticc_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticc_v1p0.xsd http://www.imsglobal.org/xsd/imsbasiclti_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imsbasiclti_v1p0p1.xsd http://www.imsglobal.org/xsd/imslticm_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd http://www.imsglobal.org/xsd/imslticp_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd">
<blti:title>Accredible</blti:title>
<blti:description>
<!--[CDATA[The Accredible platform enables organizations to create, manage and distribute digital credentials as digital certificates or open badges.
An example digital certificate and badge can be viewed here:
inputs
[ -1.86999472e-03 -1.86999472e-03 -7.90829637e-04 -7.90829637e-04
-9.44041147e-04 -7.81275432e-04 -8.95984361e-04 -1.13193104e-03
-1.80833299e-03 -1.80833299e-03 -1.15046631e-03 -1.15046631e-03
-7.00553926e-04 -8.14464897e-04 -8.15261699e-04 -6.52209359e-04
-1.48519295e-03 -1.48519295e-03 -1.20080380e-03 -1.14362267e-03
-9.12988897e-04 -9.61851973e-04 -1.12597911e-03 -8.15793767e-04
-6.53803091e-04 8.66289095e-04 8.17855420e-05 1.54565825e-03
-5.87457776e-04 1.12596074e-03 5.55455719e-04 1.79621163e-03
1.90544729e-03 5.38920689e-04 1.66011073e-03 1.38812905e-04
from ib.opt import ibConnection, message
from ib.ext.Contract import Contract
from time import sleep, strftime
from ib.ext.TickType import TickType as tt
import pdb
def error_handler(msg):
print (msg)
PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.accredible.com/v1/credentials");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_POST, TRUE);
{
"credential": {
"recipient": {
"name": "John Doe",
"email": "[email protected]"
},
"custom_attributes": "{\"PRMIA_Certificate_Number\":\"qJN6d2r\"}",
"cohort_id": "10830"
}
}
{
"credential": {
"name": "Example Course",
"description": "This course provides an introduction to example. The recipient has proved their competency in example. They also demonstrated proficiency in example subject.",
"provider": "Example Provider",
"issued_on": "2015-07-03T07:10:04.306Z",
"achievement_id": "courseExample",
"course_link": "http://example.com",
"complete": true,
"approve": true,