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
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
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-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
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
<!-- string to find --> | |
(^[а-яА-ЯёЁ a-zA-Z,. - -:;]+) | |
<!-- string to replace --> | |
<p>$1</p> |
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 | |
$token = "ADMIN_TOKEN"; // replace with your admin token | |
$url = "https://api.hipchat.com/v1/users/list?auth_token=".$token; // this url gets all users and their attributes, for more info visit https://www.hipchat.com/docs/api/ | |
$c = curl_init(); | |
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false); // required this for https access | |
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 2); // this one too | |
curl_setopt($c, CURLOPT_URL, $url); | |
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); | |
echo curl_exec($c); // return json data |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
html { | |
width: 100%; | |
height: 100%; | |
} | |
body { |
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
@footer_height: 100px; | |
body, html { | |
height: 100%; | |
} | |
.i-sticky { | |
min-height: 100%; | |
height: auto !important; | |
height: 100%; |
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
/* `Clear Floated Elements | |
----------------------------------------------------------------------------------------------------*/ | |
/* http://sonspring.com/journal/clearing-floats */ | |
.clear { | |
clear: both; | |
display: block; | |
overflow: hidden; | |
visibility: hidden; |