This file contains hidden or 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
gem 'httparty' | |
gem 'nokogiri' | |
gem 'mongoid', '~> 3.0.0' | |
gem 'geocoder' | |
gem 'mongoid_geospatial' |
This file contains hidden or 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
uri = "http://www.mulga.go.kr/price/bestStore/regionInfo.do?bestStoreSeq=#{n}" | |
doc = Nokogiri::HTML(open(uri)) | |
data = GoodShop.new | |
data.crawl_no = n | |
data.title = doc.xpath("//div[attribute::id='content']/h4").text | |
data.address = doc.xpath("//th[text()='주소']/following-sibling::*").text | |
data.phone = doc.xpath("//th[text()='전화번호']/following-sibling::*").text | |
data.business_type = doc.xpath("//th[text()='업종']/following-sibling::*").text | |
a = doc.xpath("//th[text()='주요품목']/following-sibling::*").collect { |a| a.text } | |
h = Hash[*a] |
This file contains hidden or 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
api_key = "당신의 다음 Open API 키" | |
def call_geocoding(address) | |
begin | |
uri = "http://apis.daum.net/local/geo/addr2coord?apikey=#{api_key}&output=xml&q=#{URI::encode(address)}" | |
doc = Nokogiri::XML(open(uri)) | |
rescue OpenURI::HTTPError => the_error | |
the_status = the_error.io.status[0] | |
puts "[#{the_status}]" | |
else | |
if doc.xpath("//lng[1]").text == "" then |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<resources> | |
<string name="appname">안심이</string> | |
</resources> |
This file contains hidden or 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
<application android:icon="@drawable/appicon" | |
android:label="@string/app_name" android:name="AnsimApplication" | |
android:debuggable="false"> | |
<!-- TI_APPLICATION --> | |
<activity android:name=".AnsimActivity" | |
android:label="@string/app_name" android:theme="@style/Theme.Titanium" | |
android:configChanges="keyboardHidden|orientation"> | |
<intent-filter> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<resources> | |
<string name="home">홈</string> | |
<string name="settings">설정</string> | |
<string name="openWindow">새 창 열기</string> | |
<string name="newWindow">새 창</string> | |
<string name="app_name">안심이</string> | |
</resources> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="PixbeeProto.NewAlbumPage" | |
Title="Create Album" | |
Padding="10, 40, 10, 10" | |
xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"> | |
<StackLayout> | |
<Label Text="Create a new album!" |
This file contains hidden or 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
"openweathermap": { | |
"weather_code": { | |
"200": "가벼운 비를 동반한 천둥구름", | |
"201": "비를 동반한 천둥구름", | |
"202": "폭우를 동반한 천둥구름", | |
"210": "약한 천둥구름", | |
"211": "천둥구름", | |
"212": "강한 천둥구름", | |
"221": "불규칙적 천둥구름", | |
"230": "약한 연무를 동반한 천둥구름", |
This file contains hidden or 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
Parameter English Your language | |
200 thunderstorm with light rain 가벼운 비를 동반한 천둥구름 | |
201 thunderstorm with rain 비를 동반한 천둥구름 | |
202 thunderstorm with heavy rain 폭우를 동반한 천둥구름 | |
210 light thunderstorm 약한 천둥구름 | |
211 thunderstorm 천둥구름 | |
212 heavy thunderstorm 강한 천둥구름 | |
221 ragged thunderstorm 불규칙적 천둥구름 | |
230 thunderstorm with light drizzle 약한 연무를 동반한 천둥구름 | |
231 thunderstorm with drizzle 연무를 동반한 천둥구름 |
This file contains hidden or 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
$translateProvider.registerAvailableLanguageKeys(['en', 'es', 'cn', 'ko', 'jp'], { | |
'en-CA': 'en', | |
'en-US': 'en', | |
'en-UK': 'en', | |
'ko-KR': 'ko', | |
'ko': 'ko', | |
'zh': 'cn', | |
'zh-hk': 'cn', | |
'zh-sg': 'cn', | |
'zh-CN': 'cn', |
OlderNewer