Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@higuma
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higuma/10367392 to your computer and use it in GitHub Desktop.
Save higuma/10367392 to your computer and use it in GitHub Desktop.
This is *emphasized*
<p> This is *not emphasized*</p>
> This is a blockquote.
>
> foo
> bar
$.get(url)は$.ajax({url: url})と同じ
\$.get(url)は\$.ajax({url: url})と同じ
> This is a single
blockquote paragraph.
> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.
> ## This is a header.
>
> 1. This is the first list item.
> 2. This is the second list item.
>
> Here's some example code:
>
> return shell_exec("echo $input | $markdown_script");
return shell_exec("echo $input | $markdown_script");
* Red
* Green
* Blue
- Red
+ Green
* Blue
<ul>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>
* 1st
* 2nd
* 3rd
* 2nd
* 3rd
<ul>
<li>1st
<ul>
<li>2nd
<ul>
<li>3rd</li>
</ul>
</li>
<li>2nd
<ul>
<li>3rd</li>
</ul>
</li>
</ul>
</li>
</ul>
This is <span style="color:red">red</span>
- usr
+ bin
- games
+ chess
+ go
+ mahjong
+ tetris
+ include
+ lib
1. Bird
2. McHale
3. Parish
1001. Bird
332. McHale
883. Parish
<ol>
<li>Bird</li>
<li>McHale</li>
<li>Parish</li>
</ol>
[0...3個のスペース](*,+,-,または数値とピリオド)[1個以上のスペース]文章
* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus.
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
* Bird
* Magic
<ul>
<li><p>Bird</p></li>
<li><p>Magic</p></li>
</ul>
1. This is a list item with two paragraphs. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet
vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
sit amet velit.
2. Suspendisse id sem consectetuer libero luctus adipiscing.
* A list item with a blockquote:
> This is a blockquote
> inside a list item.
This is <span style="color:green">green and *emphasized*</span>
* A list item with a code block:
<code goes here>
<code goes here>
1986. What a great season.
1986\. What a great season.
This is a normal paragraph:
This is a code block.
This is a code block.
<p>This is a normal paragraph:</p>
<pre><code>This is a code block.
</code></pre>
<div class="footer">
&copy; 2004 Foo Corporation
</div>
<pre><code>&lt;div class="footer"&gt;
&amp;copy; 2004 Foo Corporation
&lt;/div&gt;
</code></pre>
* * *
*****
- - -
-----------------------
_ _ _
This is a 1st paragraph.
Rest of 1st Paragraph.
Second Paragraph
This is [an example](http://example.com/ "Title") inline link.
<p>This is <a href="http://example.com/" title="Title">
an example</a> inline link.</p>
See my [About](/about/) page for details.
<p>See my <a href="/about/">About</a> page for details.
This is [an example][id] reference-style link.
This is [an example] [id] reference-style link.
[ID]:(一つ以上のスペースまたはタブ)URL "もし必要ならタイトル"
[id]: http://example.com/ "Optional Title Here"
[id]: <http://example.com/> "Optional Title Here"
[link text][a]
[link text][A]
[Google]: http://google.com/
This is an H1
=============
This is an H2
-------------
Visit [Daring Fireball][] for more information.
[Daring Fireball]: http://daringfireball.net/
I get 10 times more traffic from [Google] [1] than from
[Yahoo] [2] or [MSN] [3].
[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"
I get 10 times more traffic from [Google][] than from
[Yahoo][] or [MSN][].
[google]: http://google.com/ "Google"
[yahoo]: http://search.yahoo.com/ "Yahoo Search"
[msn]: http://search.msn.com/ "MSN Search"
<p>I get 10 times more traffic from <a href="http://google.com/"
title="Google">Google</a> than from
<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a>
or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
I get 10 times more traffic from [Google](http://google.com/ "Google")
than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
[MSN](http://search.msn.com/ "MSN Search").
*single asterisks* -> <em>single asterisks</em>
_single underscores_ -> <em>single underscores</em>
**double asterisks** -> <strong>double asterisks</strong>
__double underscores__ -> <strong>double underscores</strong>
un*fucking*believable -> un<em>fucking</em>believable
y = 2 * x + 1
You're f\*\*king crazy.
Use the `printf()` function.
This is an H1
=
This is an H2
---------------------------
<p>Use the <code>printf()</code> function.</p>
``files = `ls`.split``
<p><code>files = `ls`.split</code></p>
<p><code>`ps`</code></p>
``` ``double-back-quote`` ```
<p><code>``doubled back-quote``</code></p>
Please don't use any `<blink>` tags.
<p>Please don't use any <code>&lt;blink&gt;</code> tags.</p>
![代替文字列](URL)
![代替文字列](URL "タイトル")
<h1>This is an H1</h1>
<h2>This is an H2</h2>
![Github mascot Octcat](https://raw.github.com/github/media/master/octocats/octocat.png "Octcat")
![Alt text][id]
[id]: url/to/image "Optional title attribute"
<img src="https://raw.github.com/github/media/master/octocats/octocat.png"
alt="Github mascot Octcat" title="Octcat" width="200" height="200" />
<http://example.com/>
<a href="http://example.com/">http://example.com/</a>
<address@example.com>
<a href="&#x6D;&#x61;i&#x6C;&#x74;&#x6F;:&#x61;&#x64;&#x64;&#x72;&#x65;
&#115;&#115;&#64;&#101;&#120;&#x61;&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;
&#109;">&#x61;&#x64;&#x64;&#x72;&#x65;&#115;&#115;&#64;&#101;&#120;&#x61;
&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;&#109;</a>
\ backslash
` backtick
* asterisk
_ underscore
{} curly braces
[] square brackets
() parentheses
# hash mark
+ plus sign
- minus sign (hyphen)
. dot
! exclamation mark
\*literal asterisks\*
# h1
#### h4
items.each_with_index |item, index|
module_function :parse_text
https://help.github.com/articles/github-flavored-markdown
~~これは誤り~~
```
npm install -g coffee
```
npm install -g coffee
``` ruby
require 'open-uri'
open 'https://github.com/higuma' {|f| puts f.read }
```
require 'open-uri'
open 'https://github.com/higuma' {|f| puts f.read }
``` python
if __name__ == '__main__':
for noun in ('sax', 'ash', 'cry', 'day'): print(plural(noun))
```
if __name__ == '__main__':
for noun in ('sax', 'ash', 'cry', 'day'): print(plural(noun))
``` javascript
var dc = document.getElementById('canvas').getContext('2d');
```
## h2 ##
### item one #####
### item two #####
### item three ###
var dc = document.getElementById('canvas').getContext('2d');
TH | TH
---- | ----
TD | TD
TD | TD
| TH | TH |
| ---- | ---- |
| TD | TD |
| TD | TD |
TH | TH
-------|---------
TD | TD
TD | TD
left | center | right
:---- |:------:| -----:
L | C | R
``` coffeescript:test.coffee
for x in items
console.log x
```
``` math
F(s)=\int_{0}^{\infty}f(t)e^{-st}dt
```
F(s)=\int_{0}^{\infty}f(t)e^{-st}dt
Qiitaではインライン数式$E=mc^2$が使えます
for x in items
console.log x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment