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
#!/usr/bin/python | |
import MySQLdb as mdb | |
import sys | |
import csv | |
import smtplib | |
from datetime import datetime | |
from email.MIMEBase import MIMEBase | |
from email.MIMEMultipart import MIMEMultipart | |
from email import Encoders |
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
#!/usr/bin/python2.7 | |
import requests | |
import datetime | |
import smtplib | |
import logging | |
import re | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
sender = "uptimebot@test.com" |
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
from selenium import webdriver | |
from selenium.webdriver.support.select import Select | |
browser = webdriver.Firefox() | |
browser.get('http://www.amxremit.com') | |
# get the currency dropdown | |
select = Select(browser.find_element_by_id("showrate")) | |
select.select_by_index(3) #for INR currency |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Test Suite!</title> | |
<style> | |
li.pass { background: green; | |
color: white;} | |
li.fail { background: red; color: white;} | |
ul#results ul { margin-bottom: 10px;} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Test Suite!</title> | |
<style> | |
li.pass { background: green; | |
color: white;} | |
li.fail { background: red; color: white;} | |
ul#results ul { margin-bottom: 10px;} |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
files: ['**/*.js', '**/*.html'], | |
options: { | |
// Start a live reload server on the default port 35729 | |
livereload: true, |
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
#!/usr/bin/python2.7 | |
import re | |
from collections import Counter | |
import sys | |
def do_analysis(data): | |
date_map = dict() | |
for l in data: |
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
filename=$1 | |
for hour in {0..23} | |
do | |
for minute in {0..59} | |
do | |
if [ $hour -lt 10 ] | |
then | |
h="0$hour" | |
else |
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
angular.module("xciteServices", []) | |
.factory('CartService', function() { | |
// Factory for Cart Items | |
var cartItems = angular.copy(window.Globals.CartItems); | |
return { | |
// private function to find item with itemId | |
_findItem: function(itemId) { | |
var index = -1; | |
for (var i in cartItems) { | |
if (cartItems[i].id === itemId) { |
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
{ | |
"status": "success", | |
"product_delivery_messages": { | |
"1294420": "Same Day Delivery", | |
"1294427": "Next Day Delivery" | |
}, | |
"product_delivery_methods": { | |
"1294420": [ | |
{ | |
"value": "standard_delivery", |