Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Tomasz Gregorczyk Tomasz-Silpion

💭
I may be slow to respond.
Block or report user

Report or block Tomasz-Silpion

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mbaersch
mbaersch / adwords-script-product-reviews.js
Last active Jul 9, 2019
Dynamische Anzeige von Trusted Shops Produktbewertungen
View adwords-script-product-reviews.js
/***********************************************************************/
/****** Dynamische Anzeige von Trusted Shops Produktbewertungen *******/
/***********************************************************************/
/* v1.2 2017 Markus Baersch (@mbaersch)
gandke marketing & software - www.gandke.de */
/******************************* Setup *******************************/
//Bezeichnung des Labels für Anzeigegruppen mit zu behandelnden Keywords angeben
var lblDynParams = "ApiRating";
@evgv
evgv / mage_update_content_of_meta_robots_tag.markdown
Last active Jan 5, 2019
Magento. Update content of meta robots tag
View mage_update_content_of_meta_robots_tag.markdown

Update content of meta robots tag

Declare observer into config.xml

    
    <frontend>
        <events>
            <controller_action_layout_generate_xml_before>
                <observers>
@thomaslorentsen
thomaslorentsen / pca.js
Last active Mar 21, 2019
Custom integration of post code anywhere
View pca.js
pca.on("load", function (type, id, control) {
control.listen("populate", function (address) {
console.log('here');
});
});
@codenameone
codenameone / MultiListSample.java
Last active Sep 30, 2016
Sample for creating a simple MultiList UI in Codename One
View MultiListSample.java
public void showForm() {
Form hi = new Form("MultiList", new BorderLayout());
int mm = Display.getInstance().convertToPixels(3);
EncodedImage placeholder = EncodedImage.createFromImage(Image.createImage(mm * 3, mm * 4, 0), false);
Image icon1 = URLImage.createToStorage(placeholder, "icon1", "http://www.georgerrmartin.com/wp-content/uploads/2013/03/GOTMTI2.jpg");
Image icon2 = URLImage.createToStorage(placeholder, "icon2", "http://www.georgerrmartin.com/wp-content/uploads/2012/08/clashofkings.jpg");
Image icon3 = URLImage.createToStorage(placeholder, "icon3", "http://www.georgerrmartin.com/wp-content/uploads/2013/03/stormswordsMTI.jpg");
Image icon4 = URLImage.createToStorage(placeholder, "icon4", "http://www.georgerrmartin.com/wp-content/uploads/2012/08/feastforcrows.jpg");
Image icon5 = URLImage.createToStorage(placeholder, "icon5", "http://georgerrmartin.com/gallery/art/dragons05.jpg");
@bjorn2404
bjorn2404 / wordpress_remote_images
Created May 21, 2015
WordPress load remote images if they don't exist on the local development server htaccess
View wordpress_remote_images
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/(.*)$
RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads/%1 !-f
RewriteRule ^wp-content/uploads/(.*)$ http://www.remotesite.com/wp-content/uploads/$1 [R=301,L]
</IfModule>
@herveguetin
herveguetin / next_business_day.php
Last active Aug 26, 2017
Retrieve the next business or calendar day in Magento with an optional leadtime. Magento weekend days config is taken into account.
View next_business_day.php
<?php
/**
* Retrieve the next business day with an optional leadtime.
* If leadtime = 1 => find the next business day
* If leadtime = 2 => find the "next next" business day
* etc...
*
* @param int $leadtime
* @return string|bool
*/
View index.html
<!DOCTYPE html>
<html>
<head>
<title>title</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
<h1>Hello, world</h1>
<script src="http://code.jquery.com/jquery.js"></script>
You can’t perform that action at this time.