Skip to content

Instantly share code, notes, and snippets.

View kborchers's full-sized avatar

Kris Borchers kborchers

  • GM Financial
  • Dallas, TX
  • 05:27 (UTC -05:00)
View GitHub Profile
@kborchers
kborchers / LICENSE.txt
Created September 28, 2011 14:05 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@kborchers
kborchers / example.html
Created October 11, 2011 19:15
:focus Selector Example
<!DOCTYPE html>
<html>
<head>
<style>
.focused {
background: #abcdef;
}
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
/*
* jQuery UI Menubar @VERSION
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
.ui-menubar { list-style: none; margin: 0; padding-left: 0; }
table.ui-menubar { display: block; width: 100%; border-collapse: collapse; padding: 0; margin: 0; }
// ==UserScript==
// @name GitHub - Show pull request numbers
// @match https://github.com/*/*/pulls
// @match https://github.com/*/*/pulls/*
// ==/UserScript==
[].slice.call( document.querySelectorAll( ".listings h3" ) ).forEach(function( elem ) {
var anchor = elem.getElementsByTagName( "a" )[ 0 ],
id = anchor.href.match( /(\d+)$/ )[ 0 ],
span = document.createElement( "span" ),
@kborchers
kborchers / trac_pull_numbers.user.js
Created November 21, 2011 15:58
Links to Trac and Pull Request Numbers for jQuery UI
// ==UserScript==
// @name GitHub - Add links to Trac for jQuery UI
// @match https://github.com/jquery/jquery-ui/*
// ==/UserScript==
function findAndReplace(searchText, replacement, searchNode) {
if (!searchText || typeof replacement === 'undefined') {
// Throw error here if you want...
return;
}
@kborchers
kborchers / autocomplete_events.js
Created December 21, 2011 20:46
Fix IE6 Autocomplete Tests
(function( $ ) {
module( "autocomplete: events" );
var data = [ "Clojure", "COBOL", "ColdFusion", "Java", "JavaScript", "Scala", "Scheme" ];
$.each([
{
type: "input",
selector: "#autocomplete",
@kborchers
kborchers / example.js
Created January 20, 2012 17:33
media queries for mobile only on phones
test: Modernizr.mq( "only screen and (max-device-width: 480px)" ) ||
( Modernizr.mq( "only screen and (min-device-width: 480px) and (max-device-width: 800px)" ) && !Modernizr.mq( "only screen and (min-device-width: 768px)" ) )
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.as.quickstarts</groupId>
<artifactId>jboss-as-kitchensink-html5-mobile</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
...
<div data-role="content">
<img src="img/aerogear_icon_64px.png" class="mobileicon"/>
<p>You have successfully deployed a Java EE 6 web application.</p>
<h3>Your application can run on:</h3>
...
The declared package "org.jboss.as.quickstarts.html5_mobile.util" does not match the expected package "test1.test1.util"
JSONPRequestFilter.java /test1/src/main/java/test1/test1/util line 17 Java Problem