Skip to content

Instantly share code, notes, and snippets.

View rag594's full-sized avatar
🎯
Focusing

Raghav Rastogi rag594

🎯
Focusing
View GitHub Profile
@rag594
rag594 / gopher-lua-poc.go
Created January 26, 2024 17:22
gopher-lua-poc
package main
import (
"fmt"
"reflect"
"strings"
"github.com/yuin/gluamapper"
lua "github.com/yuin/gopher-lua"
)
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"sync"
@rag594
rag594 / goroutines-incorrect.go
Created August 9, 2023 16:49
goroutines-incorrect
package main
import (
"fmt"
"net/http"
"sync"
"time"
"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
@rag594
rag594 / Error.txt
Last active December 4, 2019 18:20
... compile gerbil/expander/common.ss
0 [main] gsi 62582 child_info_fork::abort: address space needed by 'core__1.o1' (0x670000) is already occupied
*** ERROR IN gxc#gsc-compile-file -- Resource temporarily unavailable
(open-process '(path: "gsc" arguments: ("/home/Raghav/gerbil/lib/gerbil/expander/common__rt.scm") stdout-redirection: #f))
*** ERROR; build failed
... compile gx-gambc
... compile gx-gambc0
... compile gx-gambc1
... compile gx-gambc2
>>> preparing core build
'gerbil/prelude/core.ssxi.ss' -> '/home/Raghav/gerbil/lib/gerbil/core.ssxi.ss'
'gerbil/runtime/gx-gambc#.scm' -> '/home/Raghav/gerbil/lib/static/gx-gambc#.scm'
'gerbil/runtime/gx-gambc.scm' -> '/home/Raghav/gerbil/lib/static/gx-gambc.scm'
'gerbil/runtime/gx-gambc0.scm' -> '/home/Raghav/gerbil/lib/static/gx-gambc0.scm'
'gerbil/runtime/gx-gambc1.scm' -> '/home/Raghav/gerbil/lib/static/gx-gambc1.scm'
@rag594
rag594 / crw_server.cpp
Created April 14, 2019 15:35
Simple Hello World using Crow
#include "crow_all.h"
int main()
{
crow::SimpleApp app;
CROW_ROUTE(app, "/helloworld")
([]{
crow::json::wvalue x;
x["message"] = "Hello, World!";
from ksql import KSQLAPI
from influxdb import InfluxDBClient
import json
import requests
HOST="XX.XX.XX.XX"
INFLUX_PORT=XXXX
KSQL_API="http://XX.XX.XX.XX:XXXX"
INLUX_API="http://XX.XX.XX.XX:XXXX"
-- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Host: localhost:8889
-- Generation Time: Oct 14, 2016 at 08:11 AM
-- Server version: 5.5.42
-- PHP Version: 5.6.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";