NImScript task and using a shebang line

2022-02-09 Thread PMunch
Good idea, but no there is currently no way of doing this I believe. PRs welcome. @pietroppeter, @hyl is correct here, the benefit of `nimcr` is that it caches the compiled file so that it doesn't have to recompile if the file hasn't changed. It also consumes all the output of Nim when compilin

webscrape

2022-02-09 Thread Araq
Like so: import os, streams, parsexml, strutils if paramCount() < 1: quit("Usage: htmlrefs filename[.html]") var filename = addFileExt(paramStr(1), "html") var s = newFileStream(filename, fmRead) if s == nil: quit("cannot open the file " & filename)

NImScript task and using a shebang line

2022-02-09 Thread hyl
@pietroppeter I believe `nim r` would compile before every run, while nimcr checks whether the source file has changed since the last compilation, and if not, then it just runs the previously compiled binary. @jyapayne Thanks! I guess that would work. I'd need to explicitly unignore any other h

BUY 100% UNDETECTABLE COUNTERFEIT MONEY £,$,€ WHATSAPP ME AT +1(720)541-5025

2022-02-09 Thread nickdominic
CONTACT US FIRST BEFORE PLACING AN ORDER AT WICKR ID BELOW NB:: WICKR ME DIRECTLY AT Love4Paris We offer you the best with fast delivery, secured shipment, stealth packaging, Overnight shipping, Double vacuum stealing, Provide tracking number, make sure buyers are satisfied. For details, in

Methamphetamine, Cocaine, Heroin, Pseudoephedrine hcl, MDMA for sale

2022-02-09 Thread nickdominic
Methamphetamine, Cocaine, Heroin, Pseudoephedrine hcl, MDMA for sale WIRCKR AT.. nickwinter WhatsApp .. +1(720)541-5025

100% UNDETECTABLE COUNTERFEIT MONEY AND SSD SOLUTION WHATSAPP:.+1 (720)541-5025

2022-02-09 Thread nickdominic
CONTACT US FIRST BEFORE PLACING AN ORDER AT WICKR ID BELOW NB:: WICKR ME DIRECTLY AT Love4Paris We offer you the best with fast delivery, secured shipment, stealth packaging, Overnight shipping, Double vacuum stealing, Provide tracking number, make sure buyers are satisfied. For details, in

BUY SSD SOLUTION,UNDETECTED $,£,€ NOTES WHATSAP AT +1(720)541-5025

2022-02-09 Thread nickdominic
CONTACT US FIRST BEFORE PLACING AN ORDER AT WICKR ID BELOW NB:: WICKR ME DIRECTLY AT Love4Paris We offer you the best with fast delivery, secured shipment, stealth packaging, Overnight shipping, Double vacuum stealing, Provide tracking number, make sure buyers are satisfied. For details, in

ECSTASY PILLS/ A-PVP, MDPV(WICKR ID :::: nickwinter)LIQUID, POWDER PILLS,BENZ

2022-02-09 Thread nickdominic
ECSTASY PILLS/ A-PVP, MDPV((WICKR ID : nickwinter))LIQUID, POWDER PILLS,BENZOS,CRYSTALMETHS, MDMA/MDA,ADDERALL,AMPHETAMINE,METHADONE,OXYCODONE/HYDROCODONE,HEROINE BUY Research Chemical NEMBUTAL XANAX Best pharma grade Xanax Alprazolam bars at the best prices. We offer grade A service and qu

BUY SSD SOLUTION,UNDETECTED $,£,€ NOTES WHATSAP AT +1(720)541-5025

2022-02-09 Thread nickdominic
> CONTACT US FIRST BEFORE PLACING AN ORDER AT WICKR ID BELOW NB:: WICKR ME DIRECTLY AT Love4Paris We offer you the best with fast delivery, secured shipment, stealth packaging, Overnight shipping, Double vacuum stealing, Provide tracking number, make sure buyers are satisfied. For details,

