Skip to content

Instantly share code, notes, and snippets.

" Local Override {
if filereadable(expand("$VIMHOME/override.local.vim"))
source $VIMHOME/override.local.vim
endif
" }
  1. Gist Naming Format: [Language]+[Title]
try again
This is nothing
@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
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.
The fglrx shipped with Precise has some compatility issues
with the kernel 3.2.0-29, which can cause a freeze when
shutting down, everything stops on the plymouth screen.
Replace either of them can solve this problem.

Defination of the System Load Value: Basically, load average is the amount of traffic to your CPU(s) over the past 1, 5, and 15 minutes. Generally you want this number to be below the number of CPU(s)/cores you have. 1.0 on a single core machine means it's using the CPU to it's maximum, and anything above that means things are getting queued.

try to add name to gists
@liuyuuan
liuyuuan / gist:3486636
Created August 27, 2012 08:15
something
try to add name to gists