Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
Windows Registry Editor Version 5.00 | |
; Created by: Shawn Brink | |
; http://www.sevenforums.com | |
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html | |
[-HKEY_CLASSES_ROOT\Directory\shell\runas] | |
[HKEY_CLASSES_ROOT\Directory\shell\runas] | |
@="Open cmd here as Admin" | |
"HasLUAShield"="" | |
[HKEY_CLASSES_ROOT\Directory\shell\runas\command] | |
@="cmd.exe /s /k pushd \"%V\"" |
package annotations; | |
//: annotations/PasswordUtils.java | |
// 使用注解 | |
import java.util.*; | |
public class PasswordUtils { | |
@UseCase(id = 47, description = "Passwords must contain at least one numeric") | |
public boolean validatePassword(String password) { | |
return (password.matches("\\w*\\d\\w*")); |
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130521-0416 | |
-product | |
org.eclipse.epp.package.jee.product | |
--launcher.defaultAction | |
openFile | |
--launcher.XXMaxPermSize | |
256M |
(function($){ | |
var defaults = { | |
id: "s1", | |
splitStr: "-" | |
}; | |
var opts = {}; | |
var methods = { | |
init: init, | |
getValue: function getSelectValue() { | |
var selects = $(this).find('select'); |
import java.io.File; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.apache.commons.io.FileUtils; | |
import com.google.gson.Gson; | |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonElement; |
import java.io.File; | |
import java.io.IOException; | |
import org.apache.log4j.Level; | |
import org.apache.log4j.Logger; | |
import org.apache.log4j.PatternLayout; | |
import org.apache.log4j.RollingFileAppender; | |
public final class LogUtils { |
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"default_line_ending": "unix", | |
"detect_slow_plugins": false, | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"fade_fold_buttons": false, | |
"font_face": "Ubuntu Mono", |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
算法导论, “哨兵牌”版本 | |
""" | |
INF = float("inf") | |
def merge_sort(A, p, r): | |
if p < r: |
from random import randrange | |
seq = [randrange(10**10) for i in range(100)] | |
seq.sort() | |
dd = float("inf") | |
for i in range(len(seq)-1): | |
x, y = seq[i], seq[i+1] | |
if x == y: continue | |
d = abs(x-y) | |
if d < dd: | |
xx, yy, dd = x, y, d |