Skip to content

Instantly share code, notes, and snippets.

(let ((data (make-array 20 :initial-element nil)))
(values(read-sequence data (make-string-input-stream "testing things")) data))
;;;;Por que não printa o valor do 11
;; simple closure
(let ((x 10)) #'(lambda ()
(setf x (1+ x))
(format t "~a" x)))
;; in REPL
(funcall #'(lambda ()))
<xsl:template match="mets:xmlData">
<dc:title> <xsl:value-of select="normalize-space(mods:titleInfo)"/> </dc:title>
<bibo:uri rdf:datatype="&xsd;anyURI">
<xsl:value-of select="mods:identifier"/>
</bibo:uri>
<dc:date rdf:datatype="&xsd;dateTime">
<xsl:value-of select="mods:originInfo/mods:dateIssued"/>
</dc:date>
<dc:language> <xsl:value-of select="mods:language/mods:languageTerm"/> </dc:language>
<bibo:abstract>
<dc:source xml:lang="en-US">AgroANALYSIS; Vol. 33, No 09
(2013): setembro - Confinamento: bom resultado para
profissionais; 6-8</dc:source>
<dc:source xml:lang="pt-BR">AgroANALYSIS; Vol. 33, No 09
(2013): setembro - Confinamento: bom resultado para
profissionais; 6-8</dc:source>
<record>
<header>
<identifier>oai:ojs.fgv.br:article/19674</identifier>
<datestamp>2014-04-14T20:16:05Z</datestamp>
<setSpec>agroanalysis:ABA</setSpec>
</header>
<metadata>
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@dcguim
dcguim / blank-node.xml
Created July 16, 2014 19:07
Exemplo de um blank node gerado.
<vivo:hasPublicationVenue>
<rdf:Description rdf:nodeID="idp45808">
<rdf:type rdf:resource="bibo;Journal" />
<dc:language>en-US</dc:language>
<rdfs:label>AgroANALYSIS; Vol. 33, No 09 (2013): setembro -
Confinamento: bom resultado para profissionais;
6-8</rdfs:label>
</rdf:Description> ...

T1 Redes Neurais Daniel Coelho Guimaraes 1021361

GRUPO 1GRUPO 2GRUPO 3
IIIIIIVVVIVIIIIIIIIVVVIVIIIIIIIIVVVIVII
primeira hidden layer011211011211011211
se

T1 Redes Neurais Daniel Coelho Guimaraes 1021361

GRUPO 1GRUPO 2GRUPO 3
IIIIIIVVVIVIIIIIIIIVVVIVIIIIIIIIVVVIVII
primeira hidden layer011211011211011211
se
(defun insert-pair (key value)
(setf (gethash key (gethash current-article *hash*)) value))
(defmethod sax:start-element ((h bibtex-handler) (namespace t) (local-name t) (qname t) (attributes t))
(cond ((equal local-name "ARTIGO-PUBLICADO")
(let ((seq (sax:attribute-value (sax:find-attribute "SEQUENCIA-PRODUCAO" attributes))))
(setf (gethash seq *hash*) (make-hash-table))
(format t "seq:~a:~%" seq)
(setf current-article seq)
(format t "current-article:~a~%" current-article)
(defun write-bib-entry (entry &optional (stream *standard-output*))
(format stream "~&@~A{~A"
(bib-entry-type entry)
(bib-entry-cite-key entry))
(loop for field being each hash-key in (bib-entry-dict entry)
and value being each hash-value in (bib-entry-dict entry)
do (format stream ",~% ~A = {~A}" field value))
(format stream "~%}~%"))