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 platform | |
import sys | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import WebDriverWait | |
def _get_platform(): | |
# On Android sys.platform returns 'linux2', so prefer to check the | |
# presence of python-for-android environment variables (ANDROID_ARGUMENT | |
# or ANDROID_PRIVATE). |
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
If you think sed is not working properly, just add quotes | |
echo "123123,1.0000" | sed 's/\([1-9]\).0000/\1/g' |
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
<div style="font-family:Arial,Helvetica,sans-serif;line-height:18px"> | |
<p>Dear Andriy,</p> | |
<p>Here is a summary of your order on Boodmo.com:</p> | |
<br> | |
<p>Sold by: Indian machines and trucks</p> | |
<table cellspacing="0" width="100%" style="border-collapse:collapse"> | |
<thead> | |
<tr style="background:#e8e8e8;color:#555"> | |
<th style="padding:8px;text-align:left">S.No</th> | |
<th style="padding:8px;text-align:left">Item</th> |
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
# trello.com/b/Mumoqgty.json | |
import json | |
with open('boodmo.json') as data_file: | |
data = json.load(data_file) | |
cards = data['cards'] | |
for card in cards: | |
if (card['closed'] == False and card['idList'] == '55fa9cb8b9338073afd3dedc'): | |
print card['name'] + " (" + card['shortUrl'] + ")" |
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 json | |
with open('boodmo.json') as data_file: | |
data = json.load(data_file) | |
cards = data['cards'] | |
for card in cards: | |
if (card['closed'] == False and card['idList'] == '55fa9cb8b9338073afd3dedc'): | |
print card['name'] + " (" + card['shortUrl'] + ")" |
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
EMIJ,235 | |
EMIL,240 | |
EMIN,237 | |
EMIR,234 | |
EMIS,236 | |
EMIT,180 | |
EMIZ,239 | |
EURU,241 | |
EUSA,238 | |
FAST,242 |
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
#!/bin/bash | |
cd /var/www/shared/emex | |
rm all.csv | |
rm *.rar | |
wget ftp://emexonline.com/megaprice/{EMIR,EMIJ,EMIS,EMIN,EMIT,EUSA,EMIZ,EMIL,EURU,FAST,KORA,KOSA,OPTA}.rar | |
find . -name "*.rar" -exec unrar x -o+ {} \; | |
# Pre-sorting SKU and Brands mapping |
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
omniexplorer_bot | |
yandeximages | |
Spinn3r | |
sogou | |
sosospider+ | |
jikespider | |
ia_archiver | |
PaperLiBot | |
ahrefsbot | |
SiteBot |
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 src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" async=""></script><!-- up --> <ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-9137939739742558" data-ad-slot="5338326028" data-ad-format="auto"></ins><script>// <![CDATA[ | |
(adsbygoogle = window.adsbygoogle || []).push({}); | |
// ]]></script> |
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
AWS.config.region = 'us-east-1'; | |
AWS.config.credentials = new AWS.CognitoIdentityCredentials({ | |
IdentityPoolId: 'us-east-1:123123123123123123123', | |
}); | |
AWS.config.credentials.get(function() { | |
var syncClient = new AWS.CognitoSyncManager(); | |
syncClient.openOrCreateDataset('myDataset', function(err, dataset) { | |
NewerOlder