Skip to content

Instantly share code, notes, and snippets.

View rhnvrm's full-sized avatar
🔧
Building things

Rohan Verma rhnvrm

🔧
Building things
View GitHub Profile
@rhnvrm
rhnvrm / libsoy_build_error.sh
Last active March 1, 2016 23:26
Build error using libsoy on Ubuntu 14.04
rohan@rohan-K53SV:/media/rohan/2534448c-a1f4-4ca8-91d9-47e40de49361/copyleft_games/libsoy$ ./waf configure
Setting top to : /media/rohan/2534448c-a1f4-4ca8-91d9-47e40de49361/copyleft_games/libsoy
Setting out to : /media/rohan/2534448c-a1f4-4ca8-91d9-47e40de49361/copyleft_games/libsoy/build
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for program 'pkg-config' : /usr/bin/pkg-config
Checking for 'gobject-2.0' >= 2.32 : yes
Checking for 'gthread-2.0' >= 2.32 : yes
Checking for program 'valac-0.26' : not found
Checking for program 'valac-0.24' : not found
Checking for program 'valac-0.22' : /usr/bin/valac-0.22
@rhnvrm
rhnvrm / hackerearth_scrape_input_data_script.js
Created March 3, 2016 15:38
Scrape HackerEarth Input Data
t = document.getElementsByTagName('tr')
for(i = 0; i < t.length; i++){
u = t[i].getElementsByTagName('a')[0];
if(u!=undefined)
window.open(u.href)
}

Keybase proof

I hereby claim:

  • I am rhnvrm on github.
  • I am rhnvrm (https://keybase.io/rhnvrm) on keybase.
  • I have a public key whose fingerprint is 437E 4108 DCE7 EDDC 44BC B4C6 C8E8 5561 2971 CC42

To claim this, I am signing this object:

@rhnvrm
rhnvrm / check_diffs_status.sh
Last active July 10, 2018 07:56
Conduit (Phabricator API) Check Diff Status Script for use in WTF Terminal Dashboard
echo '{
"authors": [
"PHID-USER-jbsqsep23tcxn5l3ob3y"
],"status":"status-open"
}' | arc call-conduit differential.query | \
python3 -c "import sys, json;
r = json.load(sys.stdin)['response'];
l = [(x['uri'], x['statusName'], x['title']) for x in r];
display = \"{}\t{}\t{}\"
print(\"My Open Diffs:\")
@rhnvrm
rhnvrm / benchmark.py
Created July 20, 2018 09:17
Script to Benchmark TimescaleDB Multivalue Inserts
from numpy import random
import logging
import datetime
import os
from functools import reduce
import os
import multiprocessing
import tqdm
@rhnvrm
rhnvrm / msgp_lazy_serialization.go
Last active July 24, 2018 12:06
Example of Lazy Serialization using msgp (go generate based MessagePack library) enveloping
package main
import (
"fmt"
"github.com/tinylib/msgp/msgp"
)
//go:generate msgp
@rhnvrm
rhnvrm / main.go
Created August 9, 2018 07:08
Tag Spotify Top Tracks with Lyrics
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strconv"
"github.com/rhnvrm/lyric-api-go"
@rhnvrm
rhnvrm / README.md
Created January 18, 2019 07:31
Kite Trade CLI Chart Example

image

@rhnvrm
rhnvrm / bench_expression_engines_test.go
Last active July 24, 2023 12:41
Benchmark Results of govaluate vs cel-go
package main
import (
"fmt"
"testing"
"github.com/Knetic/govaluate"
"github.com/google/cel-go/cel"
"github.com/google/cel-go/checker/decls"
"github.com/google/cel-go/common/types"
@rhnvrm
rhnvrm / coffin_dance.rb
Created May 14, 2020 18:46
Coffin Dance in Sonic Pi
live_loop :beat do
sample :bd_haus, rate: 1
sleep 0.25
sync :melody
end
notes = []
delays = []
notes = [:G4, :G4, :D5, :C5, :As4, :A4, :A4, :C5, :As4, :A4]