Skip to content

Instantly share code, notes, and snippets.

View it-ony's full-sized avatar

Tony Findeisen it-ony

View GitHub Profile
@it-ony
it-ony / embed-tablomat.html
Created January 20, 2016 16:30
Embed Tablomat + parse Deeplinks with JS
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Embed Tablomat</title>
</head>
<body>
Pass deeplinks via Url Parameters, e.g. ?productTypeId=812&tx1=Hello&tx2=World
<!-- designer goes into this div -->
@it-ony
it-ony / tweetdeck.css
Last active August 29, 2015 14:16
CSS for smaller avatars in tweetdeck
/* smaller icon */
.app-columns .column .tweet-avatar, .column .avatar {
width: 20px;
height: auto;
}
.app-columns .column .tweet-img {
width: 20px;
margin-left: -30px;
@it-ony
it-ony / firstArticleOfShop.js
Last active August 29, 2015 14:16
Display image of first article of shop
// MIT LICENSE, Tony Findeisen
(function(undefined) {
var shopId = 205909,
id = 'callback_' + shopId,
locale = 'de_DE';
var script = document.createElement('script');
script.src = 'http://api.spreadshirt.de/api/v1/shops/' + shopId + '/articles?limit=1&locale=' + locale + '&mediaType=jsonp&callback=' + id;
@it-ony
it-ony / cssToXpath
Last active December 29, 2015 14:18
A pegjs grammar to convert css selectors to their respective xpath selector. Try it online http://pegjs.majda.cz/online. Now also with weights.
/**
Parses css selectors to their respective xpath expressions.
TODO:
- pseudo classes
for calculation of weight of the selectors, see
http://aktuell.de.selfhtml.org/archiv/doku/8.1.1/css/formate/kaskade.htm#spezifitaet
**/
@it-ony
it-ony / Proposals.md
Last active December 24, 2015 04:19
@leipzigjs talk proposals

Talk proposals for @leipzigjs usergroup

(In a non prioritized order)

  • flow.js - a synchron, asynchron control flow javascript library
  • inherit.js - a js inheritance library
  • xajax - perform cross-domain AJAX requests via iFrame and postMessage
  • query.js - an abstract query language which can be mapped to different query language implementations
  • jscop - static javascript code analyser written in node.js