Skip to content

Instantly share code, notes, and snippets.

@moutend
moutend / README.md
Created March 27, 2021 01:10
[Swift] Equalizing Audio Signal with vDSP.Biquad

[Swift] Equalizing Audio Signal with vDSP.Biquad

This script reads /tmp/input.wav, applies the low-pass filter, and writes the modified signal as /tmp/output.wav.

To run, open Terminal.app and hit the following command:

$ swift main.swift
@rthery
rthery / ProfilerStatsToCSVExporter.cs
Last active May 23, 2024 06:21
Unity component exporting the specified Profiler stats to a CSV file in the application persistent data path
using System;
using System.IO;
using UnityEngine;
namespace Unity.Profiling
{
/// <summary>
/// This component will export the specified Profiler stats to a CSV file in the application persistent data path
/// cf. https://docs.unity3d.com/ScriptReference/Unity.Profiling.ProfilerRecorder.html
/// </summary>
@kyungpyoda
kyungpyoda / CodableInheritanceExample.swift
Created May 28, 2021 01:17
[Swift] Codable class and inheritance
//
// CodableInheritanceExample.swift
//
// Created by 홍경표 on 2021/05/28.
//
class BaseResponse: Codable {
var retCode: Int = 0
private enum CodingKeys: String, CodingKey {
@vivekkiran
vivekkiran / bilstm.py
Created May 23, 2024 06:11 — forked from jordanspooner/bilstm.py
BiLSTM Architecture
#=================================
# Sentence-level QE -- BiRNN model
#=================================
#
## Inputs:
# 1. Sentences in src language (shape: (mini_batch_size, line_words))
# 2. Parallel machine-translated documents (shape: (mini_batch_size, line_words))
#
## Output:
# 1. Sentence quality scores (shape: (mini_batch_size,))
@R-WebsterNoble
R-WebsterNoble / SavWav.cs
Last active May 23, 2024 06:08 — forked from darktable/SavWav.cs
Unity3D: script to save an AudioClip as a .wav file.
// Copyright (c) 2012 Calvin Rien
// http://the.darktable.com
//
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
@HerringtonDarkholme
HerringtonDarkholme / effect.md
Last active May 23, 2024 06:08
React Effect Syntax Extension

React Effect Syntax Extension

This syntax extension is a mere fantasy of future React Script syntax. It is not a RFC, proposal or suggestion to React team or community. It is just a fun idea to imagine how React could be in the future.

Read this like a fan-fiction, for fun. :)

Background

There are two recent new features in React community that are introducing new extensions to JavaScript, both syntax and semantics:

@vraravam
vraravam / fresh-install-of-osx.sh
Last active May 23, 2024 06:07
Steps to get "up and running" with new Mac OSX
#!/usr/bin/env zsh
# This script can be used to setup a macos machine based on Vijay's configurations. As of now, this script is idempotent and will restore your local setup to the same state if run multiple times.
# If you have the same files already present, it will prompt you whether to override or not
# file location: <anywhere> (just need to invoke it from that location)
# You can run this script using this command:
# curl -L https://gist.githubusercontent.com/vraravam/04fc2296b25090ea848642afbce4d168/raw -o fresh-install.sh; chmod +x ./fresh-install.sh; ./fresh-install.sh
# BEFORE STARTING TO RUN THIS SCRIPT (for the first time on a new machine)
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
#!/usr/bin/env zsh
# Note: This script is specific to my setup and not useful for others.
# You can run this script using this command:
# curl -L https://gist.githubusercontent.com/vraravam/698925e88a601d18a79f9c79edc33611/raw -o fresh-install-vijay.sh; chmod +x ./fresh-install-vijay.sh; ./fresh-install-vijay.sh
# These env vars are duplicated intentionally since this script would bootstrap the installation
USERNAME=${USERNAME:-$(whoami)}
# load the utility functions