This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def log_mel_spectrogram( | |
audio: Union[str, np.ndarray, torch.Tensor], | |
n_mels: int = 80, | |
padding: int = 0, | |
device: Optional[Union[str, torch.device]] = None, | |
): | |
""" | |
Compute the log-Mel spectrogram of | |
Parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⚡ scala -classpath /Users/jz/.ivy2/cache/com.google.guava/guava/bundles/guava-21.0.jar | |
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112). | |
Type in expressions for evaluation. Or try :help. | |
scala> :power | |
Power mode enabled. :phase is at typer. | |
import scala.tools.nsc._, intp.global._, definitions._ | |
Try :help or completions for vals._ and power._ | |
scala> val cl = new java.net.URLClassLoader(global.classPath.asURLs.toArray, null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
IDEA='' | |
PROJECT_DIR='' | |
function main() { | |
openIdea "$@" | |
} | |
function openIdea() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NativePostReceiveMethod extends PostReceiveMethod { | |
//.... | |
private boolean success = false; | |
public NativePostReceiveMethod(NativeRdmaJVerbs paramNativeRdmaJVerbs, MemoryBufferPool paramMemoryBufferPool, QueuePair paramQueuePair, List<ReceiveWorkRequest> paramList) throws IOException { | |
this.verbsImpl = paramNativeRdmaJVerbs; | |
this.memAlloc = paramMemoryBufferPool; | |
this.wrNatList = new LinkedList(); | |
this.sgeNatList = new LinkedList(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NativePostReceiveMethod extends PostReceiveMethod { | |
//.... | |
private boolean success = false; | |
public NativePostReceiveMethod(NativeRdmaJVerbs paramNativeRdmaJVerbs, MemoryBufferPool paramMemoryBufferPool, QueuePair paramQueuePair, List<ReceiveWorkRequest> paramList) throws IOException { | |
this.verbsImpl = paramNativeRdmaJVerbs; | |
this.memAlloc = paramMemoryBufferPool; | |
this.wrNatList = new LinkedList(); | |
this.sgeNatList = new LinkedList(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int partition(vector<int> &v, int low, int high) | |
{ | |
int pivot = v[low]; | |
while(low < high) | |
{ | |
while( (pivot <= v[high]) && low < high) | |
{ | |
high --; | |
} | |
v[low] = v[high]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#------------------------------------------------------------------------------ | |
# Name: sbtmkdirs | |
# Purpose: Create an SBT project directory structure with a few simple options. | |
# Author: Alvin Alexander, http://alvinalexander.com | |
# Info: http://alvinalexander.com/sbtmkdirs | |
# License: Creative Commons Attribution-ShareAlike 2.5 Generic | |
# http://creativecommons.org/licenses/by-sa/2.5/ | |
#------------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mllib | |
import scala.util.Random | |
import org.jblas.DoubleMatrix | |
import org.apache.spark.SparkContext | |
import org.apache.spark.rdd._ | |
import org.apache.spark.SparkConf | |
import org.apache.spark.SparkContext._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mliib | |
import scala.util.Random | |
import org.jblas.DoubleMatrix | |
import org.apache.spark._ | |
import org.apache.spark.SparkContext | |
import org.apache.spark.rdd.RDD | |
import org.apache.spark.mllib.regression.LabeledPoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mllib | |
import scala.util.Random | |
import org.jblas.DoubleMatrix | |
import org.apache.spark.SparkContext | |
import org.apache.spark.rdd._ | |
import org.apache.spark.SparkConf | |
import org.apache.spark.SparkContext._ |
NewerOlder