presentation

Separation of presentation and business logic in PHP

痴心易碎 提交于 2019-12-05 09:00:18
I am programming my first real PHP website and am wondering how to make my code more readable to myself. The reference book I am using is PHP and MySQL Web Development 4th ed. The aforementioned book gives three approaches to separating logic and content: include files function or class API template system I haven't chosen any of these yet, as wrapping my brains around these concepts is taking some time. However, my code has become some hybrid of the first two as I am just copy-pasting away here and modifying as I go. On presentation side, all of my pages have these common elements: header,

Software or Tricks For Live Coding Presentation

拟墨画扇 提交于 2019-12-05 04:25:50
I am going to be giving an intro presentation / training class on Ruby on Rails soon. I would like to make it interesting and engaging while still seeming "polished". Since it's a hands-on class most people will be building an app along with me, I want to be able to show my terminal/editor and show the resulting web pages, however I'd like to not be always switching between windows. Keynote used to have the ability to embed webpages into slides, but it was removed, and PowerPoint Mac support seems iffy. There doesn't seem to be any way to embed a terminal window. Does anyone have a

Markdown: Change default font size of code chunks in ioslides

北战南征 提交于 2019-12-04 03:20:36
问题 I am trying to change the font size of a code chunk (more precisely I want to use a smaller font). Take the following basic example: --- title: "Example" output: ioslides_presentation: toc: yes widescreen: yes --- ## Code ```{r, eval=FALSE} print(mtcars) ``` Anyone an idea? Is there a YAML option like code-font-size or something like that? 回答1: You can change the default font size document wide using <style> pre { font-size: 20px; } </style> which you can put right underneath your YAML header

R demos for presentation [closed]

瘦欲@ 提交于 2019-12-03 06:30:35
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I know this is barely programming related, but I'll have to show some intuitive, straightforward and possibly very appealing R

embedding a R animated 3D plot in PowerPoint

十年热恋 提交于 2019-12-03 05:48:29
The rgl R package allows to plot interactive 3D figures and to save these figures in a html document (with the writeWebGL() function). I would like to put such an interactive 3D figure in a PowerPoint presentation. Is it possible ? EDIT: After studying Dieter Menne's answer with the help of Google, my conclusions are the following ones: Currently Luke Tierney's method to convert a 3D graphic to an U3D file and/or an Asymptote file only works for graphics created with the misc3d package, not the rgl package. The export of 3D rgl graphics to VRML/X3D files has been announced as a future plan.

How to add new line in Markdown presentation?

会有一股神秘感。 提交于 2019-12-03 04:05:52
问题 How to add new line in Markdown presentation? I mean, something like \newline in tex . 回答1: See the original markdown specification (bold mine): The implication of the “one or more consecutive lines of text” rule is that Markdown supports “hard-wrapped” text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Type’s “Convert Line Breaks” option) which translate every line break character in a paragraph into a <br /> tag. When you do want to insert

Presentation, Business and Data Layer

好久不见. 提交于 2019-12-02 21:13:22
I just started programming in C# and was reading about dividing your application / website into the three different layers was the best practice but I am having a hard time understanding exactly how. Im working on a pet project to lean more about C# but I dont want to start on any bad habits. Can you look at what I have and see if I am doing this right? Offer some hints suggestions as to how to break everything down to the different layers? Presentation Layer <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML

How to add new line in Markdown presentation?

半世苍凉 提交于 2019-12-02 16:55:31
How to add new line in Markdown presentation? I mean, something like \newline in tex . See the original markdown specification (bold mine): The implication of the “one or more consecutive lines of text” rule is that Markdown supports “hard-wrapped” text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Type’s “Convert Line Breaks” option) which translate every line break character in a paragraph into a <br /> tag. When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return. How to add new

How do I embed source code or HTML in Open Office Org Presentations without using screenshots?

这一生的挚爱 提交于 2019-12-02 16:06:42
I need to write a lot of class courses presentations to my programming class, and I constantly need to show source code (mainly C code). I don't find a easy way to: Copy my source code from my editor (kate) and Paste it formated and with source highlighted to an Open Office Presentation (OOP). What I use to do is a snapshot if the code is small, or to stop presentation and open Kate in the datashow if it is too big. In this other question some suggest to embed HTML code. So I installed QSource-Highlight that easily convert C code to HTML (also gnu source-highlight, code2html, and so on). None

How To Format A Block of Code Within a Presentation? [closed]

£可爱£侵袭症+ 提交于 2019-12-02 13:52:25
I am preparing a presentation using Google Slides, though I can also work on the presentation within Open Office that will include code snippets. Is there any easy way to perform basic syntax highlighting on the code snippets with either Google Docs or Open Office Presenter? Edit: Since I believe that I can find a way to embed HTML, any tools that can perform syntax highlighting on HTML would also be welcome suggestions. An on-line syntax highlighter: http://markup.su/highlighter/ Just copy and paste into your document. EDIT: Seems the above site is temporarily down so heres an alternative: