Skip to content

Instantly share code, notes, and snippets.

@indec
indec / switch_audio.applescript
Last active December 17, 2015 21:09
An Applescript to cycle the audio input and output sources between two (or more) audio devices
on alfred_script(q)
set output_devices to {"Display Audio", "Generic USB Audio Device "}
set input_devices to {"Display Audio", "Generic USB Audio Device "}
set device_keywords to {"speakers", "headphones"}
tell application "System Preferences"
reveal anchor "output" of pane id "com.apple.preference.sound"
tell application "System Events"
tell process "System Preferences"
#!/bin/bash
headphones="Generic USB Audio Device "
speakers="Display Audio"
arg=$1
if [ "${arg}" = "headphones" ]; then
target=${headphones}
elif [ "${arg}" = "speakers" ]; then
target=${speakers}
diff --git a/app/api/projects.rb b/app/api/projects.rb
index cbfe5e8fdd1..2e6cc251270 100644
--- a/app/api/projects.rb
+++ b/app/api/projects.rb
@@ -977,8 +977,8 @@ class Api::Projects < Api::App
end
AddProjectCardMutation = PlatformClient.parse <<-'GRAPHQL'
- mutation($projectColumnId: ID!, $contentId: ID, $note: String) {
- addProjectCard(input: { projectColumnId: $projectColumnId, contentId: $contentId, note: $note }) {