Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Lee SteveALee

View GitHub Profile
@SteveALee
SteveALee / gist:0e78dff6040780720093a14ce3a6f0ba
Last active Jun 28, 2020
Have browsers update when editing 11ty config file
View gist:0e78dff6040780720093a14ce3a6f0ba

By default 11ty devmode uses browsersync to reload webbrowsers whenever it regenerates pages to _site. It does this automatically when template files change.

However, the .eleventy.js file is only loaded when 11ty starts so if you edit shortcodes (say) you need to stop and restart 11ty.

The solution is to use nodemon to restart 11ty automatically when the config file changes. But then you need to use browser F5 to refresh. The solution to that is to get browsersync to reload the browsers To achieve that, the 11ty browsersync config option allows you to define a callback when browsersync is ready and you can add a browser reload call there.

Here's example code from music-practice-tools

@SteveALee
SteveALee / README.md
Last active Nov 23, 2020
Build audacity with ASIO support on Windows
View README.md

Build your own Audacity with ASIO driver support

The open source Audacity program is the "go to" solution for many audio recording and editing tasks. However, it doesn't support Windows ASIO drivers out of the box, which can be a problem. While it is possible to build Audacity with ASIO support this requires technical development skills. This gist makes it easy to build your own version of Windows Audacity with ASIO support. It provides a script and instructions that should be easy to follow on a PC.

NB. If you do use this to build Audacity with ASIO support you must not redistribute it due to licensing terms - see below.

Audiacity MME support is fine for most uses. A common reasons to require ASIO is using equipment that only comes with ASIO drivers, such as Behringer mixers. Another is to take advantage of the low latency or multiple channels supported by ASIO.

In my case, the multi channel driver supp

View gist:4bd828882f2027f8878eb9ef856f7f60
<!DOCTYPE html>
<html lang="en">
<style>
body {
margin: 1px;
}
#main {
display: flex;
flex-direction: column;
View gist:a9f838b79639949ac879
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{1bf69820-c08a-4207-8084-5f6b180e52ff}</ProjectGuid>
<ProjectHome />
<ProjectView>ShowAllFiles</ProjectView>
<StartupFile>index.js</StartupFile>
<WorkingDirectory>.</WorkingDirectory>
You can’t perform that action at this time.