-
index is the 0 based index value of the button pressed
-
label is the text label of the button pressed
function showConfirm() { var confirmDelegate = navigator.notification.confirm( 'You are the winner!', // message
'Game Over', // title
| const nock = require('nock') | |
| // Prevent requests being made to any outside services: | |
| nock.disableNetConnect() | |
| // Allow requests through to localhost, which is used by SuperTest to send | |
| // requests during integration tests: | |
| const localhost = '127.0.0.1' | |
| nock.enableNetConnect(localhost) |
| # frozen_string_literal: true | |
| # When a feature spec fails it can sometimes be difficult to determine the | |
| # cause, here we hook into RSpec and if a feature spec fails we save the | |
| # following artifacts to disk: | |
| # | |
| # - A copy of the HTML of the currently open page. | |
| # - A screenshot of the currently open page (if the Capybara driver supports | |
| # screenshots). | |
| # - A copy of the segment of log/test.log that was generated for the failing |
| module Rack | |
| # disable CSS3 and jQuery animations in test mode for speed, consistency and avoiding timing issues. | |
| # Usage for Rails: | |
| # in config/environments/test.rb | |
| # config.middleware.use Rack::NoAnimations | |
| class NoAnimations | |
| def initialize(app, options = {}) | |
| @app = app | |
| end |
| #=============================================================================== | |
| # Filename: boost.sh | |
| # Author: Pete Goodliffe | |
| # Copyright: (c) Copyright 2009 Pete Goodliffe | |
| # Licence: Please feel free to use this, with attribution | |
| # Modified version | |
| #=============================================================================== | |
| # | |
| # Builds a Boost framework for iOS, iOS Simulator, and OSX. | |
| # Creates a set of universal libraries that can be used on an iOS and in the |
| /* This is a FluidApp userscript for Google Inbox for Mac. | |
| Includes options for total badge count and unread badge count. | |
| 1) You need the paid version of FluidApp (http://fluidapp.com/) | |
| 2) Point Fluid to https://inbox.google.com (I recommend the icon from here: https://medium.com/@chrismessina/create-an-icon-for-google-inbox-in-your-dock-ed269312e3bc) | |
| 3) Set the user-agent to Chrome | |
| 4) Go to window -> userscript and add click the plus sign under the first table (on the left). Name the item 'Inbox'. | |
| 5) In the second table (on the right) click the plus and type in "*inbox.google.com*". | |
| 6) Paste the contents of this document into the script area below that. | |
| 7) Configure badge count (for total or unread only) in the code below. |
| <?xml version="1.0"?> | |
| <root> | |
| <devicevendordef> | |
| <vendorname>MICROSOFT</vendorname> | |
| <vendorid>0x045e</vendorid> | |
| </devicevendordef> | |
| <deviceproductdef> | |
| <productname>SCULPT_ERGONOMIC_DESKTOP</productname> | |
| <productid>0x07a5</productid> |
| # Update local remote refs, and delete all local remote refs that have been | |
| # deleted on Github: | |
| $ git fetch -p | |
| # Switch to a primary branch (i.e. 'api' or 'master'), you will use this branch | |
| # to find all merged branches that you will delete: | |
| $ git checkout api |
| ---- Handy menu_click code from http://hints.macworld.com/article.php?story=20060921045743404: | |
| -- `menu_click`, by Jacob Rus, September 2006 | |
| -- | |
| -- Accepts a list of form: `{"Finder", "View", "Arrange By", "Date"}` | |
| -- Execute the specified menu item. In this case, assuming the Finder | |
| -- is the active application, arranging the frontmost folder by date. | |
| on menu_click(mList) | |
| local appName, topMenu, r |
This document uses a project named "Example" that has an existing target "ExampleApp". This is the target you will host you tests in.
$ mkdir Externals
$ git submodule add git://github.com/pivotal/cedar.git Externals/Cedar
$ cd Externals/Cedar/; ./installCodeSnippetsAndTemplates; cd -;