Skip to content

Instantly share code, notes, and snippets.

View jdlich's full-sized avatar

Jacob Lichner jdlich

View GitHub Profile
function ip { ifconfig en1 | ruby -ne '$_.match(/inet\s((\d|\.)+)/) { print $1 }' | pbcopy; }
<portlet:renderURL var="newsUrl">
<portlet:param name="action" value="sportNews"/>
<portlet:param name="sport" value="${ sport.name }"/>
</portlet:renderURL>
<portlet:renderURL var="scoresUrl">
<portlet:param name="action" value="sportScores"/>
<portlet:param name="sport" value="${ sport.name }"/>
</portlet:renderURL>
<div data-role="controlgroup" data-type="horizontal" class="ui-btn-right" style="margin: 0;">
<a data-role="button" href="${ scoresUrl }">Scores</a>
svn import uportal-war/src/main/webapp/media/skins/universality/byu https://svn.unicon.net/svn/proservices/proservices/customers/byu/uportal-war/src/main/webapp/media/skins/universality/byu -m "Initial import."
//
// Number
//
// (num).times(function () {})
Number.prototype.times = function (value) {
for (var i = 0; i < this; i++) {
value();
}
/* Text */
.uportal-channel-text-white,
.uportal-channel-text-white a {color:#fff;}
.uportal-text-small {font-size:80%;}
.uportal-channel-strong {font-weight:bold;}
.uportal-channel-emphasis {font-style:italic;}
.uportal-channel-code {font-family:"Courier New", Courier, mono; color:#000;}
.uportal-channel-copyright {font-size:80%;}
/* Titles */
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a
copy of the License at:
2011-10-14 12:24:35,281 DEBUG [org.jasig.cas.services.DefaultServicesManagerImpl] - Adding registered service http://**
2011-10-14 12:24:35,281 DEBUG [org.jasig.cas.services.DefaultServicesManagerImpl] - Adding registered service http://**
2011-10-14 12:24:35,282 DEBUG [org.jasig.cas.services.DefaultServicesManagerImpl] - Adding registered service https://**
2011-10-14 12:24:35,282 DEBUG [org.jasig.cas.services.DefaultServicesManagerImpl] - Adding registered service https://**
2011-10-14 12:24:35,282 DEBUG [org.jasig.cas.services.DefaultServicesManagerImpl] - Adding registered service imaps://**
2011-10-14 12:24:35,282 DEBUG [org.jasig.cas.services.DefaultServicesManagerImpl] - Adding registered service imaps://**
2011-10-14 12:24:35,282 DEBUG [org.jasig.cas.services.DefaultServicesManagerImpl] - Adding registered service imap://**
2011-10-14 12:24:35,282 DEBUG [org.jasig.cas.services.DefaultServicesManagerImpl] - Adding registered service imap://**
2011-10-14 12:24:35,284 INFO [org.jasig.cas.services.Default
SEVERE: Servlet.service() for servlet cas threw exception
java.lang.IllegalStateException: The string-encoded flow execution key is required
at org.jasig.cas.web.flow.CasFlowExecutionKeyFactory.parseFlowExecutionKey(CasFlowExecutionKeyFactory.java:91)
at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:164)
at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig licenses this file to you under the Apache License,
def chapters
Array.new(@items
.select { |i| i.identifier =~ %r{^/chapters/} }
).sort_by { |i| i.identifier }
end