Skip to content

Instantly share code, notes, and snippets.

Avatar

Kris Borchers kborchers

  • Microsoft
  • Dallas, TX
View GitHub Profile
View gist:40dd6b6a34f69450e473
<style> blockquote { border-left: none; color: inherit; } </style>

JQUERY FOUNDATION, INC.

SECOND AMENDED BYLAWS

EFFECTIVE AS OF: _____________, 2014

View keybase.md

Keybase proof

I hereby claim:

  • I am kborchers on github.
  • I am kborchers (https://keybase.io/kborchers) on keybase.
  • I have a public key whose fingerprint is 25F9 82B2 C8D9 9A5A 7996 696F 042B 1D5C DBBE E037

To claim this, I am signing this object:

@kborchers
kborchers / LICENSE.txt
Created Sep 28, 2011 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
View LICENSE.txt
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 Oct 11, 2011
:focus Selector Example
View example.html
<!DOCTYPE html>
<html>
<head>
<style>
.focused {
background: #abcdef;
}
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
View jquery.ui.menubar.css
/*
* 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; }
View github-pull-request-number.user.js
// ==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 Nov 21, 2011
Links to Trac and Pull Request Numbers for jQuery UI
View trac_pull_numbers.user.js
// ==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 Dec 21, 2011
Fix IE6 Autocomplete Tests
View autocomplete_events.js
(function( $ ) {
module( "autocomplete: events" );
var data = [ "Clojure", "COBOL", "ColdFusion", "Java", "JavaScript", "Scala", "Scheme" ];
$.each([
{
type: "input",
selector: "#autocomplete",
@kborchers
kborchers / example.js
Created Jan 20, 2012
media queries for mobile only on phones
View example.js
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)" ) )
View pom.xml
<?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>