Skip to content

Instantly share code, notes, and snippets.

@Seondong
Created September 4, 2015 07:01
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 Seondong/9ab4b6f788e98fd87263 to your computer and use it in GitHub Desktop.
Save Seondong/9ab4b6f788e98fd87263 to your computer and use it in GitHub Desktop.
doSum
/** gist tutorial with sublime text 2
Source: https://medium.com/@cookatrice/sublime-text2%EC%99%80-gist%EB%A1%9C-%EA%B9%94%EB%81%94%ED%95%98%EA%B2%8C-code-snippet%EC%9D%84-%EC%82%AC%EC%9A%A9%ED%95%B4-%EB%B4%85%EC%8B%9C%EB%8B%A4-2518f23ce606
1. Generate Github token
2. Put your token information on the first parameter in Sublime Text2 -> Packages -> Gist -> Gist.sublime-settings
3. Check your snippet on http://gist.github.com/yourId
4. Can use this snippet by clicking it, and copy Embed URL
4.1. Test at Fiddle (http://fiddle.jshell.net/)
Sublime Command
1. Package Control: Ctrl + shift + p command
1.1. Syntex: JavaScript (depending on the snippet - easy to see in Sublime)
1.2. Gist: Create public Gist
2. Script: Control + `
**/
function doSum(a,b){
return a+b;
}
@Seondong
Copy link
Author

Seondong commented Sep 4, 2015

Markdown Practice

What ?

It's very easy to make some words bold and other words italic with Markdown. You can even link to Google!, link to markdown

Yolo

yo

yoyo

tyoyoyo
ss

I'm your man
And ring ding dong (This is blockquotes)

Ring ding dong ring ding dong
ding ding ding ding digigigigigi dong dong dogodogodgodgodogog

And Inline code is follows<inline code>hehe
I think you should use an
<addr> element here instead.

  1. I'm your man
  2. Ring ding dong
  3. 오빠차
    • 데리러가
    • 삐빠뽀

Here's an idea: why don't we take SuperiorProject and turn it into **Reasonable**Project.

Check out this neat program I wrote:

x = 0
x = 2 + 2
what is x
function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }
}
function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }
}

def foo():
if not bar:
return True

Task Lists

  • @mentions, #refs, links, formatting, and tags supported
  • list syntax required (any unordered or ordered list supported)
  • this is a complete item
  • this is an incomplete item

Tables

You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe |:

First Header Second Header
Content from cell 1 Content from cell 2
Content in the first column Content in the second column

SHA references

Any reference to a commit’s SHA-1 hash will be automatically converted into a link to that commit on GitHub.

16c999e8c71134401a78d4d46435517b2271d6ac
mojombo@16c999e8c71134401a78d4d46435517b2271d6ac
mojombo/github-flavored-markdown@16c999e

Issue references within a repository

Any number that refers to an Issue or Pull Request will be automatically converted into a link.
#1

mojombo#1
mojombo/github-flavored-markdown#1
seondong/bbox2015#1

Username @mentions

Typing an @ symbol, followed by a username, will notify that person to come and view the comment. This is called an “@mention”, because you’re mentioning the individual. You can also @mention teams within an organization.
@Seondong hello

Automatic linking for URLs

Any URL (like http://www.github.com/) will be automatically converted into a clickable link.

Strikethrough

Any word wrapped with two tildes (like this) will appear crossed out.

Emoji

GitHub supports emoji! ✨ 🐫 💥 🎴

To see a list of every image we support, check out the Emoji Cheat Sheet.

More -- Github Flavored Markdown

wow_great_stuff
do_this_and_do_that_and_another_thing.

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1
  • SHA: a5c3785ed8d6a35868bc169f07e40e889087fd2e
  • User@SHA: jlord@a5c3785ed8d6a35868bc169f07e40e889087fd2e
  • User/Repository@SHA: jlord/sheetsee.js@a5c3785
  • #Num: #26
  • GH-Num: GH-26
  • User#Num: jlord#26
  • User/Repository#Num: jlord/sheetsee.js#26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment