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
require 'rubygems' | |
require 'bundler/setup' | |
require "rspec" | |
require "capybara/rspec" | |
require "capybara/dsl" | |
require "debugger" | |
require "selenium/webdriver" | |
spec_dir = File.dirname(__FILE__) |
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
In windows machine: | |
Pre-requistes: | |
Jave installed - go for latest version. use java.com | |
Download following: | |
selenium-server-standalone-2.35.0.jar | |
IEDriverServer_Win32_2.35.2.zip | |
Download ref: | |
https://code.google.com/p/selenium/downloads/list |
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
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
Capybara.run_server = false | |
Capybara.current_driver = :selenium | |
class Test | |
include Capybara::DSL | |
def test_google |
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 ng-app> | |
<head> | |
<meta name="description" content="AngularShowHide" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-controller="Controller"> | |
<form name="form" class="css-form" novalidate> | |
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 ng-app> | |
<head> | |
<meta name="description" content="AngularShowHide" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-controller="Controller"> | |
<form name="form" class="css-form" novalidate> | |
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 ng-app> | |
<head> | |
<meta name="description" content="AngularShowHide_WithUnderscore" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
<script src="http://underscorejs.org/underscore-min.js"></script> | |
</head> | |
<body> | |
<div ng-controller="Controller"> | |
<form name="form" class="css-form" novalidate> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="#YourProject#" default="jar" basedir="."> | |
<target name="init"> | |
<property name="main-class" value="#com.your.package.yourmainclass#"/> | |
<property name="src.dir" value="src"/> | |
<property name="build.dir" value="build"/> | |
<property name="classes.dir" value="${build.dir}/classes"/> | |
</target> | |
<target name="clean" depends="init"> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="YourProjectName" default="jar" basedir="."> | |
<target name="init"> | |
<property name="version" value="1.0.0" /> | |
<property name="debuglevel" value="source,lines,vars"/> | |
<property name="main-class" value="com.company.project.mainclass"/> | |
<property name="src.dir" value="src"/> | |
<property name="build.dir" value="build"/> | |
<property name="classes.dir" value="${build.dir}/classes"/> | |
<property name="lib.dir" value="lib" /> |
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/ruby | |
require 'net/http' | |
require 'net/smtp' | |
require 'uri' | |
require 'yaml' | |
require 'logger' | |
#README | |
#FIELD NEEDS CHANGE - SEARCH AND REPLACE | |
#<email_id> - 2 entries |
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
public static boolean is_valid_email(String email) { | |
String email_pattern = "[^\\s]+@[^\\s]+.[^\\s]+"; | |
java.util.regex.Pattern r = java.util.regex.Pattern.compile(email_pattern); | |
try { | |
java.util.regex.Matcher m = r.matcher(email); | |
return m.matches(); | |
} catch (java.lang.NullPointerException e) { | |
return false; | |
} | |
} |
OlderNewer