This file contains 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
zoo_weight = { | |
'lion': 2.5, | |
'elephant': 104, | |
'monkey': 27.8, | |
'skunk': 13.4, | |
'horse': 72 | |
} | |
commonweight = 0 | |
for animal in zoo_weight: | |
... |
This file contains 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
import time | |
from selenium import webdriver | |
driver = webdriver.Chrome() | |
time.sleep(5) | |
driver.get('https://yandex.ru') |
This file contains 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
import time | |
from selenium import webdriver | |
# Запускаем браузер и ждём его загрузку | |
driver = webdriver.Chrome() | |
time.sleep(2) | |
# Открываем Маркет | |
driver.get('https://market.yandex.ru') | |
time.sleep(2) |
This file contains 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
<%@ WebHandler Language="C#" Class="GetPointsNearby" %> | |
using System; | |
using System.Web; | |
using System.Web.Script.Serialization; | |
using System.Collections.Generic; | |
using System.Data.SqlClient; | |
using System.Text.RegularExpressions; | |
public class GetPointsNearby : IHttpHandler |
This file contains 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
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Web; | |
using System.Web.Mvc; |
This file contains 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
<!-- webim button generation date: 2017-03-15 version: 8.16.11 --> | |
<script type="text/javascript"> | |
var webimLocation = ''; | |
if(window.location.hostname.indexOf('www.laredoute.ru') == -1) webimLocation = 'mobilnaya_versiya_sayta'; | |
var tcdiv1 = document.createElement("id"); | |
tcdiv1.id = "tc_divid_1"; | |
tcdiv1.style.cssText = "position: fixed;right: 18px;bottom: 80px;color: transparent;font-size: 0;padding: 5px 0px 5px 10px; border-radius: 100%; z-index: 5;"; | |
document.body.appendChild(tcdiv1); |
This file contains 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
<table style="table-layout: fixed;" width="615" cellspacing="0" cellpadding="0" border="0" align="center"> | |
<tbody> | |
[% IF anketa.LRR101.city == "МОСКВА" %] | |
<tr> | |
<td colspan="2"><a x-do-link-test="0" target="_blank" href="https://www.laredoute.ru/batimat?nc=3484&omniturecode=EMC00124866RU&utm_source=mail&utm_medium=assort&utm_campaign=20_OFF_0303"> | |
<img src="https://cdn.laredoute.com/repository/sites/12/ru-RU/emailing/images/32_030320_01_2.jpg" alt="" width="615" height="579"></a> | |
</td> | |
</tr> | |
[% END %] | |
<tr> |
This file contains 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
<script> | |
var values = { | |
'checkbox-love': false, | |
'checkbox-money': false, | |
'checkbox-family': false, | |
'checkbox-business': false, | |
'checkbox-luck': false, | |
'checkbox-power': false, | |
'checkbox-wiseness': false, | |
'checkbox-smartness': false, |
This file contains 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
Для Mac OS X | |
0) Делаешь папку на рабочем столе (например, WP) | |
1) Открываешь Terminal | |
2) Вводишь команду while :;do screencapture ~/Desktop/WP/$(date +%y%m%d%H%M%S).png;sleep 20;done | |
3) В sleep 20 можешь заменить интервал на любой другой (в секундах) | |
4) Нажимаешь (Enter), запускаешь видео на полный экран. Программа просто делает скриншоты, как ты понял | |
5) Когда видео кончится, в терминале надо нажать Ctrl+C (не Cmd!) |
This file contains 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 checkOgImage(branch) { | |
window.open(document.querySelector('meta[property="og:image"]') | |
.attributes.content.value | |
.replace('www', branch + '.preview'), '_blank'); | |
} |
OlderNewer