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
#include <vector> | |
#include <span> | |
#include <complex> | |
#include <cmath> | |
#include <numbers> | |
#include <fftw3.h> | |
using std::complex; | |
using std::span; |
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
import numpy as np | |
import numpy.typing as npt | |
class OnlineStft: | |
n_freq: int | |
def __init__(self, n_fft: int, n_hop: int, n_channels: int): | |
self._hop = n_hop | |
self.n_freq = n_fft // 2 + 1 | |
self._win_a = np.hamming(n_fft + 1)[:-1] |
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
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Windows.Forms; |
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
import { Component, Input, ViewChild, AfterViewInit, ElementRef } from '@angular/core'; | |
import { Router } from '@angular/router'; | |
import { markdown } from 'markdown'; | |
@Component({ | |
selector: 'markdown', | |
template: `<div [innerHtml]="html" #root></div>` | |
}) | |
export class MarkdownComponent implements AfterViewInit { | |
@ViewChild('root') root: ElementRef; |
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
using System; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Threading.Tasks; | |
using Microsoft.CodeAnalysis.CSharp.Scripting; | |
using Microsoft.CodeAnalysis.Scripting; | |
namespace AutomaticDifferentiation | |
{ | |
public struct DualNumber |
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
#include <algorithm> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <map> | |
using namespace std; | |
pair<int, int> get_next_prime(int k) | |
{ | |
for (int i = 2; i < k; i++) |
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
#include <iostream> | |
#include <string> | |
#include <iomanip> | |
using namespace std; | |
int main() | |
{ | |
std::string a; | |
getline(std::cin, a); |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
namespace ShuntingYardParser | |
{ | |
enum TokenType { Number, Variable, Function, Parenthesis, Operator, Comma, WhiteSpace }; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ItemGroup> | |
<Content Include="$(MSBuildThisFileDirectory)\..\lib\native\*.dll"> | |
<Link>%(Filename).dll</Link> | |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
</Content> | |
</ItemGroup> | |
</Project> |
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
using System; | |
using System.Linq.Expressions; | |
namespace ConsoleApp | |
{ | |
class Visitor : ExpressionVisitor | |
{ | |
protected override Expression VisitParameter(ParameterExpression node) | |
{ | |
return Expression.Constant(1.0); |
NewerOlder