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
| module App { | |
| "use strict"; | |
| export class AppConfig { | |
| static $inject = ["$stateProvider", "$urlRouterProvider", "localStorageServiceProvider"]; | |
| constructor($stateProvider: angular.ui.IStateProvider, | |
| $urlRouterProvider: angular.ui.IUrlRouterProvider, | |
| localStorageProvider: angular.local.storage.ILocalStorageServiceProvider |
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
| private static void GenerateBarcode(string barCode, string text, string filename) | |
| { | |
| BarCodeBuilder builder = new BarCodeBuilder(barCode); | |
| Caption captionBelow = new Caption(text) | |
| { | |
| TextAlign = StringAlignment.Center, | |
| Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold) | |
| }; | |
| builder.CaptionBelow = captionBelow; | |
| builder.Save(filename, ImageFormat.Png); |
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
| 2017-08-21T07:35:21.7899827Z ##[debug]Evaluating condition for step: 'NuGet restore Exception/Exception.sln' | |
| 2017-08-21T07:35:21.7899827Z ##[debug]Evaluating: succeeded() | |
| 2017-08-21T07:35:21.7909820Z ##[debug]Evaluating succeeded: | |
| 2017-08-21T07:35:21.7909820Z ##[debug]=> (Boolean) True | |
| 2017-08-21T07:35:21.7909820Z ##[debug]Expanded: True | |
| 2017-08-21T07:35:21.7909820Z ##[debug]Result: True | |
| 2017-08-21T07:35:21.7909820Z ##[section]Starting: NuGet restore Exception/Exception.sln | |
| 2017-08-21T07:35:21.7909820Z ============================================================================== | |
| 2017-08-21T07:35:21.7909820Z Task : NuGet Installer | |
| 2017-08-21T07:35:21.7909820Z Description : Installs or restores missing NuGet packages |
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
| <button type="button" class="btn btn-inline" ng-click="vm.back()"><</button> | |
| <button type="button" class="btn btn-inline" ng-click="vm.print()">Print</button> | |
| <button type="button" class="btn btn-inline" ng-click="vm.downloadPdf('receipt')">Pdf</button> | |
| <div class="container-fluid" id="receipt" style="background: white"> | |
| <style type="text/css"> | |
| .invoice-title h2, .invoice-title h3 { | |
| display: inline-block; | |
| } | |
| .table > tbody > tr > .no-line { |
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
| public class BaseReportService | |
| { | |
| protected T CreateDefault<T>(Type t, string shopId) where T : BaseReport | |
| { | |
| var report = Activator.CreateInstance(t) as BaseReport; | |
| report.Id = Guid.NewGuid().ToString(); | |
| report.Created = DateTime.Now; | |
| report.Modified = DateTime.Now; | |
| report.CreatedBy = "System"; | |
| report.ModifiedBy = "System"; |
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
| private static IEnumerable<string> GetTextFromPDF(string invoicePdf) | |
| { | |
| var fromPdf = new List<string>(); | |
| using (PdfReader reader = new PdfReader(invoicePdf)) | |
| { | |
| for (int i = 1; i <= reader.NumberOfPages; i++) | |
| { | |
| string value = PdfTextExtractor.GetTextFromPage(reader, i); | |
| List<string> list = value.Split(new[] { "\n" }, StringSplitOptions.None).ToList(); | |
| list.RemoveAll(Match); |
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
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| using Microsoft.Azure.WebJobs; | |
| using Microsoft.Azure.WebJobs.Extensions.Http; | |
| using Microsoft.Azure.WebJobs.Host; | |
| namespace FunctionApp1 | |
| { |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Data.Entity; | |
| using System.Linq; | |
| using System.Linq.Dynamic; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Transactions; | |
| using Core = BizBookCoreDbModelLibrary; | |
| using BizBookDbModelLibrary; |
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
| const express = require('express') | |
| var numCPUs = require('os').cpus().length; | |
| const cluster = require('cluster'); | |
| const app = express() | |
| app.get('/', (req, res) => { | |
| res.send('Hello World!') | |
| }); |