Skip to content

Instantly share code, notes, and snippets.

@jcayzac
Created February 26, 2012 06:19
Show Gist options
  • Save jcayzac/1914278 to your computer and use it in GitHub Desktop.
Save jcayzac/1914278 to your computer and use it in GitHub Desktop.
:xxx Hi, I'm metadata! I apply to my parent element and I will be translated to whatever form supported by Google, FaceBook and the rest!
# Hi there!
:icon https://lh3.ggpht.com/I5NYwBKCBphMQvQLC7DWgTbMabYxqrwR83wEe2o4IryOJBfcndjz4ZN4cc2rMNPlCA=w124
:author Julien Cayzac <[email protected]>
:published 2010-09-20 13:05:34
I'm a new article about something super interesting. This might look like Markdown, but it's not!
You should check [https://youtu.be/g2FOLrC2e6E](this video) out! Here, I just put it below:
[https://youtu.be/g2FOLrC2e6E]
[#more]
It can also be done with [youtube:g2FOLrC2e6E|redborder](custom URL schemes)!
[youtube:g2FOLrC2e6E|redborder]
## Source code
```js
// Hi! I'm a Javascript comment!
var fs = require('fs'),
x = function() {
console.log(fs.readFile(__dirname + '/test.xd'))
}
x()
```
Check out [gist:1651637](this gist)!
Here is the embed: [gist:1651637]
## Pictures
Pictures can be auto-expanded, too, like [http://farm5.staticflickr.com/4015/4434597889_8046fe27bc.jpg|"Some title"](this one): [http://farm5.staticflickr.com/4015/4434597889_8046fe27bc.jpg|picright|"Some title"|anotherclass]
Links can contain pictures: Click on the picture to go to a youtube video: [youtube:g2FOLrC2e6E]([http://farm5.staticflickr.com/4015/4434597889_8046fe27bc.jpg|"Click me!"])
Outside code blocks:
- HTML tags are preserved.
- Two asterisks make stuff **bolder**.
- __Text with underscore__.
- //I don't like italics because it messes kanji//.
- This is --lame-- cool.
This is a block quote.
-- George Washington
## Solving the quadratic equation.
Suppose a [x^2+b*x+c=0] and [a!=0]. We first divide by [a] to get [x^2+(b/a)*x+c/a=0].
Then we complete the square and obtain [x^2+(b/a)*x+(b/(2a))^2-(b/(2a))^2+c/a=0]. The first three terms factor to give [(x+b/(2a))^2=(b^2)/(4a^2)-c/a]. Now we take square roots on both sides and get [x+b/(2a)=+-sqrt((b^2)/(4a^2)-c/a)].
Finally we move the [b/(2a)] to the right and simplify to get the two solutions: [x=(-b+-sqrt(b^2-4a*c))/(2a)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment