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
| public static function nhnGeocode($addr) | |
| { | |
| return Cache::sear('geocode.'.$addr, function() use($addr){ | |
| $api_key = Config::get('3rdparty.naver_api_key'); | |
| $result_xml = File::getRemote("http://openapi.map.naver.com/api/geocode.php?key=$api_key&encoding=utf-8&coord=latlng&query=" . $addr); | |
| $xml = new SimpleXMLElement($result_xml); | |
| $lng = $xml->item[0]->point->x; | |
| $lat = $xml->item[0]->point->y; |
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
| more... |
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
Show hidden characters
| { | |
| /* | |
| * ENVIRONMENTS | |
| * ================= | |
| */ | |
| // Define globals exposed by modern browsers. | |
| "browser": true, | |
| // Define globals exposed by jQuery. |
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
| CoffeeScript = require 'coffee-script' | |
| xyz = -> | |
| console.log 'xyz' | |
| x = -> | |
| Agent = {} | |
| cs = """ | |
| Agent.check = -> | |
| xyz() | |
| Agent.receive = (e)-> |
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
| CAMP_CODES = | |
| "0006": "gd" | |
| "0013": "jncamp" | |
| "0012": "jara" | |
| Agent.check = -> | |
| true | |
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
| Agent.check = -> | |
| @log 'check' | |
| Agent.receive = (e)-> | |
| @log 'receive', e |
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
| CAMP_CODES = | |
| "0006": "gd" | |
| "0013": "jncamp" | |
| "0012": "jara" | |
| Agent.check = -> | |
| true |
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
| CAMP_CODES = | |
| "0005": "강동" | |
| "0013": "중랑" | |
| "0012": "자라섬" | |
| Agent.check = -> | |
| true |
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
| Agent.check = -> | |
| url = "http://m.ticketmonster.co.kr/deal/option?id=63174021&depth=0&opt_key=" | |
| q.nfcall(request, url, json: true).then (r)=> | |
| data = r[0].body | |
| kitchen_set = data[14].remain_count | |
| if kitchen_set > 0 | |
| @create_event title: "티몬", message: "인디 키친툴세트 입고" | |
| bbq_set = data[20].remain_count | |
| if bbq_set | |
| @create_event title: "티몬", message: "인디BBQ스큐어[혼합/7Pset] 입고" |