Skip to content

Instantly share code, notes, and snippets.

View larscwallin's full-sized avatar

Lars Wallin larscwallin

View GitHub Profile
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<link rel="stylesheet" type="text/css" href="jquery.gridster.css">
<style type="text/css">
@larscwallin
larscwallin / loader.html
Created September 18, 2012 13:22
Spinning clock
<html>
<header>
<style type="text/css">
/* ==========================================================
* SMW Loader
* =========================================================*/
.loader{
color: #555;
@larscwallin
larscwallin / InkscapeDock.txt
Created July 29, 2012 19:39
ArtDock for Inkscape
;############################### Window Settings ##############################
; Background color of window.
#Window:Color=Black
; Default font color.
#Window:FontColor=9B9B9B
; Font color when button is pressed.
#Window:ActiveFontColor=00C0FF
; Specify Start-up window position by Left/Right/Top/Bottom. (alone or in combination)
@larscwallin
larscwallin / aspect.modx.json-schema.xslt
Created June 7, 2012 09:23
XPDO to JSON-SCHEMA XSLT
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output omit-xml-declaration="yes" />
<xsl:output method="text" />
<xsl:output indent="yes" />
<xsl:output media-type="text/plain" />
<xsl:param name="directory"/>
<xsl:param name="label-composite">Composites</xsl:param>
@larscwallin
larscwallin / simplx.js
Created February 7, 2012 11:25
simplx.js
simplx = {
_debugMode:false,
_namespaceSeparator:'.',
_extend:function(ns,component){
var nsArray;
var targetLocation = this; // First point at the base namespace/Object
var currentNs = '';
if(ns !== '' && component instanceof Object){
@larscwallin
larscwallin / README
Created January 23, 2012 12:09
SIMPLX UserManager
SIMPLX UserManager version 0.0.0.0.0.0.0.1
Helps you to get JSON encoded information from the MODx User related tables.
I use it to populate a TV dropdown with MODx users.
UPDATE 120123 13:17
Parameters:
public class RestClient {
private ArrayList <NameValuePair> params;
private ArrayList <NameValuePair> headers;
private String url;
private int responseCode;
private String message;
@larscwallin
larscwallin / Disclaimer.chunk
Created January 13, 2012 20:17
Widgeteer IRXML
<li>
<b>[[+@attributes.id]]</b>
</br>
[[+DisclaimerText]]
</li>
@larscwallin
larscwallin / a readme
Created December 29, 2011 14:06
jquery.bondage, Wrapper for jquery-datalink
Welcome to jquery.bondage!
This project wraps the jquery.datalink plugin which does a great job of linking a data set (json object) to a HTML form.
The datalink plug does not update the form for you which i felt was a bit annoying :/ Well, instead of doing a one of
for the project i was working on i decided to make a reusable plugin :)
jquery.bondage adds some features to jquery.datalink,
- Form rendering
@larscwallin
larscwallin / jquery.elementFromPoint
Created December 28, 2011 16:35
jquery.elementFromPoint
(function ($){
var check=false, isRelative=true;
$.elementFromPoint = function(x,y)
{
if(!document.elementFromPoint) return null;
if(!check)
{
var sl;