casperjs test .\ACA-test.js --env=qa --user=siteadmin
PS G:\Casperjs> Test file: .\ACA-test.js
#
siteadmin should see specific links in the "Training" admin portlet
Logging in as user: siteadmin
-----> Logged in, loaded Training Home
-----> Loaded Administration Console
PASS User has link to manage external learning
PASS User has link to manage external learning types
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
| function OnceNamedOne(first, last) { | |
| var _firstName = first | |
| , _lastName = last; | |
| Object.defineProperty(this, "firstName", { | |
| get: function() { | |
| return _firstName; | |
| }, | |
| set: function(value) { | |
| _firstName = value; |
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
| var mongoose = require('mongoose') | |
| , kserverCallSchema | |
| , KServerCall; | |
| kserverCallSchema = new mongoose.Schema({ | |
| baseType: { type: String, required: true}, | |
| classLibrary: { type: String, required: true}, | |
| classObject: { type: String, required: true}, | |
| methodName: { type: String, required: true}, |
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 java.util.*; | |
| public class ExpressionParser { | |
| private final static List<String> numList = Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9", "0"); | |
| private final static List<String> opList = Arrays.asList("*", "/", "+", "-", "^"); | |
| public static void main(String[] args) { | |
| evalExpression("((1024^2)*5)"); | |
| } | |
##Band Name Generator You need a unique, eye-catching band name to stand apart from the masses. We got that band name for you player - refresh until you find the perfect name that says "Yeah, whatever, we're a band".
##Why I read an AMA on reddit by pornhub recently where they linked live porn searches. A subsequent comment was how it would make good band names, and I thought it was funny.
##How Look at the code to see how simple it is (one liner) - makes a request to a live stream of porn searches and randomly picks between the seed of 200 entries returned
I hereby claim:
- I am Robert-Wett on github.
- I am robwett (https://keybase.io/robwett) on keybase.
- I have a public key whose fingerprint is E61C 230E 91C6 8E65 A45F AEA3 FCCA 96D0 223B 08B0
To claim this, I am signing this object:
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> | |
| <title></title> | |
| <script src="http://d3js.org/d3.v3.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script> | |
| </head> | |
| <body> |
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
| ace.require("ace/lib/net").loadScript("https://rawgithub.com/ajaxorg/ace-builds/master/src-min-noconflict/keybinding-vim.js", | |
| function() { | |
| e = document.querySelector(".ace_editor").env.editor; | |
| e.setKeyboardHandler(ace.require("ace/keyboard/vim").handler); | |
| }) |
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
| # Print an IRC rainbow! | |
| # http://i.imgur.com/GkKfH44.png | |
| # Py 3 | |
| [print("\x03%d%s" % (x, y), end=" ") for x, y in list(zip(range(2, 2+len("rainbow")), "rainbow")] | |
| # Py 2 | |
| for x, y in zip(range(2, 2+len("rainbowzzzz")), "rainbowzzzz"): print ("\x03%d%s" % (x, y)), |
