This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://apis.daum.net/maps/maps3.js?apikey=DAUM_MAPS_DEMO_APIKEY" charset="utf-8"></script> | |
<script type="text/javascript"> | |
var map; | |
$(function init() { | |
map = new daum.maps.Map(document.getElementById('map'), { | |
center: new daum.maps.LatLng(37.537123, 127.005523), | |
level: 3 | |
}); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://apis.daum.net/maps/maps3.js?apikey=DAUM_MAPS_DEMO_APIKEY" charset="utf-8"></script> | |
<script type="text/javascript"> | |
var map; | |
$(function init() { | |
map = new daum.maps.Map(document.getElementById('map'), { | |
center: new daum.maps.LatLng(37.537123, 127.005523) | |
}); | |
var marker = new daum.maps.Marker({ | |
position: new daum.maps.LatLng(37.537123, 127.005523) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://apis.daum.net/maps/maps3.js?apikey=DAUM_MAPS_DEMO_APIKEY" charset="utf-8"></script> | |
<script type="text/javascript"> | |
var map; | |
$(function init() { | |
map = new daum.maps.Map(document.getElementById('map'), { | |
center: new daum.maps.LatLng(37.537123, 127.005523), | |
level: 4 | |
}); | |
var points = [ | |
new daum.maps.LatLng(37.538779843072824,127.00200500605618), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://apis.daum.net/maps/maps3.js?apikey=DAUM_MAPS_DEMO_APIKEY" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var map; | |
$ (function init() { | |
map = new daum.maps.Map(document.getElementById('map'), { | |
center: new daum.maps.LatLng(37.537123, 127.005523), | |
level: 2 | |
}); | |
var marker = new daum.maps.Marker({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to know more detail visit http://www.itstory.tk/entry/Ubuntu-%EC%97%90%EC%84%9C-Ruby-Rails-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0 | |
$ curl -sSL https://get.rvm.io | bash -s stable | |
$ source ~/.rvm/scripts/rvm | |
$ rvm get stable | |
$ rvm requirements | |
$ apt-get install libyaml-dev | |
$ rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usr | |
rvm use 2.0.0@railstutorial_rails_4_0 --create --default | |
$ which gem | |
/Users/mhartl/.rvm/rubies/ruby-2.0.0-p0/bin/gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo add-apt-repository ppa:webupd8team/sublime-text-2 | |
$ sudo apt-get update | |
$ sudo apt-get install sublime-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
has_attached_file :video, | |
:path => ":rails_root/public/video/:id/:filename", | |
:url => "/video/:id/:filename", | |
:styles => { | |
:medium => { :geometry => "640x480", :format => 'mp4' }, | |
:large => { :geometry => "1024x576", :format => 'mp4' }, | |
}, | |
:processors => [:ffmpeg, :qtfaststart] | |
validates_attachment_content_type :video, content_type: /\Avideo\/.*\Z/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# POST /reports | |
# POST /reports.json | |
def create | |
@report = current_user.reports.build(report_params) | |
respond_to do |format| | |
if @report.save | |
format.html { redirect_to @report, notice: 'Report was successfully created.' } | |
else | |
format.html { render action: 'new' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="users"> | |
<%= render @user %> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct BIG_INT { | |
unsigned char *ptr; // 저장 공간의 주소 저장 | |
int size; // 저장 공간의 크기 저장 | |
bool sign; // 부호 저장(true: 음수, false: 양수) | |
} |