Skip to content

Instantly share code, notes, and snippets.

View mkdizajn's full-sized avatar
🐢
slow & thorough > faster & mistakable

Kresimir Pendic mkdizajn

🐢
slow & thorough > faster & mistakable
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mkdizajn on github.
  • I am kpendic (https://keybase.io/kpendic) on keybase.
  • I have a public key whose fingerprint is 3818 B9F9 161A 526D 9473 6C49 5DA9 C21D AB6F 94BA

To claim this, I am signing this object:

@mkdizajn
mkdizajn / redirect-old-urls.php
Created June 6, 2016 20:27 — forked from mikeschinkel/redirect-old-urls.php
WordPress plugin to redirect old URLs when a site is refreshed. Uses a JSON file on activate to import into the DB. If Activation fails because of an error in the JSON file just deactivate, edit the file and then reactivate.
<?php
/**
* Plugin Name: Redirect Old URLs
* Description: Supports redirecting from an old site's URL to a new site on same domain.
* Version: 0.1.0
* Author: The WPLib Team
* Author URI: http://github.com/wplib
* Author Email: team@wplib.org
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@mkdizajn
mkdizajn / Renata calligraphy.markdown
Created February 24, 2016 09:55
Renata calligraphy
@mkdizajn
mkdizajn / Renata i Paula svg animation :).markdown
Created February 24, 2016 09:49
Renata i Paula svg animation :)

Magento category import and export processing

What is included

  • Import the list of categories (open file 'cat-import.php' (upload in the root of your Magento installation) to process importing of file 'cats_in')) 1
  • Export the list of categories (open file 'cat-export.php' (upload in the root of your Magento installation) to process exporting to file 'cats_out')) 2

1 => file named 'cats_in' is here as example of how the list of categories should be formed

@mkdizajn
mkdizajn / index.html
Created January 25, 2016 00:43
my Roman numeral converter
<div class="jumbotron">
<div class="container">
<h1>My Roman converter</h1>
</div>
</div>
<div class="container">
<div class="row">
<form>
<div class="form-group">
<label for="in">Insert int number</label>
@mkdizajn
mkdizajn / @ SimpleDB.md
Created September 25, 2015 10:17
Simple DB

SimpleDB - Like Indexed DB, but Simple

A simple asynchronous data store.

STATUS: This is a thought experiment, not a serious proposal. Would basic async storage like this be useful? With this plus some locking primitive, could you build Indexed DB?

Like Indexed DB:

  • rich value types - store anything you can structured clone
  • rich key types - Number, String, Date, Array (of other key types)
@mkdizajn
mkdizajn / material-colors.css
Last active August 31, 2015 22:22
Google materijal design colors. Classes that uses .tx prefix are for text color property.
.red-50{background-color:#ffebee} .tx-red-50{color:#ffebee}
.red-100{background-color:#ffcdd2} .tx-red-100{color:#ffcdd2}
.red-200{background-color:#ef9a9a} .tx-red-200{color:#ef9a9a}
.red-300{background-color:#e57373} .tx-red-300{color:#e57373}
.red-400{background-color:#ef5350} .tx-red-400{color:#ef5350}
.red-500{background-color:#f44336} .tx-red-500{color:#f44336}
.red-600{background-color:#e53935} .tx-red-600{color:#e53935}
.red-700{background-color:#d32f2f} .tx-red-700{color:#d32f2f}
.red-800{background-color:#c62828} .tx-red-800{color:#c62828}
.red-900{background-color:#b71c1c} .tx-red-900{color:#b71c1c}