Skip to content

Instantly share code, notes, and snippets.

View splacentino's full-sized avatar

Si Pl splacentino

View GitHub Profile
@splacentino
splacentino / springer-free-maths-books.md
Created December 29, 2015 12:31 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
@splacentino
splacentino / snowden-ietf93.md
Last active August 29, 2015 14:27 — forked from mnot/snowden-ietf93.md
Transcript of Edward Snowden's comments at IETF93.
@splacentino
splacentino / dtd.md
Last active March 14, 2019 11:09
dtd cheat sheet

ELEMENT

 <!ELEMENT element-name (TYPE[NUMBER] [| OTHER])>

TYPE :

  • ANY : anything <!ELEMENT elany (ANY)>
  • #PCDATA : parsed character <!ELEMENT elpc (#PCDATA)>
@splacentino
splacentino / jsp.md
Last active February 24, 2023 09:22
A JSP cheat sheet

Java expression evaluated at run time.

Prototype

<%=     %>

Example

@splacentino
splacentino / include_rules.md
Last active August 29, 2015 14:18
#include rules

English

  • do nothing if: A makes no references at all to B
  • do nothing if: The only reference to B is in a friend declaration
  • forward declare B if: A contains a B pointer or reference: B* myb;
  • forward declare B if: one or more functions has a B object/pointer/reference as a parementer, or as a return type: B MyFunction(B myb);
  • #include "b.h" if: B is a parent class of A
  • #include "b.h" if: A contains a B object: B myb;
Object FizzBuzz extends App {
def fBuzz(n : Int) {
if (n > 0 && n <= 100) {
if (n % 15 == 0) println("FizzBuzz")
else if (n % 3 == 0) println("Fizz")
else if (n % 5 == 0) println("Buzz")
fBuzz(n + 1)
}
}