Skip to content

Instantly share code, notes, and snippets.

View benphelps's full-sized avatar
🇺🇦
Slava Ukrayini!

Ben Phelps benphelps

🇺🇦
Slava Ukrayini!
View GitHub Profile

Overview of Popular Target Tunings for IEMs and Headphones

Introduction: In the audiophile world, “target tuning” refers to a reference frequency response curve that designers aim for when voicing headphones or in-ear monitors (IEMs). In simple terms, it's a goal for how the audio should sound across bass, midrange, and treble. Different target tunings have emerged from scientific research, professional standards, and community preferences. Each target has its own sonic flavor and impact on the listening experience. Below is a structured overview of major target curves – both industry-developed and enthusiast-created – along with their general sound characteristics, suitable genres, and why ultimately tuning is a subjective matter.

Professional and Scientific Target Tunings

Harman Target Curve (Headphone & IEM)

  • Background: The Harman target is a science-based curve developed through extensive research by Harman International (led by Dr. Sean Olive and team). It was derived by askin

The Journey of Corn from Farm to Final Use

Introduction: Corn is one of the world’s most important crops, with the United States producing about a third of global corn output (370 million tonnes out of 1.06 billion in 2017) ( Evaluating the holistic costs and benefits of corn production systems in Minnesota, US - PMC ). After corn is grown on farms, it passes through a complex chain of storage, transport, trading, and processing that involves many industries beyond farming. This report traces corn’s path from the field to its final uses in fuel and food, highlighting each stage, real-world examples, and major companies involved.

1. Farming: Production, Harvest, and On-Farm Storage

Corn is typically planted in the spring on fertile, flat land in the Midwest and other farming regions. Farmers often rotate corn with soybeans or other crops to maintain soil health and c

@benphelps
benphelps / fmt.lua
Created July 19, 2024 10:22
A simple libfmt-esque addition to the lua string library.
-- A simple string formatting function that supports named arguments.
-- It is inspired by libfmt (https://github.com/fmtlib/fmt) and Python's str.format() method.
---@param input string The string to format.
---@vararg any The arguments to format the string with.
---@return string formatted The formatted string.
local function fmt(input, ...)
local args = { ... }
local is_table_arg = type(args[1]) == "table" and #args == 1
local index = 1
@benphelps
benphelps / raylib.lua
Created June 26, 2024 14:19
LuaLS (EmmyLua) type definitions for most of raylib + raygui
---@meta raylib
---@class (exact) Vector2
---@field x number x component
---@field y number y component
---@overload fun(x: number, y: number): Vector2
---@overload fun(): Vector2
Vector2 = {}
---@class (exact) Vector3
phelps:7qVlf2c69e7daca8b0b5cb0d3bc869faff3719a359777d8f5741f9739f212b34637a:175dac88690
require "./spec_helper"
def test_statement(statement : AST::LetStatement, name : String)
it "expectes token_literal to be let" do
statement.token_literal.should eq("let")
end
it "should be an AST::LetStatement" do
statement.should be_a(AST::LetStatement)
end
@benphelps
benphelps / pitmaster.lua
Last active September 30, 2019 21:35
A computer craft turtle program.
--[[
How about no.
]]
local CHEST_SLOT = 16
local PIT_WIDTH = 3
local PIT_LENGTH = 3
local PIT_DEPTH = 45
local function log(str, ...)
@benphelps
benphelps / Abstraction.php
Created May 10, 2017 22:16
PDO Abstraction
<?php
namespace PDG\Database;
use PDO;
/**
* An actually simple PDO wrapper. Woah, dude.
*/
class Abstraction
require 'active_support/inflector'
guard :rspec, cmd: 'WAT=wat spring rspec' + (ENV['DOC_FORMAT'] ? ' --format documentation' : ''), notification: false do
watch(%r{^spec/features/.+_spec\.rb$})
watch(%r{^spec/models/.+_spec\.rb$})
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1].singularize}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| "spec/features/#{m[1].singularize}_spec.rb" }
watch(%r{^app/models/(.+)\.rb$}) { |m| "spec/models/#{m[1]}_spec.rb" }
watch(%r{^spec/factories/(.+)_spec\.rb$}) do |m|
["app/models/#{m[1].singularize}.rb", "spec/models/#{m[1].singularize}_spec.rb"]
@benphelps
benphelps / __readme.md
Last active September 9, 2020 22:14
Action Specific Javascript for Rails 5

Action Specific Javascript for Rails 5

This is a simple example of action specific javascript. It also allows you to pass data to JS from inside rails controllers. Works with Turbolinks 5 (not required).

Installation

Add the files below to your project, then insert <%= insert_javascript_hook %> somewhere in the footer of your layout.

You'll need these gems:

gem 'jquery-rails'