Displaying 4 results from an estimated 4 matches for "somecode".
Did you mean:
some_code
2010 Dec 11
5
(S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?
...e a document presenting some source code with interspersed
comments in the source (see Knuth's books rendering TeX and metafont
sources to see what I mean).
I seemed to remember that a code chunk could be defined piecewise, like in
Comments...
<<Chunk1, eval=FALSE, echo=TRUE>>=
SomeCode
@
Some other comments...
<<Chunk2, eval=FALSE, echo=TRUE>>=
MoreCode
@
And finally,
<<Chunk3, eval=TRUE, echo=TRUE>>=
<<Chunk1>>
<<Chunk2>>
EndOfTheCode
@
That works ... as long as SomeCode, MoreCode and EndOfTheCode are self-
standing pieces of...
2005 Sep 22
5
Adding Categories to the Depot example in the Agile Rails book
Hi ya, I want to add categories to the depot example in the Agile rails
book.
These are my thoughts:
Create a new table called categories with id, title, description, and
image fields.
Add a new field to the products table called category_id
Create a model called Category with "has_many :products"
Now I should have a one to many link between the products and categories
tables?
Now
2011 Jan 23
2
RedCloth 4.1.1 vs. 4.2.3 - weird behaviour with notextile
...ombine RedCloth and Coderay and on doing
this, I might have found an issue with RedCloth.
I pushed a demo to Github:
https://github.com/markusproske/redcloth_coderay_demo
The index (http://localhost:3000/) demonstrates the issue.
In brief:
A page consist of textile. The textile contains @@@ruby somecode @@@
The textile is first feed into Coderay via a helper method and then into
RedCloth. To prevent RedCloth from applying markup to the code already
rendered by Coderay it is wrapped with <notextile></notextile> which should
prevent RedCloth from touching this sections.
This works wit...
2013 Jan 14
7
generate function not working within conditional?
Hi,
could this be a bug?
I have this code:
$mypath = get_module_path(''ssh'')
if generate("${mypath}/scripts/generate_host_keys.sh",
"${keys_dir}/${::fqdn}/ssh") {
notify {''something'':}
include ssh::server::keys
}
generate_host_keys.sh script generates ssh host keys for ssh daemons,
and stores them in private section.
Those files