yeah i saw a library in the nimble directory. oauth. i will check that
out.thanks
I intend finding out if jester has support for google oauth so i can use it for
login on my site.You can suggest other libraries that support this if it does
not.thanks alot.
okay. thanks i will look into that
`type Point* = object x,y,a,b: int func initPoint(x,y,a,b:int):Point = result.x
= x result.y = y result.a = a result.b = b if some(x).isNone and
some(y).isNone: return if not(y^2 == x ^ 3 + a*x+b): raise
newException(ValueError, fmt"({x}, {y}) is not on the curve")`
Run
`import std/[strformat, options] import math type TypeError = object of
ValueError type Point* = object x,y,a,b: int func initPoint(x,y,a,b:int):Point
= result.x = x result.y = y result.a = a result.b = b if some(x).isNone and
some(y).isNone: return if not(y^2 == x ^ 3 + a*x+b): raise
newExcept
`type Point* = object x,y,a,b: int func initPoint(x,y,a,b:int):Point = result.x
= x result.y = y result.a = a result.b = b if some(x).isNone and
some(y).isNone: return if not(y^2 == x ^ 3 + a*x+b): raise
newException(ValueError, fmt"({x}, {y}) is not on the curve") `
Run
thanks to everyone i will go through each one
thanks a lot for the explanation.I am actually trying to translate the jimmy
song programming bitcoin book from python to nim in order to actually learn
nim. I am trying to implement the Point field with infinity.
it seems it will solve the problem.thanks alot.
I am translating a python code to nim and i need to find out the nim equivalent
of None
i know i have to use something like jester, websockets and authentication
library.
Good day everyone. i want to build a chat app with nim, please can you
recommend necessary libraries.
>: Thanks.i wiil surely go through it.
>: Thanks. i will go through it.
thanks to everyone who helped out.I later figure it out.it is working well now.
Thanks. please how do you format code on the forum using rst. a link to learn
it will be appreciated.
# This is a Nim code block
proc greet(name: string): string =
return "Hello, " & name & "!"
echo greet("World")
`# The nim code #? stdtmpl(subsChar = '$', metaChar = '#') #import
"../database" #import user #import xmltree proc `$!`(text: string): string =
escape(text) proc renderMain*(body: string): string = result = "" return $"""
Blog Written in Nim${body}
""" proc renderLogin*(): string = res
I believe Nim is a more powerful and beautiful language than most people see it
to be and also simple.please What is an NIR?
`type Animal = ref object name: string age: int proc speak(self: Animal, msg:
string) = echo self.name & " says:" & msg proc setName(self: Animal,
name:string) = self.name = name proc incAge(self: Animal) = self.age += 1 proc
`$`(x:Animal ): string= $x.name & " is " & $x.age & " years old" var s
thanks for the quick reply, i really do not know how to format the code using
rst. after going through the nim manual i was able to fix it.
`type Animal = ref object name: string age: int proc speak(self: Animal, msg:
string) = echo self.name & " says:" & msg proc setName(self: Animal,
name:string) = self.name = name proc incAge(self: Animal) = self.age += 1 proc
`$`(x, y:Animal ): string= $x.name & " is " & $y.age.int & " old" var
thanks
how do i host a jester app
thanks alot i will do well to share what i finally build with jester here.it
worked well.
i tried to use jester with the latest nim sometimes ago. but it never compiled.
thanks it worked well.i am interested in building something usefull with
nim.please could you make a suggestion. something not too hard and too easy.
i been able to wrap printf, sqrt from math.h. but finding it difficult to wrap
scanf.i will appreciate any help.
jester.
No stack traceback available SIGSEGV: Illegal storage access. (Attempt to read
from nil?) Segmentation fault Error: execution of an external program failed:
'/home/isaiah/NimProjects/blog/src/blog.out' tools.nim(36) doCmd
> Error: Execution failed with exit code 1
i am interested in learning nim but it seems to lack resources and the
libraries have no documentation to use. what are your recommendations to learn
and use it well.thanks
31 matches
Mail list logo