HIGH QUALITY UNDETECTABLE COUNTERFEIT BANKNOTES FOR SALE ONLINE WHATS-APP ME AT +1 (7

2022-02-09 Thread nickdominic
CONTACT US FIRST BEFORE PLACING AN ORDER AT WICKR ID BELOW NB:: WICKR ME DIRECTLY AT Love4Paris We offer you the best with fast delivery, secured shipment, stealth packaging, Overnight shipping, Double vacuum stealing, Provide tracking number, make sure buyers are satisfied. For details, in

HIGH QUALITY UNDETECTABLE COUNTERFEIT BANKNOTES FOR SALE ONLINE WHATS-APP ME AT +1 (720) 541-5025

2022-02-09 Thread nickdominic
CONTACT US FIRST BEFORE PLACING AN ORDER AT WICKR ID BELOW NB:: WICKR ME DIRECTLY AT Love4Paris We offer you the best with fast delivery, secured shipment, stealth packaging, Overnight shipping, Double vacuum stealing, Provide tracking number, make sure buyers are satisfied. For details, in

NImScript task and using a shebang line

2022-02-09 Thread jyapayne
@hyl I use this in my gitignore for binary files: # Ignore all * # Unignore all with extensions !*.* # Unignore all dirs !*/ # all of your other rules Run

Nim 1.6.4 released

2022-02-09 Thread alexeypetrushin
Steady progress, thanks!

NImScript task and using a shebang line

2022-02-09 Thread pietroppeter
What would be the difference between `nimcr` functionality and using `nim r` in the shebang?

NImScript task and using a shebang line

2022-02-09 Thread hyl
I recommend @PMunch's library, nimcr, too. You can also define tasks in config.nims. You can list them with `nim help` and run them with `nim taskname`. You can have a config.nims in a directory (like the root of a project), or have one for your user at ~/.config/nim/config.nims Or you can add

Any practical configuration for Nim "REPL"

2022-02-09 Thread piyushrungta25
For simple 1-2 liners, I use nim secret with rlwrap to make line editing bearable, something like `rlwrap -S"> " nim secret`. For everything else I just create a new temp file and use a file watcher like [entr](https://eradman.com/entrproject/) to compile and run the file. The compile time is v

webscrape

2022-02-09 Thread tubbs
thanks alot

Nim 1.6.4 released

2022-02-09 Thread Pyautogui
Thank you so much! Those problems in 1.6.2 needed a fix, and here it is!

Nim 1.6.4 released

2022-02-09 Thread miran
Here is our second patch release for the latest stable (1.6) version of Nim — 1.6.4! Read more:

To insert regex pattern into another

2022-02-09 Thread PMunch
Something along the lines of: let wordPattern = r"[a-z]\w*" numPattern = r"\d*" word = re(wordPattern) num = re(numPattern) wordNum= re(r"[a-z]\w*" & numPattern) Run This is because the `re` function returns an already compiled regex, so yo

To insert regex pattern into another

2022-02-09 Thread auxym
I assume you are using the "regex" nimble package? If so you can assemble the pattern string as you wish (concatenation, using the std/strformat package, etc), then use the "re" function to compile it to a regex object (possibly at compile-time if you pass in a static string):

To insert regex pattern into another

2022-02-09 Thread mardiyah
How do we insert regex pattern into another, e.g. by sort of Perl's way: > let word= re"[a-z]w*" let num= re"d*" > > let wordNum= re"[a-z]w*$num" Please guide to the correct simple one

webscrape

2022-02-09 Thread enthus1ast
Interesting, never thought about doing it this way. Do you have some code online that shows this kind of parsing?

Any practical configuration for Nim "REPL"

2022-02-09 Thread pietroppeter

Any practical configuration for Nim "REPL"

2022-02-09 Thread PMunch
Have you had a look at [inim](https://github.com/inim-repl/INim) or `nim secret`? The difference is that inim compiles the code behind the scenes while `nim secret` is using NimScript.

Any practical configuration for Nim "REPL"

2022-02-09 Thread mardiyah
Anyone kind enough to share his/her practical configuration on Nim to imitate/emulate a programming language interpreter REPL (Read Execute Print Loop) environnment, so we'd get benefit out of it ?

NImScript task and using a shebang line

2022-02-09 Thread PMunch
Tasks are really a `nimble` idea more than it is a NimScript idea. If you for some reason just want to run NimScript you can use `nim e myscript.nims`, but if you want a program which compiles behind the scenes and runs like as it was a script you can check out my package which @geotre linked ab

How's regex modifier in nim PCRE ?

2022-02-09 Thread juancarlospaco
I think would be nice to have a macro that allows the syntax `/foobar/i`, that is just sugar for any other Regex engines, like `jsre`, `re`, `nre` and others.

best practice or guidelines on using log in a library?

2022-02-09 Thread PMunch
Got a bit carried away, here you go:

webscrape

2022-02-09 Thread Araq
Fwiw recently I've become a fan of using tokenizers for these sort of things. You don't need to build a tree in memory (which is usually quite slow) which you then recursively traverse it to get "all" the URLs, a list of tokens is good enough and much more flexible. It also handles "wrong HTML"

(Linux) removeDir fails on directory without rw permission

2022-02-09 Thread Araq
How error handling is done in the `os.nim` module is yet-another thing we should consider improving for Nim version 2.