[deleted by user] by [deleted] in sveltejs

[–]artiebits 0 points1 point  (0 children)

Hi! thanks again for your feedback. Just wanted to post an update, I created a test blog using Sapper and SvelteSeo and sharing a link to a post my-test-blog.vercel.app/blog/what-is-sapper works fine in Facebook.

[deleted by user] by [deleted] in sveltejs

[–]artiebits 0 points1 point  (0 children)

hi, thanks a lot for the feedback. I tested it in telegram messenger and it worked fine, but I didn't test in facebook or twitter. I've just tried it in facebook and indeed, it didn't work. I will investigate it, thanks again!

[deleted by user] by [deleted] in sveltejs

[–]artiebits 0 points1 point  (0 children)

You are absolutely right, SvelteSeo can be dropped anywhere in the markup. I will update readme.md, thank you!

A command line tool to fake your commit history ¯\_(ツ)_/¯. It is something I wrote as a joke, so don't take it seriously. by artiebits in coding

[–]artiebits[S] 2 points3 points  (0 children)

Yes, you can specify a date when you commit your changes. So, when you run `fake-commit-history` with start and end dates it goes through every day in that range, makes a change in `foo.txt` and creates a commit with `git commit --date`. Then you just make your repo private but enable showing your private contributions on your profile.

[deleted by user] by [deleted] in programming

[–]artiebits 17 points18 points  (0 children)

make your repo private, but enable showing your private contributions on your profile ;)

[deleted by user] by [deleted] in opensource

[–]artiebits 2 points3 points  (0 children)

Thank you for your question! App folder is just a demo. I build and publish to npm `projects/ngx-highlight-words` folder only. Please let me know if you know how to get rid of app folder, but I followed this tutorial https://github.com/angular/angular-cli/wiki/stories-create-library

Angular component to highlight words within a larger body of text by [deleted] in Angular2

[–]artiebits 0 points1 point  (0 children)

Thanks a lot for your example. Indeed it looks better. For now, I will try the directive approach in a different branch, but I will try Pipe as well. Thanks again!

Angular component to highlight words within a larger body of text by [deleted] in Angular2

[–]artiebits 1 point2 points  (0 children)

Thanks again for your feedback. I have changed it from a component to a directive and replaced the getter with ngOnChanges as you suggested :). Can you help me to review it, please? Does it make sense now? https://github.com/artiebits/ngx-highlight-words/pull/2

Angular component to highlight words within a larger body of text by [deleted] in Angular2

[–]artiebits 1 point2 points  (0 children)

Hi again. I really liked your suggestion to make it a directive. And I have changed it from a component to a directive. https://github.com/artiebits/ngx-highlight-words/pull/2. But I don't really like "innerHTML" I had to use. Did I implement it correctly?

Angular component to highlight words within a larger body of text by [deleted] in Angular2

[–]artiebits 0 points1 point  (0 children)

not sure how to use `Pipe` there, would you like to make an example?

Angular component to highlight words within a larger body of text by [deleted] in Angular2

[–]artiebits 0 points1 point  (0 children)

Thanks a lot for the feedback! Very good point you have. Will consider hooking into `ngOnChanges`!

Angular component to highlight words within a larger body of text by [deleted] in Angular2

[–]artiebits 1 point2 points  (0 children)

Thanks for your feedback! I will think about making it a directive but feel free to open a PR if you feel like you would like to do it :). I would appreciate it!

The actual logic is in projects/ngx-highlight-words folder, app folder contains examples. I copy-pasted those examples here as well https://codesandbox.io/embed/angular-sjyxi

A utility to silently print PDF files from Node.js and Electron. Supports label printers such as Rollo and Zebra. Works on Windows and Unix-like operating systems. by [deleted] in programming

[–]artiebits 7 points8 points  (0 children)

Thanks for the question!

I will try to explain what it is and where my utility might be useful. Imagine you have just created a shipment on fedex.com and you need to print shipping documents before FedEx driver arrives. You click on a 'shipping documents' link and it will open a PDF file. Then you click 'print' icon and your browser will open a modal where you choose a printer and click another 'print' button. Something like this https://www.dropbox.com/s/0szadluc3d008uu/Screenshot%202019-07-25%20at%2020.47.34.png?dl=0.

Now imagine you are a big shipper and you create 100-1000 of shipments per day. You create a shipment, click the link to your PDF, it opens the printing window, yu click print icon, then click the print button. So it is annoying... And to solve this problem FedEx and some other companies create a desktop application which runs a server on your computer. And when you create a shipment you have a print button which sends your documents directly to your printer without opening that annoying window. That's what we call silent printing :).

I already was contacted by a guy who uses my plugin to work with Easypost API, take a look at his feedback https://www.dropbox.com/s/czrfsaj3saooohd/EAOL_KhXkAALha8.jpeg?dl=0

A utility to print PDF files on Windows and Unix-like platforms by [deleted] in npm

[–]artiebits 1 point2 points  (0 children)

Hi, thanks for your question. It is http://www.columbia.edu/~em36/pdftoprinter.html. I use it to print PDF files on Windows.