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
javascript: | |
/** | |
* простой букмарклет, который парсит улицы из http://mosopen.ru/ | |
*/ | |
(function () { | |
var txt = "["; | |
var a = document.querySelectorAll(".double_part li > a"); | |
for (var i=0;i<a.length;i++) { | |
var t = a[i].innerText; | |
txt += '"'+t+'",'; |
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
javascript: | |
/** | |
* простой букмарклет, который парсит фотки из http://www.kia-motors.com.ua/ | |
*/ | |
(function () { | |
var a = document.querySelectorAll(".galleryContainer > a"); | |
var docHeight = document.height; | |
/** | |
* Создаю фон прелоадера | |
* @type {*} |
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
geocoder = new google.maps.Geocoder(); | |
function codeLatLng(latlng) { | |
geocoder.geocode({'latLng': latlng}, function(results, status) { | |
if (status == google.maps.GeocoderStatus.OK) { | |
if (results[1]) { | |
var city = results[1]["address_components"][2]["short_name"]; | |
var setPhone; |
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
javascript: | |
/** | |
* простой букмарклет, который парсит фотки из http://www.kia.ua/ | |
*/ | |
(function () { | |
var a = document.querySelectorAll("#thumbs .thumbs .thumb"); | |
var docHeight = document.height; | |
/** | |
* Создаю фон прелоадера | |
* @type {*} |
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
for i in *.ext; do mv -- "$i" "${i%.ext}.otherext"; done |
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
INSERT INTO wp_posts (post_author,post_date,post_date_gmt,post_modified,post_modified_gmt,post_content,post_title,post_status,post_name,post_type,mmm_term_id) | |
SELECT '1',now(),now(),now(),now(),'db_flow',name,'draft',slug,'course',term_id | |
FROM wp_terms |
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
UPDATE `wp_posts`, `wp_term_relationships` | |
SET `wp_posts`.`mmm_term_id` = `wp_term_relationships`.`term_taxonomy_id` | |
WHERE `wp_posts`.`ID` = `wp_term_relationships`.`object_id` AND `wp_posts`.`post_type` = 'lesson' |
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
INSERT INTO `wp_postmeta` (`post_id`,`meta_key`,`meta_value`) | |
SELECT ID,'_lesson_course',`mmm_term_id` | |
FROM `wp_posts` WHERE `post_type` = 'lesson' |
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
UPDATE `wp_posts` | |
SET `wp_posts`.`post_status` = 'publish' | |
WHERE `wp_posts`.`post_type` = 'course' |
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
$boeing_787: #787; | |
$boeing_777: #777; | |
$boeing_767: #767; | |
$boeing_747: #747; | |
$boeing_737: #737; | |
$airbus_320: #320; | |
$airbus_330: #330; | |
$airbus_340: #340; | |
$airbus_350: #350; |