Skip to content

Instantly share code, notes, and snippets.

came across several problems with unity tonight:
1. window border missing. No Dash, no laucher, only blank desktop.
<C-R>+<Alt>+t can call terminal, but actually no use of it, and
it comes without title bar.
unity --reset
unity --replace
gtk-window-decorator --replace
all above can't help, some can bring me back to normal for only 10
seconds or so.
@liuyuuan
liuyuuan / Events
Created August 21, 2012 09:56
EventManager Usage Example
<h2>Events</h2>
<p>
Why does this fail with the event manager? Because when we're in the
constructor, we don't yet have an <code>EventManager</code> instance!
The event manager instance is injected after instantiation. As such, we
need to attach to it once we know we have an event manager. Which is...
when it's set. This can be done very simply by overriding the
<code>setEventManager()</code> method. In the next example, we'll
define a listener for the "dispatch" event that redirects if certain
This is nothing
try again
  1. Gist Naming Format: [Language]+[Title]
" Local Override {
if filereadable(expand("$VIMHOME/override.local.vim"))
source $VIMHOME/override.local.vim
endif
" }