Skip to content

Instantly share code, notes, and snippets.

View TheNorthEestern's full-sized avatar

Kacy James TheNorthEestern

View GitHub Profile
this.bindDynamicFunction = function(o, property, value){
var _value = value;
var _funcName = (property.charAt(0).toUpperCase() + property.slice(1));
o["get" + _funcName] = function(){
return _value;
};
o["set" + _funcName] = function(v){
_value = v;
};
};
@TheNorthEestern
TheNorthEestern / toggle_opacity.applescript
Last active October 17, 2016 09:27
A simple AppleScript that allows you to toggle the transparency of the active iTerm window. Best implemented as a service through Automator (and mapped to an unused keyboard shortcut of your choosing).
tell application "iTerm"
if the transparency of the current session of the current terminal > 0 then
set the transparency of the current session of the current terminal to 0
else
set the transparency of the current session of the current terminal to 0.2
end if
end tell