Skip to content

Instantly share code, notes, and snippets.

$(document).ready(function() {
function splitArrayInGroupsOf(jquery_object_array, group_size) {
var counter = 1,
group = [],
groups = [];
jquery_object_array.each(function() {
group.push($(this)[0]);
if (counter % group_size === 0) {
@chrK
chrK / gist:4660290
Last active December 11, 2015 21:09
Collection of common keywords in pdfs
M-net; mnet
Finanzamt; finanzamt
simyo; simyo
Domaindiscount24.com; domaindiscount
Host Europe GmbH; hosteurope
bayms
swm
stadtwerke; swm
Sparkasse; sparkasse
sipgate
@chrK
chrK / pdf-date-rename
Last active December 11, 2015 18:38
********* Moved to: https://github.com/chrK/pdf-rename ********* A Simple script to parse dates from pdfs and rename them with a date prefix and a keyword. Run the script inside the folder with the pdfs you want to rename. ! Attention: This renames and moves your files. Be sure to have backups of the data you're working on.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, getopt, os, re, time, locale, csv
from cStringIO import StringIO
try:
from pdfminer.pdfinterp import PDFResourceManager, process_pdf
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams
@chrK
chrK / treewalker.py
Created July 28, 2012 18:56
Python: Treewalker
# -*- coding: utf-8 -*-
import os
import fnmatch
import re
root = os.getcwd()
includes = ['includes', ] # For files only.
@chrK
chrK / mobile-meta-links.html
Created June 19, 2012 06:41
HTML: iOS Web App Configuration