This file contains hidden or 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
| final Workspace workspace = (Workspace) ResourcesPlugin.getWorkspace(); | |
| if (workspace.isTreeLocked()) { | |
| workspace.setTreeLocked(false); | |
| } | |
| final IResourceDelta delta2 = delta; | |
| final IProject project2 = project; | |
| Job saveTarget = new Job(ICommonConstants.EMPTY_STRING) { | |
| @Override | |
| protected IStatus run(IProgressMonitor monitor) { |
This file contains hidden or 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
| //条目的讨论页面,豆列页面不显示搜索结果 | |
| var currentURL = document.URL; | |
| if(currentURL.indexOf('discussion') != -1 || currentURL.indexOf('doulist') != -1 ){ | |
| return; | |
| } else { | |
| inject(); | |
| } | |
| function inject(){ | |
| var title = $('html head title').text(); |
This file contains hidden or 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
| -Dosgi.requiredJavaVersion=1.6 -Xms128m -Xmx512m -XX:MaxPermSize=128m -XX:PermSize=80m |
This file contains hidden or 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
| (let* | |
| ( | |
| (yin | |
| ((lambda (cc) (display #\@) cc) (call-with-current-continuation (lambda (c) c)))) | |
| (yang | |
| ((lambda (cc) (display #\*) cc) (call-with-current-continuation (lambda (c) c)))) | |
| ) | |
| (yin yang)) |
This file contains hidden or 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
| <script> | |
| $(function(){ | |
| if($.browser.msie) { | |
| alert("IE浏览器"); | |
| }else if($.browser.opera) { | |
| alert("opera浏览器"); | |
| }else if($.browser.mozilla) { | |
| alert("<font id="wordhighlight_id4" class="wordhighlight_ext wordhighlight_word2" name="wordhighlight_word2">火狐</font>浏览器"); | |
| }else if($.browser.safari) { | |
| alert("safari浏览器"); |
This file contains hidden or 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
| * { | |
| font-family: PingFang SC, Helvetica, 'Luxi Sans', 'DejaVu Sans', Tahoma, 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif; | |
| } | |
| .wwads-cn { | |
| display: none; | |
| } | |
| body { | |
| background-image: none; |
This file contains hidden or 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 org.eclipse.swt.SWT; | |
| import org.eclipse.swt.events.MouseAdapter; | |
| import org.eclipse.swt.events.MouseEvent; | |
| import org.eclipse.swt.events.ShellAdapter; | |
| import org.eclipse.swt.events.ShellEvent; | |
| import org.eclipse.swt.graphics.Point; | |
| import org.eclipse.swt.graphics.Rectangle; | |
| import org.eclipse.swt.layout.GridData; | |
| import org.eclipse.swt.layout.GridLayout; | |
| import org.eclipse.swt.widgets.Button; |
This file contains hidden or 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
| /** | |
| * 判断输入的字符串是否为Java保留的关键字 | |
| * @date 2013-08-05 | |
| * 不合法时返回true; | |
| * 校验通过返回false; | |
| */ | |
| public static boolean validateReservedKeywords(String inputString) { | |
| boolean flag = false; | |
| final String[] keywords = | |
| {"abstract", "continue", "for", "new", "switch", "assert", "default", "if", |
This file contains hidden or 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
| /** | |
| * 多个数组进行合并 | |
| * | |
| * @author Sam Su | |
| * @date 2013-07-12 | |
| * @param <T> | |
| * @param first | |
| * @param rest | |
| * @return | |
| */ |
This file contains hidden or 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
| /*iPhone < 5*/ | |
| @media screen and (device-aspect-ratio: 2/3) { | |
| .content{ | |
| width: 100%; | |
| } | |
| } | |
| /*iiPhone 5*/ | |
| @media screen and (device-aspect-ratio: 40/71) { | |
| .content{ |