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
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> | |
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
<c:set var="ua" value="${fn:toLowerCase(header['User-Agent'])}" /> | |
<c:set var="chrome" value="${fn:contains(ua, 'chrome') && !fn:contains(ua, 'msie')}" /> | |
<fmt:formatNumber var="chrome_version" value="${ chrome ? fn:substringBefore(fn:substringAfter(ua, 'chrome/'), '.') : 0}" /> | |
<c:set var="ff" value="${fn:contains(ua, 'firefox') && !fn:contains(ua, 'opera')}" /> | |
<fmt:formatNumber var="ff_version" value="${ ff ? fn:substringBefore(fn:substringAfter(ua, 'firefox/'), '.') : 0}" /> | |
<c:set var="opera" value="${fn:contains(ua, 'opera')}" /> | |
<fmt:formatNumber var="opera_version" value="${opera ? |
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
javascript: (function () { window.open("view-source:"+window.location.href, '_blank'); })(); |
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
javascript: (function () {function fill(input) {if ((input.tagName == 'input' && (input.type != 'hidden' && input.type != 'submit' && input.type != 'image')) || (input.tagName == 'textarea')) {if (input.value == null || input.value.length==0) {input.value = Math.floor(Math.random() * 9999999)}}}var inputs = document.getElementsByTagName("input");for (var i = 0; i < inputs.length; i++) {fill(inputs[i]);}var inputs = document.getElementsByTagName("textarea");for (var i = 0; i < inputs.length; i++) {fill(inputs[i]);}})(); |
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
<%-- version1: java style --%> | |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
<%@page import="java.util.Date"%> | |
<%@page import="java.util.Calendar"%> | |
<% pageContext.setAttribute("currentYear", java.util.Calendar.getInstance().get(java.util.Calendar.YEAR)); %> | |
Current year is: <c:out value="${currentYear}" /> | |
<%-- version2: JSTL style --%> | |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
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
# Color Reset | |
Color_Off="\033[0m" # Text Reset | |
# Regular Colors | |
Black="\033[0;30m" # Black | |
Red="\033[0;31m" # Red | |
Green="\033[0;32m" # Green | |
Yellow="\033[0;33m" # Yellow | |
Blue="\033[0;34m" # Blue | |
Purple="\033[0;35m" # Purple |
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
# Various variables you might want for your PS1 prompt instead | |
#Time12h="\T" | |
#Time12a="\@" | |
PathShort="\w" | |
#PathFull="\W" | |
#NewLine="\n" | |
Jobs="\j" | |
# Git | |
source /etc/git-completion.bash |
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
<snippet> | |
<content><![CDATA[ | |
-- DELETE FROM localstrings where keycode = '${1:keycode}'; | |
INSERT INTO localstrings(keycode, langcode, stringvalue) VALUES ('${1:keycode}','en','${2:en_value}'); | |
INSERT INTO localstrings(keycode, langcode, stringvalue) VALUES ('${1:keycode}','it','${3:it_value}'); | |
-- <wp:i18n key="${1:keycode}" escapeXml="true" /> | |
${4} | |
]]></content> | |
</snippet> |
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
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
<%-- setup --%> | |
<% pageContext.setAttribute("carriageReturn", "\r"); %> | |
<% pageContext.setAttribute("newLine", "\n"); %> | |
<c:set var="singleQuotes">'</c:set> | |
<c:set var="singleQuotesReplace">\'</c:set> | |
<c:set var="doubleQuotes">"</c:set> | |
<c:set var="doubleQuotesReplace">\"</c:set> |
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
javascript:(function(){var%20inputs%20=%20document.getElementsByTagName("input");%20for%20(var%20i%20=%200;i<inputs.length;i++)%20{%20var%20c%20=%20inputs[i];%20if%20(c.name=="username")%20c.value%20=%20"admin";%20if%20(c.name=="password")%20c.value%20=%20"adminadmin";%20}%20})(); |
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
<%@ taglib prefix="wp" uri="aps-core.tld" %> | |
<%-- css --%> | |
<wp:outputHeadInfo type="CSS"> | |
<link rel="stylesheet" type="text/css" href="<wp:cssURL /><wp:printHeadInfo />" /> | |
</wp:outputHeadInfo> | |
<%-- css for ie7 --%> | |
<wp:outputHeadInfo type="CSS_IE7"> | |
<!--[if IE 7]> | |
<link rel="stylesheet" type="text/css" href="<wp:cssURL /><wp:printHeadInfo />" /> |