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
cloudpassage-reporter.core> (defn record-my-actions [fn & args] | |
(str (resolve (quote fn)) " args:" args)) | |
#'cloudpassage-reporter.core/record-my-actions | |
cloudpassage-reporter.core> (record-my-actions count 1 2 3) | |
"#'clojure.core/fn args:(1 2 3)” |
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
running install_scripts | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/tmp/pip-build-v7Avhg/cryptography/setup.py", line 318, in <module> | |
**keywords_with_side_effects(sys.argv) | |
File "/usr/lib/pypy/lib-python/2.7/distutils/core.py", line 151, in setup | |
dist.run_commands() | |
File "/usr/lib/pypy/lib-python/2.7/distutils/dist.py", line 953, in run_commands | |
self.run_command(cmd) | |
File "/usr/lib/pypy/lib-python/2.7/distutils/dist.py", line 972, in run_command |
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
[('Date', ['Sat, 30 Nov 2013 03:01:37 GMT']), | |
('Last-Modified', ['Sat, 30 Nov 2013 03:01:37 GMT']), | |
('Accept-Ranges', ['bytes']), | |
('Content-Type', ['text/plain']), | |
('Server', ['TwistedWeb/13.1.0'])] |
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
.directive('sides', function () { | |
return { | |
// this seems to solve the problem - don't use link, use a built in controller. | |
controller: function ($scope) {//, elem, attrs) { | |
$scope.sides = [ | |
{ Name: 'Buy', Id: 1 }, | |
{ Name: 'Sell', Id: -1 } | |
]; | |
$scope.side = $scope.sides[0]; | |
}, |
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
.directive('sides', function() { | |
// not working | |
return { | |
scope: { | |
sides: [ | |
{ Name: 'Buy', Id: 1 }, | |
{ Name: 'Sell', Id: -1 } | |
] | |
}, | |
restrict: 'A', |
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 app = angular.module('App', ['restangular']); | |
app.config(function (RestangularProvider) { | |
RestangularProvider.setBaseUrl('/api'); | |
RestangularProvider.setDefaultHeaders({ | |
"headers": { "common": { "Accept": "application/json" } } | |
}); | |
}); | |
// service that fetches all of the static information that will be needed |
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('App', ['restangular']) | |
.config(function(RestangularProvider) { | |
RestangularProvider.setBaseUrl('/api'); | |
RestangularProvider.setDefaultHeaders({ | |
"headers": { "common": { "Accept": "application/json" } } | |
}); | |
}) | |
.service('StaticsService', ['$scope', 'Restangular', | |
function($scope, Restangular) { | |
$scope.commodities = Restangular.all('commodities').getList(); |
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
{ | |
"checks": { | |
"ping_check": { | |
"handlers": ["default"], | |
"command": "/etc/sensu/plugins/check-http.rb -p http://www.rmienergy.com", | |
"interval": 5, | |
"standalone": true, | |
} | |
} | |
} |
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
using Nancy; | |
using Nancy.Testing; | |
using Xunit; | |
using df_nancy.Modules.api; | |
namespace df_tests.ApiTests | |
{ | |
public class PositionApiTests | |
{ | |
[Fact] |
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
#! /bin/sh | |
# Start from the repository root. | |
cd ./$(git rev-parse --show-cdup) | |
# Delete .pyc files and empty directories. | |
echo "Deleting pyc files." | |
find . -name "*.pyc" -delete | |
find . -type d -empty -delete |