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(){ | |
[ | |
"angular", | |
"bower", | |
"css", | |
"django", | |
"dom", | |
"dom_events", | |
"ember", | |
"express", |
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 () {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
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
<%@ page contentType="text/plain; charset=UTF-8" pageEncoding="UTF-8"%> | |
<%@ 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" %> | |
<%@ taglib prefix="s" uri="/struts-tags" %> | |
<%@ taglib prefix="wp" uri="/aps-core" %> | |
<%@ taglib prefix="wpsa" uri="/apsadmin-core" %> | |
<%@ taglib prefix="wpsf" uri="/apsadmin-form" %> | |
<c:set var="random"><%= java.lang.Math.round(java.lang.Math.random() * 6) %></c:set> | |
<c:set var="startDate" value="${param.lastStreamTimestamp}" /> |
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
<%@ 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
$stateProvider | |
.state('competition', {url: '/:lang/'+ getLocalizedString('URL.COMPETITION'), ...}) |
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 emptyRequest() { | |
return { | |
_destroy: undefined, | |
_read: undefined, | |
accepted: [], | |
accepts: undefined, | |
acceptsCharsets: undefined, | |
acceptsEncodings: undefined, | |
acceptsLanguages: undefined, | |
addListener: undefined, |
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
/** | |
* Returns `true` if any of the given string contains a palindrome. | |
* @param {String} s the string to test | |
*/ | |
function PalindromeFinder(s) { | |
//build an array of characters from the string `s` | |
var chars = s.split(''); | |
//store how many of the same char within the string (so the array) | |
var charsOccurences = {}; |