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 CoreAudio | |
import AudioToolbox | |
let defaultDeviceProp = AudioObjectPropertyAddress( | |
mSelector: kAudioHardwarePropertyDefaultOutputDevice, | |
mScope: kAudioObjectPropertyScopeGlobal, | |
mElement: kAudioObjectPropertyElementMaster) | |
let masterVolumeProp = AudioObjectPropertyAddress( | |
mSelector: kAudioHardwareServiceDeviceProperty_VirtualMasterVolume, |
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
@-webkit-keyframes fadein { | |
from { | |
opacity: 0; | |
} | |
to { | |
opacity: 1; | |
} | |
} | |
#sVim-command { |
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
let hintcharacters = "asetniohqwdfurlgykjzxcvmbp" |
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
# Add these two event hooks to your ~/.config/fish/config.fish | |
# | |
# Prerequisites: | |
# 1. fish 2.1.2. Use "brew upgrade --HEAD fish" to install | |
# 2. terminal-notifier. Use "brew install terminal-notifier" to install | |
# 3. Add other files to some directory that's in PATH, and ensure all are marked as executable (chmod +x) | |
function mbl_preexec --on-event fish_preexec | |
set -l now (date +%s) | |
set -g last_exec_timestamp $now |
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
#!/usr/bin/env ruby -wKU | |
# PREREQUISITES: sudo gem install rb-appscript | |
require 'rubygems' | |
require 'appscript' | |
require 'fileutils' | |
require 'pathname' | |
if ARGV.length != 1 |