Skip to content

Instantly share code, notes, and snippets.

View SDKiller's full-sized avatar

Serge Postrash SDKiller

View GitHub Profile
<div id="ok_group_widget"></div>
<script> !function (d, id, did, st) {
var js = d.createElement("script");
js.src = "http://connect.ok.ru/connect.js";
js.onload = js.onreadystatechange = function () {
if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
if (!this.executed) {
this.executed = true;
setTimeout(function () {
OK.CONNECT.insertGroupWidget(id, did, st);
array(3) {
[1]=>
object(stdClass)#640 (9) {
["name"]=>
string(12) "Букеты"
["description"]=>
string(0) ""
["short_description"]=>
string(0) ""
["category_id"]=>
@SDKiller
SDKiller / jgrowl-example.html
Last active August 29, 2015 14:27
A getting started example using jGrowl on cdnjs.
<!DOCTYPE html>
<html>
<head>
<title>jGrowl</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery-jgrowl/1.2.12/jquery.jgrowl.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-jgrowl/1.2.12/jquery.jgrowl.min.js"></script>
<script type="text/javascript">
(function($){
$(function(){
<script type="text/javascript" src="http://vozmivcredit.ru/media/api/widget.js"></script>
<script type="text/javascript">
var kreditData = {
code: 'AzNjE5NzA',
items: [
{
title: "Apple iPhone 6+ 128Gb space gray",
qty: 1,
price: "37400.00"
}
var kreditData = {
code: 'AzNjE5NzA',
items: [
{
title: "Apple iPhone 6+ 128Gb space gray",
qty: 1,
price: "37400.00"
}
]
};
<script type="text/javascript" src="http://vozmivcredit.ru/media/api/widget.js"></script>
<img src="http://j343.lo/media/api/button_1.png" style="cursor:pointer" onclick='kVK.openWidget({code: "MpS9PGGYcg", items: [{title: "Смартфон 1", qty: "1", price: "50000"},{title: "Смартфон 2", qty: "2", price: "30000"}]});'/>
(function ($) {
var kVK = {
apiUrl: 'http://vozmivcredit.ru/api/',
openWidget: function (data) {
$.ajax({
url: kVK.apiUrl,
data: data,
type: 'POST',
cache: false,
dataType: 'jsonp',
<?php
?>
<div style="height:22px;">
<table align="right">
<tr>
<td>
<form action="<?php print SEFLink('index.php?option=com_jshopping&controller=product&task=reviewsave'); ?>"
name="add_review" method="post">
<input type="hidden" name="product_id" value="<?php echo $this->product->product_id ?>"/>
<input type="hidden" name="back_link" value="<?php echo $_SERVER['REQUEST_URI'] ?>"/>
@SDKiller
SDKiller / customroute.php
Last active August 29, 2015 14:12
Example usage
<?php
/**
* @author SDKiller
* @copyright Copyright (C) 2015 SDKiller, http://jexy.ru. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
require_once dirname(__FILE__) . '/MyCoolRouter.php';
<?php
/*------------------------------------------------------------------------
# mod_newscalendar - News Calendar
# ------------------------------------------------------------------------
# author Jesús Vargas Garita
# Copyright (C) 2010 www.joomlahill.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.joomlahill.com
# Technical Support: Forum - http://www.joomlahill.com/forum
-------------------------------------------------------------------------*/