php codecept.phar generate:stepobject acceptance Member
Create PageObjects
| // http://www.iecc.com/linker/linker03.html | |
| // Figure 2: a.out header | |
| // int a_magic; -- magic number | |
| // int a_text; -- text segment size | |
| // int a_data; -- initialized data size | |
| // int a_bss; -- uninitialized data size | |
| // int a_syms; -- symbol table size | |
| // int a_entry; -- entry point | |
| // int a_trsize; -- text relocation size |
| package controllers | |
| import play.api._ | |
| import play.api.libs.concurrent._ | |
| import play.api.libs.ws._ | |
| import play.api.mvc._ | |
| import scala.xml._ | |
| object Application extends Controller { |
| echo " (^·. )\ (^·. )\ /( .·´ ::’·._) ·. (::::.... .. .:\( | |
| ) ^·. .·´( .·´ ( ) ^·. .·´( .·´ ( /( )\ ) ^·._):::. ) ’ .·´( )::. ..:::).·´;·:: ´ ´\::.::....:·´ | |
| .·´( .·´:..::(,(::-- \:·´ .·´( .·´:..::(,(::-- \::.^·._) ^·.’ )\ .·´ .:^·.(:;; -- \:. :(.·´) )\ ):..\(;;::-- ´ ´ \:::::::..::) | |
| \:::....::::·´ _\’ );; :-- \::....:::::).· (,): -- \....:::^·.( ( (::...:/\ ¯¯¯¯¯¯ /·. | |
| )..:::·´ ,..:´::: / .·´/\ ,...__ ¯¯¯^ ·:·´’):.::/\ ¯¯¯^ · ::·´’ ^·:/::::\...:’/ ___________/..::) | |
| ^·::/ /::::::::/ )/::: \...:´/ /:::::::::::/ / ^·:/::::\...:´/ ____ \ \::::/::::/ /::: |
| { | |
| "nginx": { | |
| "port" : 80 | |
| }, | |
| "run_list":[ | |
| "yum::epel", | |
| "nginx" | |
| ] | |
| } |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant::Config.run do |config| | |
| config.vm.box = "centos64_64" | |
| config.vm.define :web do |india| | |
| india.vm.host_name = "india" | |
| india.vm.network :hostonly, "192.168.50.12" |
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| karma: { | |
| unit: { | |
| configFile: 'karma.conf.js', | |
| autoWatch: true | |
| } |
| #!/usr/bin/env scalas | |
| // @see http://eed3si9n.com/ja/scripting-with-scala | |
| // chmod +x script.scala | |
| // export CONSCRIPT_OPTS="-XX:MaxPermSize=512M -Dfile.encoding=UTF-8" | |
| // ./script.scala | |
| /*** | |
| scalaVersion := "2.11.7" |
| #!/usr/bin/env scalas | |
| // @see http://eed3si9n.com/ja/scripting-with-scala | |
| // chmod +x database_sample.scala | |
| // export CONSCRIPT_OPTS="-XX:MaxPermSize=512M -Dfile.encoding=UTF-8" | |
| // ./database_sample.scala | |
| /*** | |
| scalaVersion := "2.11.7" |
| import java.util.concurrent._ | |
| object Par { | |
| type Par[A] = ExecutorService => Future[A] | |
| def unit[A](a: A): Par[A] = (es: ExecutorService) => UnitFuture(a) | |
| def lazyUnit[A](a: => A): Par[A] = fork(unit(a)) | |
| private case class UnitFuture[A](get: A) extends Future[A] { |