Skip to content

Instantly share code, notes, and snippets.

@eskim
eskim / rx2run.sh
Last active July 20, 2016 06:02
rx2run
#!/bin/sh
sudo apt-get install git avahi-utils tmux -y && \
git clone https://eskim@bitbucket.org/yichoe/rx2.ubuntu.git rx2 && \
cd rx2/bin
echo "sudo -i"
echo 'echo "options rtl8723be fwlps=0" > /etc/modprobe.d/rtl8723be.conf'
echo 'modprobe -r rtl8723be'
echo 'modprobe rtl8723be'
var res = null;
for(var i = 0 ; i<2; i++){
res = new Date().getTime();
console.log('-', res);
(function(x){
setTimeout(function(){
console.log('--', x);
import Fiber from 'fibers';
function sleep(ms) {
var fiber = Fiber.current;
setTimeout(function() {
// fiber.run();
// fiber.throwInto(new Error('throw!'));
setTimeout(_ => {
if(fiber.stopped){
fiber.throwInto('throw!');
https://raw.githubusercontent.com/robotics-in-concert/msg_database/master/msg_database_server/distro/hic_apps/hic_apps.yaml

Test

  • item 1
  • item2
@eskim
eskim / tpl2.txt
Created November 21, 2014 07:28
test.txt
test
test
test
test
test
test
test
test2
test4
test5
http://files.yujinrobot.com/rocon/rapp_repository/concert_common_rapps.tar.gz
http://files.yujinrobot.com/rocon/rapp_repository/robosem_bridge.tar.gz
http://files.yujinrobot.com/rocon/rapp_repository/rocon_ninja_block.tar.gz
http://files.yujinrobot.com/rocon/rapp_repository/rocon_hue.tar.gz
@eskim
eskim / kma-weather.coffee
Last active August 29, 2015 14:01
muninn-receipes
q.longStackSupport = true
Agent.check = ->
url = "http://www.kma.go.kr/wid/queryDFSRSS.jsp?zone=1121585000"
q.nfcall(request, url).then (res)=>
xml = res[0].body
console.log xml
$ = cheerio.load(res[0].body)
selects = "hour day temp tmx tmn wfEn wfKor pop".split(" ")
@eskim
eskim / a.coffee
Last active August 29, 2015 14:01
receipes
x = 1
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] 입고"