Skip to content

Instantly share code, notes, and snippets.

View diomed's full-sized avatar
:octocat:
hold my catnip!

May Kittens Devour Your Soul diomed

:octocat:
hold my catnip!
View GitHub Profile
@diomed
diomed / xslt code_snippets
Last active August 29, 2015 14:13
some xslt code snippets
CATEGORIES
<li><i class="icon-tag"></i>
<a href="{$root}/category/{category/item}" title="View all articles in {category/item}">
<xsl:apply-templates select="category/item"/>
</a>
</li>
ARTICLE IMAGE
@diomed
diomed / oembed_hrvatski
Created January 29, 2015 16:53
Croatian translation for oembed_field
<?php
$about = array(
'name' => 'Hrvatski',
'author' => array(
'name' => 'diomed',
'email' => '@',
'website' => '%'
),
'release-date' => '2015-01-30'
@diomed
diomed / idiomi.txt
Last active August 29, 2015 14:23
prijevodi idioma
(to maintain) low profile - pritajiti se
it works for me - odgovara mi
I'm all ears - slušam
be on your guard - budi u pripravnosti
let me speak frankly - da budem iskren, iskreno
you bet - nego što
as he come in on me? - je l' mi se to on nabacuje?
piece of work - izuzetno
don't push it to hard - nemoj pretjerivati
why do you think that? - odakle ti ta ideja?
@diomed
diomed / ocr.additions.xml
Last active May 27, 2024 17:46
things 4 ocr in SE | silver sombrero | http://git.io/vtMyW
Step1
- uvijek je bolje imati omit na početku, nego dohvaćanje slova i potom njihovo zamjenjivanje putem $1.
Step2
- ako imaš ovo (?&lt;!r) i planiraš zamijeniti sa ovim [?&lt;!r] grdno se varaš da će to raditi - dakle ne!
Try to make Subtitle Edit JAVASCRIPT APPLICATION

For all those still trying to find a job. Inspired by Stan by Eminem.

Still Trying And Nothing

Dear Employers, I wrote you but still ain't callin' I left my address, my email, and my phone number at the bottom I sent two CVs back in autumn, you must not-a got 'em There probably was a problem with my Gmail or somethin' Sometimes I misspell email addresses when I type 'em But anyways, fuck it, what's been up man, are you hiring?

@diomed
diomed / seminar.xsl
Created March 21, 2016 18:58 — forked from animaux/seminar.xsl
Symphony CMS Page consuming external XML via a external datasource and transforming some content for XML-import.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
extension-element-prefixes="dyn exslt str"
xmlns:exslt="http://exslt.org/common"
xmlns:dyn="http://exslt.org/dynamic"
xmlns:str="http://exslt.org/strings">
<xsl:output method="xml"
encoding="UTF-8"
@diomed
diomed / hover.js
Created December 13, 2016 11:49
boostrap hover over menu so it nicely slides down
$(document).ready(function() {
$('ul.nav li.dropdown').hover(function() {
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn();
},
function() {
$(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut().hover(function() {
$(this).stop(true, true);});
});
});
@diomed
diomed / OCR_Fix.py
Last active April 14, 2018 13:52
sa srpskog na hrvatski + ispravci čestih grešaka u hrvatskom
import sublime, sublime_plugin
class ocr_fix( sublime_plugin.TextCommand ):
def run( self, edit ):
regexPairs = get_RegEx_Pairs()
for queryPattern, replacementPattern in regexPairs:
replacements = []
resultRegions = self.view.find_all( queryPattern, 0, replacementPattern, replacements )
<ul class="list--inline site-footer__social-icons social-icons">
<li>
<a class="social-icons__link" href="https://facebook.com/thegivingtheorem" title="The Giving Theorem on Facebook">
<svg aria-hidden="true" focusable="false" role="presentation" class="icon icon-facebook" viewBox="0 0 20 20"><path fill="#444" d="M18.05.811q.439 0 .744.305t.305.744v16.637q0 .439-.305.744t-.744.305h-4.732v-7.221h2.415l.342-2.854h-2.757v-1.83q0-.659.293-1t1.073-.342h1.488V3.762q-.976-.098-2.171-.098-1.634 0-2.635.964t-1 2.72V9.47H7.951v2.854h2.415v7.221H1.413q-.439 0-.744-.305t-.305-.744V1.859q0-.439.305-.744T1.413.81H18.05z"/></svg>
<span class="icon__fallback-text">Facebook</span>
</a>
</li>
{{Taxobox
| name = Persimon
| image = Persimmon 0375.jpg
| image_width = 250p
| image_caption = cvijet vrste ''-{D. virginiana}-''
| regnum = -{[[Biljke|Plantae]]}-
| divisio = -{[[Skrivenosemenice|Magnoliophyta]]}-
| classis = -{[[Dikotiledone biljke|Magnoliopsida]]}-
| ordo = -{[[Ericales]]}-
| familia = -{[[Ebenaceae]]}-