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
require 'rubygems' | |
require 'selenium-webdriver' | |
require_relative 'WebModule' | |
require_relative 'web_class.rb' | |
def buyTicket driver | |
#test url1: 'http://www.walkieticket.com/product.aspx?P1=0000003817' | |
#frip side: 'http://www.walkieticket.com/product.aspx?P1=0615231106' | |
#frip side2: http://www.walkieticket.com/order.aspx?P1=0615231106&P2=&P3=&P4=&P5=0&P9=0,0,0,0,0 |
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
import time | |
from appium import webdriver | |
from selenium.common.exceptions import WebDriverException | |
import os | |
#import os.path | |
import traceback | |
dic_localtion = {} | |
dic_localtion['touch0'] = (715, 1173) | |
dic_localtion['touch1'] = (314, 800) |
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
email_string = '[email protected];[email protected];[email protected]' | |
emails = email_string.split(';') | |
print emails | |
email_domains = {} | |
for email in emails: | |
domain = email.split('@')[1].strip() | |
if domain in email_domains: | |
email_domains[domain] += 1 | |
else: |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TapeEquilibrium | |
{ | |
class Program | |
{ |
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
using System; | |
// you can also use other imports, for example: | |
// using System.Collections.Generic; | |
// you can write to stdout for debugging purposes, e.g. | |
// Console.WriteLine("this is a debug message"); | |
class Solution { | |
public int solution(int X, int Y, int D) { | |
// write your code in C# 6.0 with .NET 4.5 (Mono) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace PermMissingElem | |
{ | |
class Program | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FrogRiverOne | |
{ | |
class Program | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace PermCheck | |
{ | |
class Program | |
{ |
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
using System; | |
namespace MissingInteger | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ | |
int[] A = { 1, 3, 5, 4, 1, 2 }; | |
int[] B = { 1 }; |
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
using System; | |
namespace MaxCounters | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ | |
int[] A = { 3, 4, 4, 6, 1, 4, 4 }; | |
int n = 5; |