Skip to content

Instantly share code, notes, and snippets.

View mike-luabase's full-sized avatar

Mike Ritchie mike-luabase

View GitHub Profile
[
{
"Database": "PostgreSQL",
"Frequency_2023": 34909,
"Percentage_2023": 45.55,
"Percentage_2024": 48.7,
"growth": 1.0691547749725578
},
{
"Database": "MySQL",
@mike-luabase
mike-luabase / luabase_api.ipynb
Last active August 29, 2022 13:27
q.luabase.com testing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const API_URL = 'https://app.posthog.com/';
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS',
'Access-Control-Max-Age': '86400',
};
const ORIGIN = new URL(API_URL).origin
var supdb = openDatabase('[email protected]', '262', 'blah', 2 * 1024 * 1024);
function successHandler(tx, results) {
var arr = []
console.log('found: ', results.rows.length)
for (let i = 0; i < results.rows.length; i++) {
let row = results.rows.item([i]);
arr.push(row)
}
console.log(arr)
import pandas as pd
import requests
url = "https://api.luabase.com/run"
address = "0x283af0b28c62c092c9727f1ee09c02ca627eb7f5"
payload = {
"uuid": "b84f9d2ca5204449a42e96eaca30954b",
"parameters": {
"address": {
"value": address,