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
# result é uma variável | |
# declarada implicitamente | |
proc dizOla(nome: string): string = | |
result = "Olá, " | |
if nome == "": | |
result = "Qual é seu nome mesmo?" | |
else: | |
result &= nome |
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
## Program name........: wttrin_weather_lib2.nim | |
## Program description.: Testing Nim library that fetches weather from wttr.in | |
## Author..............: Sergio Lima | |
## Created on..........: Jul, 10 2022 | |
## Install lib | |
## $ nimble install wttrin -y | |
## How to compile | |
## $ nim c -d:ssl wttrin_weather_lib2.nim | |
## How to run | |
## $ ./wttrin_weather_lib2 |
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
## Program name........: wttrin_weather_lib.nim | |
## Program description.: Testing Nim library that fetches weather from wttr.in | |
## Author..............: Sergio Lima | |
## Created on..........: Jul, 9 2022 | |
## Install lib | |
## $ nimble install wttrin -y | |
## How to compile | |
## $ nim c -d:ssl wttrin_weather_lib.nim | |
## How to run | |
## $ ./wttrin_weather_lib |
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
### | |
$ ultragen test.ultra | |
*** | |
Current Timezone date is: | |
2022-01-12 | |
*** end |
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
$ cat /u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora | |
# listener.ora Network Configuration File: /u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora | |
# Generated by Oracle configuration tools. | |
LISTENER = | |
(DESCRIPTION_LIST = | |
(DESCRIPTION = | |
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) | |
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) | |
(ADDRESS = (PROTOCOL = tcps)(HOST = ol7-dba.localdomain)(PORT = 5500)) |
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
$ cat /u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora | |
# listener.ora Network Configuration File: /u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora | |
# Generated by Oracle configuration tools. | |
LISTENER = | |
(DESCRIPTION_LIST = | |
(DESCRIPTION = | |
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) | |
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) | |
(ADDRESS = (PROTOCOL = tcps)(HOST = ol7-dba.localdomain)(PORT = 5500)) |
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
$ ps -ef | grep smon | |
oracle 3351 1 0 10:10 ? 00:00:00 ora_smon_orcl | |
oracle 6336 1855 0 11:03 pts/0 00:00:00 grep --color=auto smon | |
[oracle@ol7-dba ~]$ lsnrctl status | |
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 19-MAY-2020 11:08:15 | |
Copyright (c) 1991, 2019, Oracle. All rights reserved. |
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
[oracle@ol7-dba oracle]$ ps -ef | grep smon | |
oracle 3457 2214 0 12:10 pts/0 00:00:00 grep --color=auto smon | |
[oracle@ol7-dba oracle]$ lsnrctl status | |
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 18-MAY-2020 12:10:38 | |
Copyright (c) 1991, 2019, Oracle. All rights reserved. | |
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))) | |
STATUS of the LISTENER |
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 Emailservices | |
module Adapters | |
class Mailchimp | |
def self.subscribe! config={}, parameters={} | |
new(config, parameters).subscribe! | |
end | |
def initialize config={}, parameters={} | |
@config = config |
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
def flag_name¬ | |
flag || 'default' | |
end | |
def flag_name | |
flag || 'default' | |
end |
NewerOlder