package info.wangyg.algorithms.sort;
import java.util.Comparator;
/**
*
* @author wangyingang
package info.wangyg.algorithms.sort;
import java.lang.reflect.Array;
import java.util.Comparator;
/**
*
* @author wangyingang
*
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
package yourpackage; | |
import static org.mockito.Mockito.*; | |
import java.util.HashMap; | |
import org.hibernate.SessionFactory; | |
import org.hibernate.classic.Session; | |
import org.hibernate.dialect.MySQL5Dialect; | |
import org.hibernate.dialect.function.SQLFunctionRegistry; |
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
<?xml version="1.0"?> | |
<root> | |
<!-- | |
<item> | |
<name>Use caps lock key to extra modifier</name> | |
<appendix>(You need to change the key code of caps lock to 80 on PCKeyboardHack)</appendix> | |
<identifier>private.capslock_extra_modifier</identifier> | |
<block> | |
<modifier_only>ModifierFlag::CAPSLOCK</modifier_only> | |
<autogen> |
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
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
# that enables you to choose a character from a menu of options. If you are on Lion | |
# try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
# for input. | |
# | |
# It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
# it's a nightmare to deal with in Sublime Text 2 if you're running Vintage (Vim) mode, | |
# as it means you cannot press and hold h/j/k/l to move through your file. You have | |
# to repeatedly press the keys to navigate. |
Why Should I Care (For Developers)
"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."
dpkg --list | grep linux-image
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
if you’ve upgraded your system, or had an update with a new kernel, please reboot your machine before running above the 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
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
$ sudo chown -R `whoami` /usr/local/texlive | |
$ tlmgr update --self | |
$ tlmgr install ucs | |
$ tlmgr install etoolbox | |
# Install pandoc view homebrew | |
$ brew install haskell-platform | |
$ cabal install pandoc |
OlderNewer