Skip to content

Instantly share code, notes, and snippets.

Pasi Lallinaho knomepasi

Block or report user

Report or block knomepasi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@knomepasi
knomepasi / script.js
Last active Jul 4, 2017
Pan controls for Google Maps JS API v2.34+
View script.js
var panControl = document.createElement( 'div' );
panControl.className = 'panControls';
var directions = ['North', 'West', 'East', 'South'];
var pan = [];
directions.forEach( function( item ) {
pan[item] = document.createElement( 'div' );
pan[item].className = 'panControl ' + item;
pan[item].innerHTML = '<img src="pan_arrow.png" />';
// Uncomment the row below if you prefer a base64-encoded image embedded into the script
@knomepasi
knomepasi / ubuntu-com-website-improvements.user.css
Last active Oct 19, 2015
Minor improvements for several ubuntu.com websites
View ubuntu-com-website-improvements.user.css
@namespace url(http://www.w3.org/1999/xhtml);
/*
* Ubuntu Etherpad
* pad.ubuntu.com
*
*/
@-moz-document domain("pad.ubuntu.com") {
/* Make sure the last line of the chat is shown */
@knomepasi
knomepasi / compact-jquery-api.user.css
Last active Aug 26, 2015
A compact layout for the jQuery API documentation
View compact-jquery-api.user.css
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("api.jquery.com") {
/* Header */
#logo-events {
padding: 0 0 1.5em 0;
}
#logo-events .logo a {
height: 1.8em;
background-size: auto 100%;
@knomepasi
knomepasi / find-a-task-index.user.js
Last active Aug 29, 2015
Ubuntu Find-a-Task: Show the full task index
View find-a-task-index.user.js
// ==UserScript==
// @name Show the full Find-a-Task index
// @namespace knome-ubuntu
// @include http://community.ubuntu.com/contribute/find-a-task/*
// @version 1
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// ==/UserScript==
jQuery.noConflict( );
You can’t perform that action at this time.