Programming Tips

JS Yang's Blog


submodule addby JSYang

######source/data 폴더를 data 전용 git repository에 넣고, submodule 로 add 하는 방법

$git submodule add -f https://github.com/reneezll/reneezll.haroo_data.git source/data/
  • ./git/config 에 [submodule “source/data”] 추가 된 것을 알 수 있다.
 [core]
     repositoryformatversion = 0
     filemode = true
     bare = false
     logallrefupdates = true
 [remote "origin"]
     url = https://github.com/rhiokim/haroopress.git
     fetch = +refs/heads/*:refs/remotes/origin/*
 [branch "master"]
     remote = origin
     merge = refs/heads/master
 [submodule "source/themes"]
     url = http://github.com/haroopress/haroopress-themes.git
 [submodule "source/data"]
     url = https://github.com/reneezll/reneezll.haroo_data.git
  • git push 하는 방법
$cd source/data
$git add --all
$git commit
$git push -u origin master
Read More

geeknote 설치하기by JS Yang

geeknote: 에버노트를 터미널에서 사용하게 해주는 프로그램

*install python setuptools

$wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python

  • install geeknote
 $https://github.com/VitaliyRodnenko/geeknote
 $git clone git://github.com/VitaliyRodnenko/geeknote.git
 $cd geeknote/
 $sudo python setup.py install
 $geeknote login
 $geeknote settings --editor vim
 $geeknote notebook-list
 $geeknote show "test*"

*install vim-geeknote

// https://github.com/neilagabriel/vim-geeknote
 $cd ~/.vim_runtime
 $git clone https://github.com/neilagabriel/vim-geeknote sources_non_forked/vim-geeknote
Read More

댓글 달기 Plugin(Disqus)by Snail

  1. 디스커스(DISQUS) 회원가입 및 로그인

    • 디스커스(DISQUS)에 웹 사이트(블로그)를 등록 (아래 싸이트 참조)

    • http://onasaju.tistory.com/182

  2. config.js 의 disqus 부분을 아래와 같이 수정.

(shortName 은 자신의 shortName 입력)

    "plugins": {
        .
        .
        .
        "disqus": {
            "display": true,
            "shortName": "reneezllgithubio",
            "showCommentCount": true
        },
        .
        .
        .
Read More

vim- DirDiffby JSYang

  1. cd ~/.vim

  2. Download dirdiff

wget https://github.com/will133/vim-dirdiff/archive/master.zip
  1. unzip
unzip master.zip
  1. run vim
    $vim . 
    
Doing the following will generate a diff window.

      :DirDiff <A:Src Directory> <B:Src Directory>
  e.g.
      :DirDiff ../something/dir1 /usr/bin/somethingelse/dir2 
  • shortcut
  ]c : next diff
  The following comamnds can be used in the Vim diff mode
  \dg - Diff get: maps to :diffget<CR>
  \dp - Diff put: maps to :diffput<CR>
  \dj - Diff next: (think j for down)
  \dk - Diff previous: (think k for up) 

link:

http://www.vim.org/scripts/script.php?script_id=102

Read More

angularjs code schoolby JSYang

[angular code school]

[pdf]

Read More
Load More…