This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name SocialEngine Auto Translator | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @author You | |
// @grant none | |
// @include http://znakomstva.flyweb.pro/admin/language/edit/locale/ru_RU* | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function(){ document.querySelector('.b-link.js-profile-header-vote').click() }, 1500); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
.buildpath | |
.project | |
-project | |
.settings | |
*.sublime-project | |
*.sublime-workspace | |
azbyka-design/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function calcLastTabHeight ($tabs, $currentTabContent) { | |
$tabs.find('.last-tab').css('height', 0); | |
var contentHeight = $currentTabContent.outerHeight(); | |
var tabsHeight = $tabs.outerHeight(); | |
var transTabHeight = contentHeight - tabsHeight; | |
$tabs.find('.last-tab').css('height', transTabHeight); | |
} | |
function hideTabsContent ($tabBox) { | |
$tabBox.find('.tab-content').each(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP FUNCTION IF EXISTS distance; | |
DELIMITER $$ | |
CREATE FUNCTION distance(lat1 FLOAT, lng1 FLOAT, lat2 FLOAT, lng2 FLOAT) | |
RETURNS INT | |
BEGIN | |
DECLARE earth_radius FLOAT; | |
DECLARE d_lat FLOAT; | |
DECLARE d_lng FLOAT; | |
DECLARE a FLOAT; | |
DECLARE c FLOAT; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="editprofile-content shop-categories"> | |
<table> | |
<?php if (count($products_categories) > 0): ?> | |
<tr> | |
<td> | |
<?php $i = 0; ?> | |
<?php foreach($products_categories as $category): ?> | |
<?php if ($i != 0 && $i % (count($products_categories)/2) == 0): ?> | |
</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'), | |
util = require('util'), | |
fs = require('fs'), | |
events = require('events'); | |
var attackUrl = 'http://ispi.ru/'; | |
var proxyLists = []; | |
var proxyFile = __dirname+'/proxylist.txt'; | |
var e = new events.EventEmitter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = "/home/y/yahoch/dommebeli.org.ru/public_html"; | |
$pathto = "/home/y/yahoch/mebelless.ru/public_html"; | |
function onlyjpg($var){ | |
global $path; | |
$file_info = pathinfo($path."/".$var); | |
return $file_info['extension'] == "jpeg" or $file_info['extension'] == "jpg"; | |
} | |
function movefiles($var){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-Type: text/html; charset=UTF-8"); | |
try{ | |
$dommebeli = new PDO('mysql:host=localhost;dbname=yahoch_b0_domm', 'yahoch_b0_domm', 'cegthvtufgfhjkm',array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); | |
$mebeless = new PDO('mysql:host=localhost;dbname=yahoch_mergedb','yahoch_mergedb','12345678',array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); | |
$parentCategory = 51; | |
/* | |
* Перемещение производителей | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function email() | |
{ | |
$from_email = ''; | |
$from_pass = ''; | |
$text = ""; | |
$file = 'spam/mails2.txt'; | |
$email_content = file_get_contents(FCPATH.$file); | |
if(empty($email_content)){ echo "no content load"; return; } |