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
'use strict'; | |
describe('Main Application Module', function() { | |
var httpProvider, $rootScope; | |
beforeEach(module('sawebApp', function($httpProvider) { | |
httpProvider = $httpProvider; | |
})); | |
beforeEach(inject(function(_$rootScope_) { | |
$rootScope = _$rootScope_; |
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
angular.module('pslm') | |
.directive('pdkNextInputOnEnter', function() { | |
var includeTags = ['INPUT', 'SELECT']; | |
function link(scope, element, attrs) { | |
element.on('keydown', function (e) { | |
// Go to next form element on enter and only for included tags | |
if (e.keyCode == 13 && includeTags.indexOf(e.target.tagName) != -1) { | |
// Find all form elements that can receive focus | |
var focusable = element[0].querySelectorAll('input,select,button,textarea'); |
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
<div class="navbar navbar-default navbar-static-top" ng-controller="NavbarCtrl"> | |
<div class="container-fluid"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" ng-click="isCollapsed = !isCollapsed"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<img src="images/pdk-logo-med.png" class="navbar-brand" /> |
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
var argv = require("optimist").argv; | |
console.log(argv); | |
var net = require("net"); | |
function connect() { | |
var relaySocket = new net.Socket(); | |
var onceOnly = true; | |
relaySocket.connect(argv.rp, argv.rh, function() { |
NewerOlder