Skip to content

Instantly share code, notes, and snippets.

@ChinmayPatel
ChinmayPatel / sample.js
Last active March 13, 2023 18:00
Sample Demo Script for PERCS Integration
<script type="text/javascript" src="https://assets.getpercs.com/sdk/percs.js"></script>
<script type="text/javascript">
window.PERCS.init({
clientKey: "{{clientkey}}",
apiHost: "https://api.getpercs.com",
logo: "https://assets.getpercs.com/degen-deals/logo.svg",
})
</script>
@ChinmayPatel
ChinmayPatel / main.go
Created January 28, 2021 16:03
Check Balance using Centrifuge GRPC library
package main
import (
"fmt"
gsrpc "github.com/centrifuge/go-substrate-rpc-client"
"github.com/centrifuge/go-substrate-rpc-client/types"
)
func main() {
@ChinmayPatel
ChinmayPatel / main.go
Last active December 23, 2020 18:14
Thorchain Go Script
package main
import (
// "bytes"
// "github.com/centrifuge/go-substrate-rpc-client/scale"
"encoding/json"
"fmt"
"strings"
gsrpc "github.com/centrifuge/go-substrate-rpc-client"
"github.com/centrifuge/go-substrate-rpc-client/config"
@ChinmayPatel
ChinmayPatel / scala.sh
Last active December 8, 2016 17:26 — forked from teodorpatras/scala.sh
Install Scala and SBT Using `apt-get` on Ubuntu 16.04 (May Work For Other Ubuntu)
## updated for Ubuntu 16.04
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get remove scala-library scala # Removing scala-library was the key for me.
sudo wget www.scala-lang.org/files/archive/scala-2.11.8.deb
sudo dpkg -i scala-2.11.8.deb
sudo apt-get update
sudo apt-get install scala
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
chrome.storage.local.get('__name__', function(item){ crazyItem = item; console.log(crazyItem); })