Skip to content

Instantly share code, notes, and snippets.

@suyashcjoshi
suyashcjoshi / pom.xml
Created July 15, 2019 01:46
POM XML File for TensorFlow - Java Application
<dependency>
<groupId>org.tensorflow</groupId>
<artifactId>tensorflow</artifactId>
<version>1.14.0</version>
</dependency>
@suyashcjoshi
suyashcjoshi / HelloWorld.java
Last active July 15, 2019 04:19
HelloWorld App using TensorFlow (Java) library
import org.tensorflow.Graph;
import org.tensorflow.Session;
import org.tensorflow.Tensor;
import org.tensorflow.TensorFlow;
public class HelloWorld {
public static void main(String[] args) throws Exception {
// Creates a Computation Graph
try (Graph g = new Graph()) {
Simple way to manage several JDK, Graal VM versions on your Mac / Linux Machine and setting the default.
Create/Edit .bash_profile file on your computer and add/edit the following 4 lines of code:
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)
export GRAAL_VM_HOME=<path to GraalVM>/Contents/Home/bin
export JAVA_HOME=$JAVA_11_HOME #default JDK
The information or content you provide is for test purpose only and belongs to you.
@suyashcjoshi
suyashcjoshi / gist:2a902a5357e67f081827083bf4c9b45a
Last active December 7, 2022 20:07
Free to use Audio DataSets - Music, Speech, MIDI
Here is a list of various audio datasets, most of them are free use use under respective license.
1. Audio Data Set by Google Research : 10-second sound clips drawn from 2,084,320 YouTube videos containing 527 labels. They contain a wide variety of every day sounds.
License : DataSet is under Creative Commons Attribution 4.0 International (CC BY 4.0) license, while the ontology is available under a Creative Commons Attribution-ShareAlike 4.0 International(CC BY-SA 4.0) license.
Link: https://research.google.com/audioset/index.html
2. MAPS Database : A piano database for multipitch estimation and automatic transcription of music. 31 GB of CD-quality recordings in .wav format.
@suyashcjoshi
suyashcjoshi / sample_influx.sh
Last active September 3, 2024 10:12
Sample shell script
#!/bin/bash
# Define variables
INFLUX_URL="http://localhost:8086" # URL of your InfluxDB instance
ORG="your_organization" # Your organization name
BUCKET="your_bucket" # Your bucket name
TOKEN="your_auth_token" # Your authentication token
# Define the Flux query
QUERY='from(bucket: "your_bucket") |> range(start: -1h) |> filter(fn: (r) => r._measurement == "your_measurement")'