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
/** | |
* Native modal dialog (limited support) | |
*/ | |
dialog::backdrop { | |
background: rgba(0,0,0,.8) | |
} |
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
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; |
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
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 { |
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
(function($){ | |
var defaults = { | |
id: "s1", | |
splitStr: "-" | |
}; | |
var opts = {}; | |
var methods = { | |
init: init, | |
getValue: function getSelectValue() { | |
var selects = $(this).find('select'); |
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
-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 |
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 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*")); |
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
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\"" |
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
Show hidden characters
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"default_line_ending": "unix", | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"folder_exclude_patterns": |
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
import logging | |
import re | |
import chardet | |
from bs4 import UnicodeDammit | |
LOG = logging.getLogger() | |
BROTHER_ENCODINGS = [ | |
('GB2312', 'GBK', 'GB18030'), |
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
import re | |
bad_attrs = ['width', 'height', 'style', '[-a-z]*color', | |
'background[-a-z]*', 'on*'] | |
single_quoted = "'[^']+'" | |
double_quoted = '"[^"]+"' | |
non_space = '[^ "\'>]+' | |
cstr = ("<" # open | |
"([^>]+) " # prefix | |
"(?:%s) *" % ('|'.join(bad_attrs),) + # undesirable attributes |
NewerOlder