Skip to content

Instantly share code, notes, and snippets.

@OlliV
OlliV / gist:3186389
Created July 27, 2012 05:48
OS X Mountain Lion: Disable Press and Hold
defaults write -g ApplePressAndHoldEnabled -bool false
reboot
@OlliV
OlliV / disable_OS_X_NotificationCenter.txt
Created July 26, 2012 19:56
Disable that annoying NotificationCenter on OS X Mountain Lion
launchctl unload /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
sudo mv /System/Library/LaunchAgents/com.apple.notificationcenterui.plist /System/Library/LaunchAgents/com.apple.notificationcenterui.bak
@OlliV
OlliV / skindepth.m
Created February 27, 2012 23:57
Skin Depth Calculator on Matlab
% -------------------------------------------------------------------------
% | Skin Depth Calculator |
% | ===================== |
% | Olli Vanhoja |
% | 2010-08-26 |
% |
% e_r1 e_r2 |
% e_ri1 e_ri2 |
% mu_r1 mu_r2 |
% |
@OlliV
OlliV / transcoeff.m
Created February 27, 2012 23:55
Transmission Coefficient Calculator on Matlab
% -------------------------------------------------------------------------
% | Transmission Coefficient Calculator |
% | =================================== |
% | Olli Vanhoja |
% | 2010-08-26 |
% |
% e_r1 e_r2 |
% mu_r1 mu_r2 |
% |
% P_in | tau |
@OlliV
OlliV / attencoeff.m
Created February 27, 2012 23:54
Attenuation Coefficient Calculator on Matlab
% -------------------------------------------------------------------------
% | Attenuation Coefficient Calculator |
% | ================================== |
% | Olli Vanhoja |
% | 2010-08-26 |
% -------------------------------------------------------------------------
clear all
close all
close all hidden
clc