Skip to content

Instantly share code, notes, and snippets.

@co2meal
co2meal / gist:3146407
Created July 19, 2012 20:03
.....아 이거 포기 산으로 가는구나

CSS 스크롤 커스터마이징

쿠키프로젝트에서 Youtube 동영상을 Bake it한 글은 Zoom in modal로 띄워주는 코딩을 하다가 걱정되는 부분을 발견했다. 기존에 줌인모달 오른쪽에 댓글을 세로로 쭈욱 보여 줬는데 왼쪽에 있는 본문보다 길면 보기 안좋아진다는 것이다. 뉴스를 구워온 글은 보통 뉴스보다 댓글이 더 긴 경우가 없어서 자주 못봤지만 유투브 동영상은 항상 16:9 비율이니 댓글 10개만 달려도 댓글이 더 길어진다. 덕분에 스크롤 하다보면서 왼쪽 넓은 본문에 검은 배경만 남게된다.

그래서 댓글을 보여주는 부분의 크기를 지정하고 CSS에서 제공하는 스크롤바를 붙였다. 제법 괜찮았지만 그래도 뭔가 아쉬운 점이 있었다.

Hello

  • world
  • hehe

gd this is no zz

HTTP가 이렇다면

암호화되지 않은 단순 텍스트에 적합함. 줄 지향적임

SPDY는 이렇습니다.

미래에서 온 다중 바이너리 TLS가 적용된 프로토콜

[SPDY][] (speedy로 발음)은 [HTTP][]의 대안이자 래퍼같은 존재입니다. SPDY은 패킷(프레임) 지향적 바이너리 프로토콜이며 기본적으로 TLS (SSL) 적용되고 HTTP보다 약간 더 배우기 힘든 것들이 적용되어 있습니다. 필요한 도구도 없이 텔넷으로 커넥션을 디버깅하며 생존해야 하는 오지로부터 자유로워 지는 날이 가까워졌습니다.

@co2meal
co2meal / gist:3151467
Created July 20, 2012 15:46 — forked from albohlabs/gist:1989320
CLI: git
# Read: pull the changes from origin/master into my current local branch my_branch
git push origin master
# connect your repository to a remote server
git remote add origin <server>
# create a new branch
git checkout -b feature_x
# switch back
  • 왕좌의 게임 : 기본 내용외 항구에 전함이 있다면 파워 토큰 1개를 얻는다.
  • 아군 바다길은 행군과 퇴각 때만 이용함(유닛이 전함인 경우 퇴각할 때만 이용)
  • 가문카드 효과 발생 우선순위는 턴 순서로 적용 한다.
  • 사상자 처리 : 가문카드의 칼아이콘 수만큼 패한 유저의 해당지역 유닛을 파괴. 탑아이콘 수 만큼 승리한 상대 플레이어의 칼아이콘의 영향을 무효화
  • 공성병기가 퇴각시 파괴한다.
  • 퇴각한 유닛은 전투력이 없으며 눕혀놓고 다시 전투를 참가할 수없다/ 이런 유닛이 다시 퇴각을 할 경우 파괴한다.
  • 주둔군 토큰이 있는 방어자가 패하면 토큰은 완전 제거된다.
= link_to "view modal", "/", :remote => true, :id => "modal-link"
coffee:
$("#modal-link").handle_modal()
@co2meal
co2meal / date_time.coffee
Created September 6, 2012 07:22 — forked from markbates/date_time.coffee
Example: Rails-style date/time helpers in CoffeeScript
Number::seconds = ->
@ * 1000
Number::minutes = ->
@seconds() * 60
Number::minute = Number::minutes
Number::hours = ->
@minutes() * 60
@co2meal
co2meal / gist:3706261
Created September 12, 2012 12:20 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@co2meal
co2meal / Default (Windows).sublime-keymap
Created October 13, 2012 10:00
Sublime Mac OS version key binding for windows.
/*
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings,
and don't need to be repeated here. Anything listed here will take precedence, however.
*/
[
{ "keys": ["alt+shift+n"], "command": "new_window" },
{ "keys": ["alt+shift+w"], "command": "close_window" },
{ "keys": ["alt+o"], "command": "prompt_open" },
{ "keys": ["alt+shift+t"], "command": "reopen_last_file" },
{ "keys": ["alt+super+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
@co2meal
co2meal / test.md
Created October 16, 2012 09:55
adsfasfd

asdasd