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
| console.log("snippets for the Athene agile course") |
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
| /* | |
| monadjs | |
| Monad Library for JavaScript | |
| Copyright (c) 2013 Santosh Rajan | |
| License - MIT - https://github.com/santoshrajan/monadjs/blob/master/LICENSE | |
| */ | |
| exports.version = "0.1.0" | |
| // Curry function |
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
| TrayIcon ",101" | |
| Menu uct40 { | |
| "PuTTY" execd "c:\users\perried1\bin\putty\putty -load microct-40" | |
| "uCT Evaluations" execd "C:\Users\perried1\bin\putty\plink -ssh -2 -X [email protected] uct_evaluation" | |
| "uCT 3D" execd "C:\Users\perried1\bin\putty\plink -ssh -2 -X [email protected] uct_3d" | |
| "uCT Backup" execd "C:\Users\perried1\bin\putty\plink -ssh -2 -X [email protected] uct_backup" | |
| } | |
| Menu uct50 { |
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 curry = function(fn) { | |
| var result = function() { | |
| var newArgs = Array.prototype.slice.call(arguments, 0); | |
| if (newArgs.length >= fn.length) { | |
| var finalResult = fn.apply(null, newArgs); | |
| return finalResult; | |
| } else { | |
| return Function.prototype.bind.apply(result, [null].concat(newArgs)); | |
| } |
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 countIf(listOfNames, condition) { | |
| var i, name, count = 0; | |
| for(i = 0; i < listOfNames.length; i++) { | |
| name = listOfNames[i]; | |
| if (condition(name)) { | |
| count = count + 1; | |
| } | |
| } | |
| return count; |
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 calc = (function () { | |
| function parse (str) { | |
| return str.split(";") | |
| } | |
| function replace (str) { | |
| return str.replace(";", ",") | |
| } |
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 calc = (function () { | |
| function parse (str) { | |
| return str.split(",") | |
| } | |
| function replace (str) { | |
| return str.replace(";", ",") | |
| } |
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"> | |
| <title>Mocha Tests</title> | |
| <link rel="stylesheet" href="/vendor/mocha.css" /> | |
| </head> | |
| <body> | |
| <div id="mocha"></div> |
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 express = require("express") | |
| var http = require("http") | |
| var path = require("path") | |
| var app = express() | |
| app.configure(function () { | |
| app.use(express.favicon()) | |
| app.use(express.logger("dev")) | |
| app.use(express.bodyParser()) |
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
| { | |
| "name": "app", | |
| "version": "0.0.1", | |
| "private": true, | |
| "dependencies": { | |
| "express": "" | |
| }, | |
| "devDependencies": { | |
| "mocha": "", | |
| "chai": "" |