Jump to content

godbout

Member
  • Posts

    332
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by godbout

  1. latest release version available here: https://github.com/godbout/AlfredKat working the same as the previous one, but no PHP interpreter needed. ✌🏼️
  2. fantastic. thanks for the letting me know.
  3. anybody cares giving it a try? https://www.dropbox.com/s/t4blftd0x160546/KAT.alfredworkflow?dl=0 to make sure there's no issue with Developer ID bullshit and some other libraries missing crap. thanks!
  4. there's a bug in Alfred that if sometimes you press command while choosing a result it will copy it to the clipboard. may be worth a try?
  5. sooooo... got something working in Swift. i think i'm gonna rewrite the Alfred Workflow ScriptFilter in Swift and create my new Workflows (and maybe rewrite some old ones) in Swift. way faster, and i don't need users to have PHP on their mac. already having troubles with bundled PHP being an old version, before it disappears completely. ✌🏼️✌🏼️✌🏼️
  6. excellent. time to go back to Alfred Kat now. so did you guys know that if you use the tag #xxx you can filter by pron?
  7. here you go: https://github.com/godbout/binance-dash-docset basic TOC and formatting, but usable. you can download the tgz. if you want to modify yourself, you can fork and play! good luck.
  8. well, you could edit the SQLite db that stores the entries, yes. and you could edit each HTML file to make them look like the way you want. all explained on the Dash site: https://kapeli.com/docsets#dashDocset but that's exactly what the dash-docset-builder does for you. basically with the dash-docset-builder you have only one file, where you do two things: 1) define a few constants that tells dash-docset-builder where to download the docs 2) tell the dash-docset-builder from what it should generate the Dash entries and how it should format the HTML. by default the dash-docset-builder will check your constants and will check if the docs have a sitemap. if yes, it'll download the doc following the sitemap. if no, it'll download from the URL you gave as a constant. if you need to fine-tune the download yourself, you can override the `grab` method and use whatever way you're comfortable with to download the docs exactly the way you need. then the dash-docset-builder will go through all the HTML files twice, calling two methods from your one file. one method to generate the Dash entries, one to format the HTML files. why twice rather than once? because you're not going to generate the Docset many times so the extra time is not an issue, but separating the two processes is much better for maintaining the code. the parts about generating the entries, and formatting the HTML, i provide a way to easily crawl the DOM, but you could use whatever you want. all is in the README (but it seems, not clear enough :D): https://github.com/godbout/dash-docset-builder
  9. well, it's not complicated, but if you don't know the PHP environment, yeah forget it. from the package manager to Collections, it's gonna be a pain to explain, sorry. i can do it quick, but without automated tests etc and no fine-tuning, so i'll not release it on Dash. will send you a link. you need only EN i guess, no CN? what about the 4 different pages on the top. you need only the USD-M Future stuff or all of them?
  10. for most of the smart docs, the builder runs smoothly. by smart docs i mean a bunch of static files, some css and js that you can grab from wget/curl. there's a few shit docs that generate some js/css dynamically. if you download the docs through wget, then you end up with a lot of things missing. this is the case with your Pine Script stuff. i get maybe twenty asset files, but there's another 200 generated by a runtime.js. i had the case with one Docset (Tiki) and luckily they had a header that i could pass to force their js to render (see here: https://github.com/godbout/tiki-dash-docset/blob/136b648c82fe0fcfcf45d9e3073b51be79eacb4a/app/Docsets/Tiki.php#L68). but that required working with them, going through the source, etc... i did it coz i'm working half a day a week at a client and need it, but it was a mega pain. another way could be to use a headless browser, but still, i stay away from those docs. coz sometimes you even need to change their js once it's downloaded. total shit. so yeah sorry, that Pine Script is definitely not gonna work out. the Binance one, it took me less than ONE MINUTE to get it downloaded and packaged 🤣️ but straight, not one piece of fine tuning. i can do that later if that's kinda of what you want. have a look and let me know: https://www.dropbox.com/s/vtr58pbi69c9sey/binance.tgz?dl=0
  11. ok so this Docset is shit, sorry 😂️ it's even more shit than the Stripe one. it's not a doc page itself, lots of links pointing basically to the whole site. tried to strike them one by one, but still missing a bunch of unrelated JS but that still breaks the reference. and the reference itself seems to be using a pile of JS, like Stripe. a mega nightmare. i'm trying to download the WHOLE site to see if that kinda works but it's even mega slow. sorry, doesn't seem to be worth it. i'm not even gonna maintain it at the end. not using it. this other page is much better, more like a doc one: https://www.tradingview.com/pine-script-docs/en/v4/index.html would that be useful to you or not?
  12. cool. i'll have a deeper look when i update one of my workflow. thanks!
  13. oh. had never heard about this. cool. i'll have a look. thanks! (although i'll have to see if it includes the possibility to give a change log. easier to post the new stuff on GitHub/here and get people to read them there/here.)
  14. can you multiquote on this forum without having to copy paste stuff?
  15. LOL alright. i'll have a look this week.
  16. i'm lazy coz i just build exactly for my needs 😃️ you lucky. i built the dash docset builder for people like you! can build your own docset 😂️ (your pine thing is just one page?)
  17. 5.0.0 release. Apple Music in Macau lost some albums so had to use KAT. but ended up with lots of porn links. so added #tags. links in first page. P.S.: tags only work at the end coz i'm lazy. P.S.2.: wrong tags will return nothing. coz i'm lazy.
  18. hi. can you report on the repository here: https://github.com/godbout/alfred-music-volume/issues thanks. i'll try to have a look. but no AirPlay 2 devices here. but basically the Workflow just tells Music or iTunes to change its master volume. it should change all the volumes for all the devices ticked under AirPlay icon. can you check that all that setup seems correct?
  19. hey thanks! only scratching the surface for now, i'm going through 100 days of Swift (https://www.hackingwithswift.com/100) at slow pace. not in a rush, and need to get used to the syntax. keeping your links for dessert!
  20. alright, thanks. i like learning new things but i also only learn things i'm gonna use for use. i'm thinking about building something for macOS, so i'm wondering. seems Swift should be the way to go. i played a bit with Objective-C a few years back but definitely not enough knowledge, so it would make sense to go directly for Swift i guess. then i thought maybe i can also compile stuff for Alfred? anyways, just thinking out loud. thanks again.
  21. @deanishe any experience with Swift? having a look around and types available seem very similar to Python.
  22. ahhhh yes, you're right. i probably check if there's a timer already running each time the script is launched. now it's coming back to me. the first version of the Workflow had a lame cache system that would avoid this, but that brought other problems. i decided to go for less issues, but also less optimized, matching selfishly the way i use the Workflow (restart past timers). makes me thing i should add comments in my code, not about what the code does, but about why it does it. thanks! although, the Alfred Music Volume one should be another totally different issue. maybe as you said, time it takes to grab the volume from Music. haven't had time to dig into it, but curious. thanks again! lots of new stuff in here for me.
×
×
  • Create New...