This is a list of stuff that the average software developer does from week to week
- Code design
- Refactoring
- Algorithms
- Profiling
- Code reviews
- Building frameworks
| /* | |
| get SSH.NET (BSD License: http://sshnet.codeplex.com/license) | |
| with NuGet: | |
| >Install-Package SSH.NET -Version 2013.4.7 | |
| or just get the dll from here: http://j.mp/sshNet | |
| */ | |
| using System; |
| // Requires the Toast plugin: https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin | |
| // And Ionic Framework: http://ionicframework.com | |
| // ngCordova is used here, but easily removed: http://ngcordova.com/ | |
| // When running in Cordova, show the native toast. Outside of Cordova, show an Ionic Popup for the same period of time. | |
| // Uses the API for the Toast plugin - message, duration, position. | |
| // Differences are that: Ionic Popup ignores position, and doesn't allow doing anything while it shows. | |
| .factory('Toast', function($rootScope, $timeout, $ionicPopup, $cordovaToast) { | |
| return { | |
| show: function (message, duration, position) { |
| var ngAppElem = angular.element(document.querySelector('[ng-app]') || document); | |
| window.injector = ngAppElem.injector(); | |
| window.inject = injector.invoke; | |
| window.$rootScope = ngAppElem.scope(); | |
| Object.defineProperty(window, '$scope', { | |
| get: function () { | |
| var elem = angular.element(__commandLineAPI.$0); | |
| return elem.isolateScope() || elem.scope(); |
| """ | |
| The portfolio rebalancing bot will buy and sell to maintain a | |
| constant asset allocation ratio of exactly 50/50 = fiat/BTC | |
| """ | |
| import strategy | |
| DISTANCE = 7 # percent price distance of next rebalancing orders | |
| FIAT_COLD = 0 # Amount of Fiat stored at home but included in calculations | |
| COIN_COLD = 0 # Amount of Coin stored at home but included in calculations |
| """ | |
| a simple stop loss bot. | |
| adjust STOP_PRICE and STOP_VOLUME to your needs. | |
| The file can be reloaded after editing without | |
| restarting goxtool by simply pressing the l key. | |
| """ | |
| import strategy | |
| import goxapi | |
| # pylint: disable=C0301 |
| """ | |
| The portfolio rebalancing bot will buy and sell to maintain a | |
| constant asset allocation ratio of exactly 50/50 = fiat/BTC | |
| """ | |
| import strategy | |
| DISTANCE = 7 # percent price distance of next rebalancing orders | |
| FIAT_COLD = 0 # Amount of Fiat stored at home but included in calculations | |
| COIN_COLD = 0 # Amount of Coin stored at home but included in calculations |
| """ | |
| The portfolio rebalancing bot will buy and sell to maintain a | |
| constant asset allocation ratio of exactly 50/50 = fiat/BTC | |
| """ | |
| # line too long - pylint: disable=C0301 | |
| # too many local variables - pylint: disable=R0914 | |
| import glob | |
| import strategy |