Skip to content

Instantly share code, notes, and snippets.

@setola
setola / designer.html
Last active August 29, 2015 14:19
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@setola
setola / nibirumail.cookie.js
Created May 13, 2015 21:09
Nibirumail Cookie Policy for jQuery noConflict
@setola
setola / main.js
Created May 24, 2016 16:24
A simple way to integrate external controls to Bootstrap carousel
/**
* Just an object used for name spacing
*/
var agitaLab = {};
/**
* Two ways binding between an external "carousel-control like"
* element and the carousel slides.
* Remember to add data-item-no to your carousel :)
*/
@setola
setola / index.php
Created March 23, 2017 11:37
import customers prestohop -> woocommerce
<?php
/**
* Created by PhpStorm.
* User: setola
* Date: 22/02/17
* Time: 10.09
*/
$sql = <<<SQL
SELECT
@setola
setola / index.php
Created July 14, 2017 15:22
CSV to RewriteRule
<?php
$inHandler = fopen("in.csv", "r");
$outHandler = fopen("out.txt", "w");
$row = 0;
while (($data = fgetcsv($inHandler, 1000, ",")) !== FALSE) {
$row++;
if (1 == $row) continue;