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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TestConsole | |
{ | |
public interface IProcessor | |
{ |
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
// Usage | |
// {{myIntValue | number:0 | replacestringfilter:',':'.'}} | |
// {{myStringValue | replacestringfilter:'ABC':'DEF'}} | |
myApp.filter('replacestringfilter', function () { | |
return function (item, oldstring, newstring) { | |
if (!item) | |
return item; | |
var sItem = item.toString(); | |
var find = oldstring; | |
var re = new RegExp(find, 'g'); |
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 printJavascriptArrayOfPropsAsAngularScopeAssignment = function (longArrayOfProperties, useOneTimeBindingSyntax) { | |
/// <summary>Takes a long list of properties, strips the names, | |
/// creates angular.js assignments/ bindings and outputs to console for copy+paste | |
/// | |
/// - If you have an array of Json data, use angular.fromJson(jsonString) or JSON.parse(jsonString) first to get it in the right format | |
/// View the output in your javascript console (e.g. in Chrome) | |
/// Example Input -> var myProps = { myProperty1: 3, MyProperty2: 'Dave' }; | |
/// Example Output | |
/// $scope.myProperty = inputData.myProperty; | |
/// $scope.myProperty2 = inputData.MyProperty2; |
NewerOlder