Skip to content

Instantly share code, notes, and snippets.

View jdlich's full-sized avatar

Jacob Lichner jdlich

View GitHub Profile
function getQueryParams(qs) {
qs = qs.replace(/\+/g, " ");
var params = {},
re = /[?&]?([^=]+)=([^&]*)/g,
tokens;
while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1])]
= decodeURIComponent(tokens[2]);
}
@jdlich
jdlich / foundation-align.scss
Created August 15, 2014 00:11
Responsive alignment classes for Zurb Foundation. Comes in handy when you need to center simple content on the small screens such as footer links.
@mixin breakpoint($point) {
@if $point == "medium" {
@media (min-width: 40.063em) { @content;}
}
@else if $point == "large" {
@media (min-width: 64.063em) { @content;}
}
@else if $point == "xlarge" {
@media (min-width: 90.063em) { @content;}
}
# separate processes with an ampersand to run in parallel
gulp watch & theme watch
# just remember to kill the background process later
kill [PID]
# where PID is the process ID that's printed out at the
# top when you first run the processes e.g. [1] 65593
<!doctype HTML>
<head>
<title></title>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/path.js/0.8.4/path.min.js"></script>
<script>
Path.map('#/').to(function() {
yield('home');
});
2012-12-17 17:24:50,235 INFO main org.apache.catalina.startup.HostConfig - Deploying web application archive samigo-app.war
java.lang.ClassNotFoundException: [Ljava.lang.String;
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:615)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:402)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
[INFO] Copying 17 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 2 source files to /Users/jacoblichner/Code/wake-forest/sakai-2.8.2/authz/authz-tool/tool/target/classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/jacoblichner/Code/wake-forest/sakai-2.8.2/authz/authz-tool/tool/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Not compiling test sources
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
(function () {
// Products as listed in Settings > Ticket Fields
products = {
cas: ["cas", "CAS"],
sakai: ["sak", "Sakai"],
shib: ["shib", "Shibboleth"],
uportal: ["up", "uPortal"],
zimbra: ["zimbra", "Zimbra"]
}
@jdlich
jdlich / markup.html
Created November 29, 2012 03:31
Dynamic height sticky footer
<html>
<head>
<!--[if !IE 7]>
<style type="text/css">
.wrapper {
display: table;
height: 100%
}
</style>
"use strict";
var up = up || {};
(function ($, fluid) {
/**
* Set up the textEditButton. Append a background image with appropriate
* descriptive text to the button.
*
* @return {jQuery} The accessible button located after the display text
function kt { ps ax | grep java | grep "catalina" | awk '{print $1}' | xargs kill -9; }